Class ClientCommand

java.lang.Object
megamek.client.commands.ClientCommand
Direct Known Subclasses:
AddBotCommand, AssignNovaNetworkCommand, BotHelpCommand, ChatCommand, DeployCommand, DoneCommand, FireCommand, HelpCommand, LookCommand, MoveCommand, RulerCommand, ShowEntityCommand, ShowTileCommand, SituationReportCommand

public abstract class ClientCommand extends Object
  • Field Details

  • Constructor Details

    • ClientCommand

      public ClientCommand(ClientGUI clientGUI, String name, String helpText)
      Creates new ServerCommand
  • Method Details

    • getClient

      public Client getClient()
    • getClientGUI

      public ClientGUI getClientGUI()
    • getName

      public String getName()
      Return the string trigger for this command
    • getHelp

      public String getHelp()
      Returns some help text for this command
    • run

      public abstract String run(String[] args)
      Run this command with the arguments supplied
    • getDirection

      public static int getDirection(String arg)
    • getDirection

      public static String getDirection(int arg)