Class FlareCommand

java.lang.Object
VASSAL.command.Command
VASSAL.command.FlareCommand

public class FlareCommand extends Command
A Command for sending Flare actions to other clients
  • Constructor Details

    • FlareCommand

      public FlareCommand(Flare flare)
      Parameters:
      flare - Flare object to define our new action from
  • Method Details

    • executeCommand

      protected void executeCommand()
      Executes the command (starts a Flare at the specified location)
      Specified by:
      executeCommand in class Command
    • myUndoCommand

      protected Command myUndoCommand()
      Description copied from class: Command
      If the action can be undone, return a Command that performs the inverse action. The Command returned should only undo Command.executeCommand(), not the actions of subcommands
      Specified by:
      myUndoCommand in class Command
      Returns:
      null - no undo needed for Flare commands
    • getValue

      public int getValue()
      Returns:
      0
    • getClickPoint

      public Point getClickPoint()
      Returns:
      specified flare location on map
    • getId

      public String getId()
      Returns:
      unique ID of the Flare object that this flare command is intended to activate