|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Client.Agent
cz.cuni.pogamut.Client.TestBot2
public class TestBot2
NOTE: Class with agent must be marked also in manifest.mf, otherwise IDE don't know, which file it should run.
Field Summary | |
---|---|
(package private) AutoTraceRay |
autorayStraight
|
(package private) double |
distStraight
|
private java.lang.String[] |
navPoints
|
static int |
RAY_LEFT
|
static int |
RAY_RIGHT
|
static int |
RAY_STRAIGHT
|
static int |
RAY_STRAIGHT_UP45
|
private NavPoint |
runTo
|
private boolean |
runToNext
|
static double |
SENSOR_LENGTH
|
(package private) AutoTraceRay |
traceLeft
|
(package private) AutoTraceRay |
traceRight
|
(package private) AutoTraceRay |
traceStraight
|
(package private) AutoTraceRay |
traceStraightUp45
|
Fields inherited from class cz.cuni.pogamut.Client.Agent |
---|
bindedParserType, body, flagLogicTemporalyStopped, gameBotConnection, gameMap, GARBAGE_COLLECTOR_FREQUENCY, instancesAlive, iterationEndListeners, log, logicFrequency, logicFrequencyChanged, memory, oldLogicFrequency, parserLogger, pauseHolders, platformLog, random, rawGBLog |
Constructor Summary | |
---|---|
TestBot2()
Creates a new instance of agent. |
Method Summary | |
---|---|
protected void |
doLogic()
There you are supposed to connect any external tool for decision making or you can write there some script, that will control the agent. |
static void |
main(java.lang.String[] args)
|
protected void |
postPrepareAgent()
prepare logic according to information from gathered from startCommunication like choosing plan/parameters according to game type note that you still can't send any messages to gamebots (like CONF etc.) |
protected void |
shutdownAgent()
clean - up after the end of simulation of agent |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private NavPoint runTo
private java.lang.String[] navPoints
private boolean runToNext
public static final double SENSOR_LENGTH
public static final int RAY_STRAIGHT
public static final int RAY_LEFT
public static final int RAY_RIGHT
public static final int RAY_STRAIGHT_UP45
AutoTraceRay traceStraight
AutoTraceRay traceLeft
AutoTraceRay traceRight
AutoTraceRay traceStraightUp45
AutoTraceRay autorayStraight
double distStraight
Constructor Detail |
---|
public TestBot2()
Method Detail |
---|
protected void doLogic()
Agent
Note: it's not good practice to have infinite loop in doLogic() because stopAgentSoft() won't work. But it's OK if you rewrite the stopAgentSoft()
doLogic
in class Agent
protected void postPrepareAgent() throws PogamutException
Agent
postPrepareAgent
in class Agent
PogamutException
protected void shutdownAgent() throws PogamutException
Agent
shutdownAgent
in class Agent
PogamutException
public static void main(java.lang.String[] args) throws java.net.URISyntaxException
java.net.URISyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |