Package behaviors
Class StartUp
java.lang.Object
behaviors.StartUp
- All Implemented Interfaces:
lejos.robotics.subsumption.Behavior
Creates the board for the user to play the game of hangman on.
Also does other various start up activites.
- Since:
- 2023
-
Constructor Summary
ConstructorDescriptionStartUp()
Constructor for startup initializes objects and gets a word to be guessed.Also assigns things in behavior data. -
Method Summary
-
Constructor Details
-
StartUp
public StartUp()Constructor for startup initializes objects and gets a word to be guessed.Also assigns things in behavior data.
-
-
Method Details
-
action
public void action()Calculates the distance for drawing the underscores and where the hangman box will go.- Specified by:
action
in interfacelejos.robotics.subsumption.Behavior
-
suppress
public void suppress()Empty surpress StartUp.- Specified by:
suppress
in interfacelejos.robotics.subsumption.Behavior
-
takeControl
public boolean takeControl()Takes control when the state is equal to the START_UP state.- Specified by:
takeControl
in interfacelejos.robotics.subsumption.Behavior
- Returns:
- boolean
-