Class Obstacle
java.lang.Object
za.co.wethinkcode.robots.server.worldinfo.Obstacle
- All Implemented Interfaces:
WorldObject,Argument
- Direct Known Subclasses:
SquareObstacle
Abstract Class that All Obstacles derive from
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum encapsulating all Possible Obstacle TypesNested classes/interfaces inherited from interface za.co.wethinkcode.robots.server.worldinfo.WorldObject
WorldObject.WorldObjectType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObstacle(Obstacle.ObstacleType obstacleType, Position position) Standard Obstacle Constructor -
Method Summary
-
Field Details
-
obstacleType
-
position
-
-
Constructor Details
-
Method Details
-
toString
String version of an obstacle -
getPosition
Getter for an Object's Centre Position- Returns:
- Object's Position
-
getObstacleType
Getter for Obstacle Type- Returns:
- Obstacle Type
-
equals
Proving if two results are equal -
getType
Standard getter for a WorldObject's type- Specified by:
getTypein interfaceWorldObject- Returns:
- worldObject type of the worldObject
-
getValue
Description copied from interface:ArgumentGet the value of @param
-