Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand:
Collaboration graph

Public Member Functions

 AccountCreateCharacterCommand (@NotNull final CommandCallback commandCallback, @NotNull final AbstractGUIElement button, @NotNull final GuiFactory guiFactory, @NotNull final NewCharModel newCharModel)
 
boolean canExecute ()
 
void execute ()
 

Private Attributes

final CommandCallback commandCallback
 
final AbstractGUIElement element
 
final GuiFactory guiFactory
 
final NewCharModel newCharModel
 

Detailed Description

A GUICommand sending a character creation request.

Author
Nicolas Weeger

Definition at line 43 of file AccountCreateCharacterCommand.java.

Constructor & Destructor Documentation

◆ AccountCreateCharacterCommand()

com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand ( @NotNull final CommandCallback  commandCallback,
@NotNull final AbstractGUIElement  button,
@NotNull final GuiFactory  guiFactory,
@NotNull final NewCharModel  newCharModel 
)

Creates a new instance.

Parameters
commandCallbackwhat to inform of various changes
buttonthe item to link to to find the Gui from which to get information
guiFactorythe global GUI factory instance
newCharModelthe global new char model instance

Definition at line 77 of file AccountCreateCharacterCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.commandCallback, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.element, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.guiFactory, and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.newCharModel.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 85 of file AccountCreateCharacterCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute ( )

Executes the command. Does nothing if called while canExecute() returns

false

.

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 90 of file AccountCreateCharacterCommand.java.

References com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreateCharacter(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.commandCallback, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.element, com.realtime.crossfire.jxclient.character.Choice.getChoiceName(), com.realtime.crossfire.jxclient.character.Choice.getChoices(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getClass_(), com.realtime.crossfire.jxclient.gui.gui.Gui.getFirstElement(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOption(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOptionIndex(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getRace(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getStartingMap(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.getText(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getValue(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.guiFactory, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.newCharModel, and com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.setActive().

Here is the call graph for this function:

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.commandCallback
private

◆ element

final AbstractGUIElement com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.element
private

◆ guiFactory

final GuiFactory com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.guiFactory
private

◆ newCharModel

final NewCharModel com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.newCharModel
private

The documentation for this class was generated from the following file: