org.agent
Class WorldData
java.lang.Object
org.agent.WorldData
public class WorldData
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorldData
public WorldData()
time
public double time()
agentID
public int agentID()
nickname
public java.lang.String nickname()
status
public java.lang.String status()
maxAgent
public int maxAgent()
playMode
public java.lang.String playMode()
yellowScore
public int yellowScore()
blueScore
public int blueScore()
ball
public Vector ball()
teamMates
public AgentState[] teamMates()
opponents
public AgentState[] opponents()
teamMate
public AgentState teamMate(int id)
- 1,2,3...max
except me.
opponent
public AgentState opponent(int id)
- 1,2,3...max
topLeftPole
public Vector topLeftPole()
bottomLeftPole
public Vector bottomLeftPole()
topRightPole
public Vector topRightPole()
bottomRightPole
public Vector bottomRightPole()
topLeftCorner
public Vector topLeftCorner()
bottomLeftCorner
public Vector bottomLeftCorner()
topRightCorner
public Vector topRightCorner()
bottomRightCorner
public Vector bottomRightCorner()
topLeftGoal
public Vector topLeftGoal()
bottomLeftGoal
public Vector bottomLeftGoal()
topRightGoal
public Vector topRightGoal()
bottomRightGoal
public Vector bottomRightGoal()
topLeftSmallArea
public Vector topLeftSmallArea()
bottomLeftSmallArea
public Vector bottomLeftSmallArea()
topRightSmallArea
public Vector topRightSmallArea()
bottomRightSmallArea
public Vector bottomRightSmallArea()
middleCenter
public Vector middleCenter()
topCenter
public Vector topCenter()
bottomCenter
public Vector bottomCenter()
me
public Vector me()
update
public void update(org.util.xml.element.TagElement world_data)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInt
public static int getInt(org.util.xml.element.TagElement tag,
java.lang.String key)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDouble
public static double getDouble(org.util.xml.element.TagElement tag,
java.lang.String key)
throws java.lang.Exception
- Throws:
java.lang.Exception
getVectorByID
public static Vector getVectorByID(org.util.xml.element.TagElement[] tags,
java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getVector
public static Vector getVector(org.util.xml.element.TagElement tag)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAgentStateByID
public static AgentState getAgentStateByID(org.util.xml.element.TagElement[] tags,
java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAgentState
public static AgentState getAgentState(org.util.xml.element.TagElement tag)
throws java.lang.Exception
- Throws:
java.lang.Exception
roundDeg
public static double roundDeg(double deg)