public class PogamutJBotSupport extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PogamutJBotSupport() |
Modifier and Type | Method and Description |
---|---|
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) |
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
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)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.