public class ServerBotFactory
extends Object
Factory pattern for creating ServerRobots
-
Constructor Summary
Constructors
Empty constructor for this factory
-
Method Summary
Create a new server robot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ServerBotFactory
public ServerBotFactory()
Empty constructor for this factory
-
Method Details
-
create
Create a new server robot
- Parameters:
name - the name of the new robot
kind - what kind of robot it is according to RobotKind
maxShieldStrength - maximum shield strength of this robot
maximumShots - maximum number of shots this robot can have
worldState - the worldState that this boring bot is being made into
- Returns:
- a new server robot
- Throws:
WorldFullException - if the world already full, this create will fail early