Crossfire JXClient, Trunk
|
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) |
Interface that defines callback functions needed by commands.
Definition at line 33 of file CommandCallback.java.
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreate | ( | @NotNull String | login, |
@NotNull String | password | ||
) |
Creates an account.
login | the account's name |
password | the account's password |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCommand.execute().
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.
login | the character's name |
attributes | the character attributes |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLink | ( | int | force, |
@NotNull String | login, | ||
@NotNull String | password | ||
) |
Links a character to the current account.
force | 0 to allow failure, 1 to force in certain situations |
login | the character's name |
password | the character's password |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountLinkCharacterCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLogin | ( | @NotNull String | login, |
@NotNull String | password | ||
) |
Login to an account.
login | login |
password | password |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountLoginCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPassword | ( | @NotNull String | currentPassword, |
@NotNull String | newPassword | ||
) |
Change the account password.
currentPassword | the current account password |
newPassword | the new account password |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountPasswordCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPlayCharacter | ( | @NotNull String | name | ) |
Plays a character from the current account.
name | the character's name |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.execute().
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.
newText | the new command text if non- null
|
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.ActivateCommandInputCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.closeDialog | ( | @NotNull String | dialog | ) |
Closes a dialog. Does nothing if the dialog is not open.
dialog | the dialog to close |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogCloseCommand.execute().
boolean com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.createKeyBinding | ( | boolean | perCharacter, |
@NotNull CommandList | commandList | ||
) |
Adds a key binding.
perCharacter | whether a per-character key binding should be added |
commandList | the command list to execute on key press |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.commands.BindCommand.execute().
CommandList com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandList | ( | @NotNull String | args | ) | throws NoSuchCommandException |
Returns a command list.
args | the name of the command list |
NoSuchCommandException | if the command list does not exist |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.commands.ExecCommand.execute().
Collection<String> com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandListNames | ( | ) |
Returns all command list names.
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.commands.ExecCommand.getHelp().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.openDialog | ( | @NotNull String | dialog | ) |
Opens a dialog. Does nothing if the dialog is open.
dialog | the dialog to open |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogOpenCommand.execute().
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().
boolean com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.removeKeyBinding | ( | boolean | perCharacter | ) |
Removes a key binding.
perCharacter | whether a per-character key binding should be removed |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.commands.UnbindCommand.execute().
void com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.toggleDialog | ( | @NotNull String | dialog | ) |
Toggles a dialog.
dialog | the dialog to toggle |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.execute().
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.
playerName | the player name |
Implemented in com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUIText.keyPressed().