public class AccountPlayCharacterCommand extends java.lang.Object implements GUICommand
GUICommand
sending a play character request to the server.Constructor and Description |
---|
AccountPlayCharacterCommand(@NotNull CommandCallback commandCallback,
@NotNull AbstractGUIElement button,
@NotNull GuiFactory guiFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public AccountPlayCharacterCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory)
commandCallback
- what to inform of the requestbutton
- the element to find the Gui for the other fieldsguiFactory
- the global GUI factory instancepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand