Crossfire JXClient, Trunk
R20561
|
A CommandCallback that delegates to a GuiManager. More...
Public Member Functions | |||||||
void | accountCreate (@NotNull final String login, @NotNull final String password) | ||||||
Creates an account.
| |||||||
void | accountCreateCharacter (@NotNull final String login) | ||||||
Creates a character.The password should be the last from accountLogin or accountCreate.
| |||||||
void | accountLink (final int force, @NotNull final String login, @NotNull final String password) | ||||||
Links a character to the current account.
| |||||||
void | accountLogin (@NotNull final String login, @NotNull final String password) | ||||||
Login to an account.
| |||||||
void | accountPassword (@NotNull final String currentPassword, @NotNull final String newPassword) | ||||||
Change the account password.
| |||||||
void | accountPlayCharacter (@NotNull final String name) | ||||||
Plays a character from the current account.
| |||||||
void | activateCommandInput (@NotNull final 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.
| |||||||
void | closeDialog (@NotNull final String dialog) | ||||||
Closes a dialog.Does nothing if the dialog is not open.
| |||||||
boolean | createKeyBinding (final boolean perCharacter, @NotNull final CommandList commandList) | ||||||
Adds a key binding.
| |||||||
CommandList | getCommandList (@NotNull final String args) throws NoSuchCommandException | ||||||
Returns a command list.
| |||||||
GuiManagerCommandCallback (@NotNull final Exiter exiter, @NotNull final CrossfireServerConnection server) | |||||||
Creates a new instance. More... | |||||||
void | init (@NotNull final GuiManager guiManager) | ||||||
Creates a new instance. More... | |||||||
void | openDialog (@NotNull final String dialog) | ||||||
Opens a dialog.Does nothing if the dialog is open.
| |||||||
void | quitApplication () | ||||||
Terminates the application. More... | |||||||
boolean | removeKeyBinding (final boolean perCharacter) | ||||||
Removes a key binding.
| |||||||
void | toggleDialog (@NotNull final String dialog) | ||||||
Toggles a dialog.
| |||||||
void | updatePlayerName (@NotNull final String playerName) | ||||||
Sets the current player name.Does nothing if not currently in the character name prompt.
| |||||||
Private Attributes | |
final Exiter | exiter |
The Exiter instance. More... | |
GuiManager | guiManager |
The GuiManager to forward to. More... | |
String | lastAccountPassword = "" |
The last sent account or character password. More... | |
final CrossfireServerConnection | server |
The CrossfireServerConnection for sending commands. More... | |
A CommandCallback that delegates to a GuiManager.
Definition at line 35 of file GuiManagerCommandCallback.java.
com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.GuiManagerCommandCallback | ( | @NotNull final Exiter | exiter, |
@NotNull final CrossfireServerConnection | server | ||
) |
Creates a new instance.
exiter | the exiter instance |
server | the crossfire server connection for sending commands |
Definition at line 67 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.exiter, and com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.server.
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountCreate | ( | @NotNull final String | login, |
@NotNull final String | password | ||
) |
Creates an account.
login | the account's name |
password | the account's password |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 167 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountCreate().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountCreateCharacter | ( | @NotNull final String | login | ) |
Creates a character.The password should be the last from accountLogin or accountCreate.
login | the character's name |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 192 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountCharacterCreate().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountLink | ( | final int | force, |
@NotNull final String | login, | ||
@NotNull final 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 |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 184 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountLink().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountLogin | ( | @NotNull final String | login, |
@NotNull final String | password | ||
) |
Login to an account.
login | login |
password | password |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 158 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountLogin().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountPassword | ( | @NotNull final String | currentPassword, |
@NotNull final String | newPassword | ||
) |
Change the account password.
currentPassword | the current account password |
newPassword | the new account password |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 200 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPassword().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.accountPlayCharacter | ( | @NotNull final String | name | ) |
Plays a character from the current account.
name | the character's name |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 176 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendAccountPlay().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.activateCommandInput | ( | @NotNull final 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 |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 134 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.closeDialog | ( | @NotNull final String | dialog | ) |
Closes a dialog.Does nothing if the dialog is not open.
dialog | the dialog to close |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 109 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog().
boolean com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.createKeyBinding | ( | final boolean | perCharacter, |
@NotNull final 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 |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 142 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.createKeyBinding().
CommandList com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.getCommandList | ( | @NotNull final String | args | ) | throws NoSuchCommandException |
Returns a command list.
args | the command list arguments |
NoSuchCommandException | if the command list does not exist |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 118 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.getCommandList().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.init | ( | @NotNull final GuiManager | guiManager | ) |
Creates a new instance.
guiManager | the gui manager to forward to |
Definition at line 77 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.guiManager.
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.openDialog | ( | @NotNull final String | dialog | ) |
Opens a dialog.Does nothing if the dialog is open.
dialog | the dialog to open |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 93 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.openDialog().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.quitApplication | ( | ) |
Terminates the application.
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 85 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.main.Exiter.terminate().
boolean com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.removeKeyBinding | ( | final boolean | perCharacter | ) |
Removes a key binding.
perCharacter | whether a per-character key binding should be removed |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 150 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.removeKeyBinding().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.toggleDialog | ( | @NotNull final String | dialog | ) |
Toggles a dialog.
dialog | the dialog to toggle |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 101 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog().
void com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.updatePlayerName | ( | @NotNull final String | playerName | ) |
Sets the current player name.Does nothing if not currently in the character name prompt.
playerName | the player name |
Implements com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.
Definition at line 126 of file GuiManagerCommandCallback.java.
References com.realtime.crossfire.jxclient.window.GuiManager.updatePlayerName().
|
private |
The Exiter instance.
Definition at line 41 of file GuiManagerCommandCallback.java.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.GuiManagerCommandCallback().
|
private |
The GuiManager to forward to.
Definition at line 47 of file GuiManagerCommandCallback.java.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.init().
|
private |
The last sent account or character password.
Set to
if no password has been sent yet.
Definition at line 60 of file GuiManagerCommandCallback.java.
|
private |
The CrossfireServerConnection for sending commands.
Definition at line 53 of file GuiManagerCommandCallback.java.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.GuiManagerCommandCallback().