Class ClientRobot
java.lang.Object
za.co.wethinkcode.robots.client.clientRobot.ClientRobot
- Direct Known Subclasses:
BoringClientBot
Abstract parent class of all clients on the robot's side
-
Constructor Summary
ConstructorsConstructorDescriptionClientRobot(String name) Constructor for a client Robot based on its nameClientRobot(String name, RobotKind robotKind) Dynamic constructor for a clientRobot -
Method Summary
Modifier and TypeMethodDescriptionbooleanallows Direct Comparison between Server Robot and Client RobotgetName()Getter for a Client Robot's nameStandard getter for Client Robot's kindGetter for a robot's statusinthashCode()voidsetStatus(RobotStatus robotStatus) Setter for the robot's status
-
Constructor Details
-
ClientRobot
Constructor for a client Robot based on its name- Parameters:
name- name of the robot getting made
-
-
Method Details
-
getRobotStatus
Getter for a robot's status- Specified by:
getRobotStatusin interfaceRobot- Returns:
- name of the robot
-
getRobotKind
Standard getter for Client Robot's kind- Specified by:
getRobotKindin interfaceRobot- Returns:
- what kind of robot this robot is
-
getName
Getter for a Client Robot's name -
equals
allows Direct Comparison between Server Robot and Client Robot -
hashCode
public int hashCode()