public class AccountPlayCharacterCommand extends java.lang.Object implements GUICommand
GUICommand
sending a play character request to the server.Modifier and Type | Field and Description |
---|---|
private CommandCallback |
commandCallback
The
CommandCallback to use. |
private java.awt.Component |
element
The
Component to find information for account creation. |
Constructor and Description |
---|
AccountPlayCharacterCommand(CommandCallback commandCallback,
java.awt.Component button)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
@NotNull private final CommandCallback commandCallback
CommandCallback
to use.@NotNull private final java.awt.Component element
Component
to find information for account creation.public AccountPlayCharacterCommand(@NotNull CommandCallback commandCallback, @NotNull java.awt.Component button)
commandCallback
- what to inform of the requestbutton
- the element to find the Gui for the other fieldspublic boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.execute
in interface GUICommand