Package behaviors

Class StartUp

java.lang.Object
behaviors.StartUp
All Implemented Interfaces:
lejos.robotics.subsumption.Behavior

public class StartUp extends Object implements 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

    Constructors
    Constructor
    Description
    Constructor for startup initializes objects and gets a word to be guessed.Also assigns things in behavior data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Calculates the distance for drawing the underscores and where the hangman box will go.
    void
    Empty surpress StartUp.
    boolean
    Takes control when the state is equal to the START_UP state.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface lejos.robotics.subsumption.Behavior
    • suppress

      public void suppress()
      Empty surpress StartUp.
      Specified by:
      suppress in interface lejos.robotics.subsumption.Behavior
    • takeControl

      public boolean takeControl()
      Takes control when the state is equal to the START_UP state.
      Specified by:
      takeControl in interface lejos.robotics.subsumption.Behavior
      Returns:
      boolean