public class AccountCreateCharacterCommand extends java.lang.Object implements GUICommand
GUICommand
sending a character creation request.Constructor and Description |
---|
AccountCreateCharacterCommand(@NotNull CommandCallback commandCallback,
@NotNull AbstractGUIElement button,
@NotNull GuiFactory guiFactory,
@NotNull NewCharModel newCharModel)
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 AccountCreateCharacterCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull NewCharModel newCharModel)
commandCallback
- what to inform of various changesbutton
- the item to link to to find the Gui from which to get
informationguiFactory
- the global GUI factory instancenewCharModel
- the global new char model instancepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand