Package rekit.gui.controller.commands
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 Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether commands like moving a player (no menu / basic commands) allowed.Get the entity the Command is assigned to.Get the menu the Command is assigned to.getScene()
Get the current scene.
-
Method Details
-
getEntity
Get the entity the Command is assigned to.- Parameters:
command
- the command- Returns:
- the entity for the command or
null
if none assigned
-
getMenu
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
-