Class AccountPlayCharacterCommand
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand
-
- All Implemented Interfaces:
GUICommand
public class AccountPlayCharacterCommand extends java.lang.Object implements GUICommand
AGUICommandsending a play character request to the server.
-
-
Constructor Summary
Constructors Constructor Description AccountPlayCharacterCommand(@NotNull CommandCallback commandCallback, @NotNull AbstractGUIElement button, @NotNull GuiFactory guiFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()Returns whether this command may be executed.voidexecute()Executes the command.
-
-
-
Constructor Detail
-
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 Detail
-
canExecute
public boolean canExecute()
Description copied from interface:GUICommandReturns whether this command may be executed.- Specified by:
canExecutein interfaceGUICommand- Returns:
- whether this command may be executed
-
execute
public void execute()
Description copied from interface:GUICommandExecutes the command. Does nothing if called whileGUICommand.canExecute()returnsfalse.- Specified by:
executein interfaceGUICommand
-
-