Class EntityCommand

java.lang.Object
rekit.gui.controller.commands.EntityCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
JumpCommand, WalkCommand

public abstract class EntityCommand extends Object implements Command
This class defines an Command which will be executed by a Controller and is linked to an Entity.
Author:
Dominik Fuchss
See Also:
  • Field Details

    • supervisor

      protected final CommandSupervisor supervisor
      The corresponding supervisor.
  • Constructor Details

    • EntityCommand

      public EntityCommand(CommandSupervisor supervisor)
      Instantiate the Command.
      Parameters:
      supervisor - the supervisor
  • 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