Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.textinput.CommandCallback:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.textinput.CommandCallback:
Collaboration graph

Public Member Functions

void accountCreate (@NotNull String login, @NotNull String password)
 
void accountCreateCharacter (@NotNull String login, @NotNull Collection< String > attributes)
 
void accountLink (int force, @NotNull String login, @NotNull String password)
 
void accountLogin (@NotNull String login, @NotNull String password)
 
void accountPassword (@NotNull String currentPassword, @NotNull String newPassword)
 
void accountPlayCharacter (@NotNull String name)
 
void activateCommandInput (@NotNull String newText)
 
void closeDialog (@NotNull String dialog)
 
boolean createKeyBinding (boolean perCharacter, @NotNull CommandList commandList)
 
CommandList getCommandList (@NotNull String args) throws NoSuchCommandException
 
Collection< String > getCommandListNames ()
 
void openDialog (@NotNull String dialog)
 
void quitApplication ()
 
boolean removeKeyBinding (boolean perCharacter)
 
void toggleDialog (@NotNull String dialog)
 
void updatePlayerName (@NotNull String playerName)
 

Detailed Description

Interface that defines callback functions needed by commands.

Author
Andreas Kirschbaum

Definition at line 33 of file CommandCallback.java.

Member Function Documentation

◆ accountCreate()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreate ( @NotNull String  login,
@NotNull String  password 
)

Creates an account.

Parameters
loginthe account's name
passwordthe account's password

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCommand.execute().

Here is the caller graph for this function:

◆ accountCreateCharacter()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreateCharacter ( @NotNull String  login,
@NotNull Collection< String >  attributes 
)

Creates a character. The password should be the last from accountLogin or accountCreate.

Parameters
loginthe character's name
attributesthe character attributes

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().

Here is the caller graph for this function:

◆ accountLink()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLink ( int  force,
@NotNull String  login,
@NotNull String  password 
)

Links a character to the current account.

Parameters
force0 to allow failure, 1 to force in certain situations
loginthe character's name
passwordthe character's password

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountLinkCharacterCommand.execute().

Here is the caller graph for this function:

◆ accountLogin()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLogin ( @NotNull String  login,
@NotNull String  password 
)

Login to an account.

Parameters
loginlogin
passwordpassword

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountLoginCommand.execute().

Here is the caller graph for this function:

◆ accountPassword()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPassword ( @NotNull String  currentPassword,
@NotNull String  newPassword 
)

Change the account password.

Parameters
currentPasswordthe current account password
newPasswordthe new account password

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountPasswordCommand.execute().

Here is the caller graph for this function:

◆ accountPlayCharacter()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPlayCharacter ( @NotNull String  name)

Plays a character from the current account.

Parameters
namethe character's name

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.execute().

Here is the caller graph for this function:

◆ activateCommandInput()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.activateCommandInput ( @NotNull String  newText)

Activates the command input text field. If the skin defines more than one input field, the first matching one is selected.

If neither the main gui nor any visible dialog has an input text field, invisible GUIs are checked as well. If one is found, it is made visible.

Parameters
newTextthe new command text if non-
null

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.textinput.ActivateCommandInputCommand.execute().

Here is the caller graph for this function:

◆ closeDialog()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.closeDialog ( @NotNull String  dialog)

Closes a dialog. Does nothing if the dialog is not open.

Parameters
dialogthe dialog to close

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogCloseCommand.execute().

Here is the caller graph for this function:

◆ createKeyBinding()

boolean com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.createKeyBinding ( boolean  perCharacter,
@NotNull CommandList  commandList 
)

Adds a key binding.

Parameters
perCharacterwhether a per-character key binding should be added
commandListthe command list to execute on key press
Returns
whether the key bindings dialog should be opened

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.commands.BindCommand.execute().

Here is the caller graph for this function:

◆ getCommandList()

CommandList com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandList ( @NotNull String  args) throws NoSuchCommandException

Returns a command list.

Parameters
argsthe name of the command list
Returns
the command list
Exceptions
NoSuchCommandExceptionif the command list does not exist

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.commands.ExecCommand.execute().

Here is the caller graph for this function:

◆ getCommandListNames()

Collection<String> com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandListNames ( )

Returns all command list names.

Returns
the names in alphabetical order

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.commands.ExecCommand.getHelp().

Here is the caller graph for this function:

◆ openDialog()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.openDialog ( @NotNull String  dialog)

Opens a dialog. Does nothing if the dialog is open.

Parameters
dialogthe dialog to open

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogOpenCommand.execute().

Here is the caller graph for this function:

◆ quitApplication()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.quitApplication ( )

Terminates the application.

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.QuitCommand.execute().

Here is the caller graph for this function:

◆ removeKeyBinding()

boolean com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.removeKeyBinding ( boolean  perCharacter)

Removes a key binding.

Parameters
perCharacterwhether a per-character key binding should be removed
Returns
whether the key bindings dialog should be opened

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.commands.UnbindCommand.execute().

Here is the caller graph for this function:

◆ toggleDialog()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.toggleDialog ( @NotNull String  dialog)

Toggles a dialog.

Parameters
dialogthe dialog to toggle

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.execute().

Here is the caller graph for this function:

◆ updatePlayerName()

void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.updatePlayerName ( @NotNull String  playerName)

Sets the current player name. Does nothing if not currently in the character name prompt.

Parameters
playerNamethe player name

Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.

Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUIText.keyPressed().

Here is the caller graph for this function:

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