Class BoringServerBot
java.lang.Object
za.co.wethinkcode.robots.server.serverRobot.ServerRobot
za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
- All Implemented Interfaces:
WorldObject,Argument,Robot
A boring serverRobot. Does nothing special. Used the most in testing
-
Nested Class Summary
Nested classes/interfaces inherited from interface za.co.wethinkcode.robots.server.worldinfo.WorldObject
WorldObject.WorldObjectType -
Field Summary
Fields inherited from class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
maximumShots, maxShieldStrength, name, robotKind, robotState, worldObjectType -
Constructor Summary
ConstructorsConstructorDescriptionReflection constructor for SerializationBoringServerBot(String name) Standard name only constructor for a new BoringServerBot from name;BoringServerBot(String name, WorldState worldState) Constructor for a Boring server robot with a name and worldStateBoringServerBot(BoringClientBot clientRobot) Cloning Constructor to make a new BoringServerBot from an existing ClientBot -
Method Summary
Methods inherited from class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
equals, getRobotKind, getRobotState, getRobotStatus, getType, hashCode, setRobotStatus, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface za.co.wethinkcode.robots.shared.Robot
getRobotKind, getRobotStatusMethods inherited from interface za.co.wethinkcode.robots.server.worldinfo.WorldObject
getType
-
Constructor Details
-
BoringServerBot
public BoringServerBot()Reflection constructor for Serialization -
BoringServerBot
Standard name only constructor for a new BoringServerBot from name;- Parameters:
name- name of the bot
-
BoringServerBot
Constructor for a Boring server robot with a name and worldState- Parameters:
name- name of the boring server robotworldState- the world state it finds itself in- Throws:
WorldFullException- if the world is full, the robot will not be created
-
BoringServerBot
Cloning Constructor to make a new BoringServerBot from an existing ClientBot- Parameters:
clientRobot- the client robot being cloned.
-
-
Method Details