Class MenuCommand

java.lang.Object
rekit.gui.controller.commands.MenuCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
PlayPauseCommand

public class MenuCommand extends Object implements Command
This class is used for the MenuGameState.
Author:
Matthias Schmitt
  • Field Details

  • Constructor Details

    • MenuCommand

      public MenuCommand(CommandSupervisor supervisor, MenuDirection dir)
      Instantiate the MenuCommand.
      Parameters:
      supervisor - the supervisor
      dir - the direction
  • Method Details

    • execute

      public final void execute(Object... params)
      Description copied from interface: Command
      Execute the command.
      Specified by:
      execute in interface Command
      Parameters:
      params - the parameters
    • execute

      public void execute(InputMethod inputMethod)
      Execute the command.
      Parameters:
      inputMethod - the key state