java.lang.Object | +--AgentPosition
This class will be used to communicate the position of an Agent between your player classes and our game program
| Constructor Summary | |
AgentPosition(int id,
int x,
int y)
Creates a new AgentPosition instance. |
|
| Method Summary | |
int |
getID()
This method gets the id of the Agent P.S. |
int |
getXPos()
This method gets the x coordinates of the Agent P.S. |
int |
getYPos()
This method gets the y coordinates of the Agent P.S. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AgentPosition(int id,
int x,
int y)
AgentPosition instance.id - is the id number of the Agent.x - is the position of the Agnet on the x coordinatey - is the position of the Agent in the y coordinate| Method Detail |
public int getID()
AgentPosition instance for the
Agent whose position you wish to communicateint valuepublic int getXPos()
AgentPosition instance
for the Agent whose position you wish to communicateint valuepublic int getYPos()
AgentPosition instance
for the pawn whose position you wish to communicateint value