|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javabot.PogamutJBotSupport
public class PogamutJBotSupport
Layer that takes care of incoming and outgoing requests on defcon.
Field Summary | |
---|---|
static cz.cuni.amis.utils.flag.Flag<Boolean> |
botIsRunning
Leave as not-immutable for testing purposes! |
static GameInfo |
gameInfo
|
static String |
PROPERTY_CLASS
|
static String |
PROPERTY_START_TIMEOUT_SECS
|
Constructor Summary | |
---|---|
PogamutJBotSupport()
|
Method Summary | |
---|---|
static void |
addCommand(DefConCommand command)
|
static void |
addEvent(JBot.EventData data)
Called from JBot.addEvent(). |
static void |
addQuery(SyncMethodExecContainer container)
|
static DefConAgent<?> |
getBot()
|
static ActExecutor |
getDefConActExecutor()
|
static List<IDefConBasicEvent> |
getEvents()
|
static List<IWorldChangeEvent> |
getUnitsUpdate()
|
static boolean |
initialise(String[][] commandLineOptions)
Called from JBot.initialise(). |
static void |
logGame(Level level,
String msg)
Formats and send a log message during GAME phase. |
static void |
logGameException(Throwable e)
|
static void |
logInit(Level level,
String msg)
Formats and send a log message during INIT phase. |
static void |
logInitException(Throwable e)
|
static void |
setName(String name)
|
static boolean |
update()
Called from JBot.update(). |
static void |
writeToConsole(String logLine)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_CLASS
public static final String PROPERTY_START_TIMEOUT_SECS
public static cz.cuni.amis.utils.flag.Flag<Boolean> botIsRunning
public static GameInfo gameInfo
Constructor Detail |
---|
public PogamutJBotSupport()
Method Detail |
---|
public static DefConAgent<?> getBot()
public static void logInitException(Throwable e)
public static void logGameException(Throwable e)
public static void logInit(Level level, String msg)
level
- msg
- public static void logGame(Level level, String msg)
level
- msg
- public static boolean initialise(String[][] commandLineOptions)
commandLineOptions
-
public static void addEvent(JBot.EventData data)
data
- public static boolean update()
public static List<IWorldChangeEvent> getUnitsUpdate()
public static void addQuery(SyncMethodExecContainer container)
public static void addCommand(DefConCommand command)
public static List<IDefConBasicEvent> getEvents()
public static void writeToConsole(String logLine)
public static ActExecutor getDefConActExecutor()
public static void setName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |