Package behaviors

Class Finished

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

public class Finished extends Object implements lejos.robotics.subsumption.Behavior
Shows a finished screen once the game is over.
Since:
2023
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of Finished, assigns the the word to guess.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Empty suppress for Finished.
    boolean
    Takes control when the state is equal to the FINISHED state.

    Methods inherited from class java.lang.Object

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

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

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