public abstract class VisionSystem
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
VisionSystem(VisionCoordinate o)
Sets up a VisionSystem with o as its origin
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
abstract java.util.Set<VisionObject> |
getAllObjects() |
java.util.Set<VisionObject> |
getAllObjectsWithRespectTo(VisionSystem other) |
VisionObject |
getById(int target)
Returns the vision object represented by target or null if none exists
|
java.lang.Integer |
getIdForBot(Bot b)
Returns the vision id for this system representing b or null if none exists
|
void |
mapBotToVisionId(Bot b,
int id) |
java.lang.String |
toString() |
VisionCoordinate |
transformCoordinates(VisionCoordinate other,
VisionSystem otherSystem)
Transforms a coordinate from another system to this system.
|
protected VisionSystem(VisionCoordinate o)
o
- A coordinate specifying the origin of the VisionSystempublic VisionCoordinate transformCoordinates(VisionCoordinate other, VisionSystem otherSystem)
other
- The other coordinateotherSystem
- The other systempublic abstract java.util.Set<VisionObject> getAllObjects()
public VisionObject getById(int target)
target
- the vision object we are looking forpublic java.lang.Integer getIdForBot(Bot b)
b
- The bot for which you are looking up the idpublic void mapBotToVisionId(Bot b, int id)
public java.util.Set<VisionObject> getAllObjectsWithRespectTo(VisionSystem other)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object