Interface CommandSupervisor


public interface CommandSupervisor
This interface defines methods to get info from a Model and will be used by EntityCommands.
Author:
Dominik Fuchss
  • Method Details

    • getEntity

      StateEntity getEntity(Command command)
      Get the entity the Command is assigned to.
      Parameters:
      command - the command
      Returns:
      the entity for the command or null if none assigned
    • getMenu

      MenuItem getMenu(Command command)
      Get the menu the Command is assigned to.
      Parameters:
      command - the command
      Returns:
      the menu for the command or null if none assigned
    • getScene

      IScene getScene()
      Get the current scene.
      Returns:
      the current scene
    • entityCommandAllowed

      boolean entityCommandAllowed()
      Indicates whether commands like moving a player (no menu / basic commands) allowed.
      Returns:
      true if allowed, false otherwise