Class AccountPlayCharacterCommand
java.lang.Object
com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand
- All Implemented Interfaces:
GUICommand
A
GUICommand
sending a play character request to the server.-
Constructor Summary
ConstructorsConstructorDescriptionAccountPlayCharacterCommand
(@NotNull CommandCallback commandCallback, @NotNull AbstractGUIElement button, @NotNull GuiFactory guiFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this command may be executed.void
execute()
Executes the command.
-
Constructor Details
-
AccountPlayCharacterCommand
public AccountPlayCharacterCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory) Creates a new instance.- Parameters:
commandCallback
- what to inform of the requestbutton
- the element to find the Gui for the other fieldsguiFactory
- the global GUI factory instance
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:GUICommand
Returns whether this command may be executed.- Specified by:
canExecute
in interfaceGUICommand
- Returns:
- whether this command may be executed
-
execute
public void execute()Description copied from interface:GUICommand
Executes the command. Does nothing if called whileGUICommand.canExecute()
returnsfalse
.- Specified by:
execute
in interfaceGUICommand
-