Package behaviors
Class Finished
java.lang.Object
behaviors.Finished
- All Implemented Interfaces:
lejos.robotics.subsumption.Behavior
Shows a finished screen once the game is over.
- Since:
- 2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction()Actions sends a state packet to the server so that the client knows the game is over.Also gets whether the was won and its output screen varies on whether or not the user won.voidsuppress()Empty suppress for Finished.booleanTakes control when the state is equal to the FINISHED state.
-
Constructor Details
-
Finished
public Finished()Constructor of Finished, assigns the the word to guess.
-
-
Method Details
-
action
public void action()Actions sends a state packet to the server so that the client knows the game is over.Also gets whether the was won and its output screen varies on whether or not the user won.- Specified by:
actionin interfacelejos.robotics.subsumption.Behavior
-
suppress
public void suppress()Empty suppress for Finished.- Specified by:
suppressin interfacelejos.robotics.subsumption.Behavior
-
takeControl
public boolean takeControl()Takes control when the state is equal to the FINISHED state.- Specified by:
takeControlin interfacelejos.robotics.subsumption.Behavior- Returns:
- boolean
-