Class Position
java.lang.Object
za.co.wethinkcode.robots.server.world.Position
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Position
public Position(int x, int y)
-
-
Method Details
-
getX
public int getX() -
getY
public int getY() -
equals
-
hashCode
public int hashCode() -
toString
-
toJson
public com.google.gson.JsonArray toJson()Return a position as a JSON array- Returns:
- the x and y co-ordinates as a JSON array
-