cz.cuni.amis.pogamut.emohawk.examples.modularsposhmoodbot
Class MoodLogic
java.lang.Object
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
cz.cuni.amis.pogamut.sposh.ut2004.SposhLogicController<BOT,cz.cuni.amis.pogamut.sposh.executor.StateWorkExecutor>
cz.cuni.amis.pogamut.sposh.ut2004.StateSposhLogicController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot,MoodContext>
cz.cuni.amis.pogamut.emohawk.examples.modularsposhmoodbot.MoodLogic
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>, cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>, cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotLogicController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot,cz.cuni.amis.pogamut.base.agent.module.LogicModule>
public class MoodLogic
- extends cz.cuni.amis.pogamut.sposh.ut2004.StateSposhLogicController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot,MoodContext>
Create simple bot that is running around the map and expresses random thoughts.
- Author:
- Jimmy
| Fields inherited from class cz.cuni.amis.pogamut.sposh.ut2004.StateSposhLogicController |
context |
| Fields inherited from class cz.cuni.amis.pogamut.sposh.ut2004.SposhLogicController |
SPOSH_LOG_CATEGORY |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController |
logicModule |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
bot, log, USER_LOG_CATEGORY_ID |
|
Method Summary |
protected MoodContext |
createContext()
Create context that can be accessed in every state primitive. |
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize |
getInitializeCommand()
Initialize command of the bot, called during initial handshake, init can
set things like name of bot, its skin, skill, team ect. |
protected String |
getPlan()
|
static void |
main(String[] args)
Create an ExternalBot with custom made logic and
try to connect to Unreal Server at localhost:3000 |
| Methods inherited from class cz.cuni.amis.pogamut.sposh.ut2004.StateSposhLogicController |
createWorkExecutor, customPrimitiveInstantiation, finishControllerInitialization, getContext, initializeController |
| Methods inherited from class cz.cuni.amis.pogamut.sposh.ut2004.SposhLogicController |
createTimer, getEngine, getPlanFromFile, getPlanFromResource, getPlanFromStream, getTimer, getWorkExecutor, logic, logicAfterPlan, logicBeforePlan |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController |
beforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logicInitialize, logicShutdown |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
botFirstSpawn, botInitialized, botKilled, botShutdown, getAct, getBot, getLog, getPassword, getWorldView, prepareBot |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController |
botFirstSpawn, botInitialized, botKilled, botShutdown, getAct, getBot, getLog, getPassword, getWorldView, prepareBot |
MoodLogic
public MoodLogic()
getPlan
protected String getPlan()
throws IOException
- Specified by:
getPlan in class cz.cuni.amis.pogamut.sposh.ut2004.SposhLogicController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot,cz.cuni.amis.pogamut.sposh.executor.StateWorkExecutor>
- Throws:
IOException
createContext
protected MoodContext createContext()
- Create context that can be accessed in every state primitive.
- Specified by:
createContext in class cz.cuni.amis.pogamut.sposh.ut2004.StateSposhLogicController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot,MoodContext>
- Returns:
- new context of this bot.
getInitializeCommand
public cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize getInitializeCommand()
- Initialize command of the bot, called during initial handshake, init can
set things like name of bot, its skin, skill, team ect.
- Specified by:
getInitializeCommand in interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>- Overrides:
getInitializeCommand in class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>
- Returns:
- See Also:
Initialize
main
public static void main(String[] args)
throws cz.cuni.amis.utils.exception.PogamutException
- Create an
ExternalBot with custom made logic and
try to connect to Unreal Server at localhost:3000
- Parameters:
args - the command line arguments
- Throws:
cz.cuni.amis.utils.exception.PogamutException
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.