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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
suppress()
Empty suppress for Finished.boolean
Takes 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:
action
in interfacelejos.robotics.subsumption.Behavior
-
suppress
public void suppress()Empty suppress for Finished.- Specified by:
suppress
in interfacelejos.robotics.subsumption.Behavior
-
takeControl
public boolean takeControl()Takes control when the state is equal to the FINISHED state.- Specified by:
takeControl
in interfacelejos.robotics.subsumption.Behavior
- Returns:
- boolean
-