Class GameNewActionEvent

All Implemented Interfaces:
Serializable

public class GameNewActionEvent extends GameEvent
Instances of this class are sent when new Action added to the game
See Also:
  • Field Details

  • Constructor Details

    • GameNewActionEvent

      public GameNewActionEvent(Object source, EntityAction action)
      Construct new GameNewActionEvent
      Parameters:
      source - sender
      action -
  • Method Details

    • getAction

      public EntityAction getAction()
      Returns:
      the action.
    • fireEvent

      public void fireEvent(GameListener gl)
      Description copied from class: GameEvent
      Sub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired.
      Specified by:
      fireEvent in class GameEvent
      Parameters:
      gl - GameListener recipient.
    • getEventName

      public String getEventName()
      Specified by:
      getEventName in class GameEvent