Class AgentPosition

java.lang.Object
  |
  +--AgentPosition

public class AgentPosition
extends java.lang.Object

This class will be used to communicate the position of an Agent between your player classes and our game program

Since:
1.0

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

AgentPosition

public AgentPosition(int id,
                     int x,
                     int y)
Creates a new AgentPosition instance.
Parameters:
id - is the id number of the Agent.
x - is the position of the Agnet on the x coordinate
y - is the position of the Agent in the y coordinate
Method Detail

getID

public int getID()
This method gets the id of the Agent P.S. You will not need to use this method. You are allowed to use only the constructor to make a new AgentPosition instance for the Agent whose position you wish to communicate
Returns:
an int value

getXPos

public int getXPos()
This method gets the x coordinates of the Agent P.S. You will not need to use this method. You are allowed to use only the constructor to make a new AgentPosition instance for the Agent whose position you wish to communicate
Returns:
an int value

getYPos

public int getYPos()
This method gets the y coordinates of the Agent P.S. You will not need to use this method. You are allowed to use only the constructor to make a new AgentPosition instance for the pawn whose position you wish to communicate
Returns:
an int value