22 package com.realtime.crossfire.jxclient.main;
29 import org.jetbrains.annotations.NotNull;
158 public void accountLogin(@NotNull
final String login, @NotNull
final String password) {
160 lastAccountPassword = password;
167 public void accountCreate(@NotNull
final String login, @NotNull
final String password) {
169 lastAccountPassword = password;
184 public void accountLink(
final int force, @NotNull
final String login, @NotNull
final String password) {
200 public void accountPassword(@NotNull
final String currentPassword, @NotNull
final String newPassword) {
String lastAccountPassword
The last sent account or character password.
void sendAccountPassword(@NotNull String currentPassword, @NotNull String newPassword)
Sends a request to change the account's password.
void updatePlayerName(@NotNull final String playerName)
Sets the current player name.Does nothing if not currently in the character name prompt. the player name
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. the new command text if non-null
void sendAccountLink(int force, @NotNull String login, @NotNull String password)
Sends a request to add an existing character to an account.
void init(@NotNull final GuiManager guiManager)
Creates a new instance.
void quitApplication()
Terminates the application.
void sendAccountLogin(@NotNull String login, @NotNull String password)
Asks for an account login.
boolean createKeyBinding(final boolean perCharacter, @NotNull final CommandList cmdList)
Adds a key binding.
void accountLogin(@NotNull final String login, @NotNull final String password)
Login to an account.login password
void openDialog(@NotNull final String name)
Opens a dialog by name.
final Exiter exiter
The Exiter instance.
void updatePlayerName(@NotNull final String playerName)
Sets the current player name.
void toggleDialog(@NotNull final String name)
Toggles a dialog.
void sendAccountCharacterCreate(@NotNull String login, @NotNull String password)
Sends a request to create a new character associated to the account.
void sendAccountCreate(@NotNull String login, @NotNull String password)
Sends a request to create a new account.
CommandList getCommandList(@NotNull final String args)
Returns a named command list.
void accountLink(final int force, @NotNull final String login, @NotNull final String password)
Links a character to the current account.0 to allow failure, 1 to force in certain situations the cha...
void accountPlayCharacter(@NotNull final String name)
Plays a character from the current account.the character's name
GuiManager guiManager
The GuiManager to forward to.
GUIText activateCommandInput()
Activates the command input text field.
void accountCreate(@NotNull final String login, @NotNull final String password)
Creates an account.the account's name the account's password
void toggleDialog(@NotNull final String dialog)
Toggles a dialog.the dialog to toggle
boolean removeKeyBinding(final boolean perCharacter)
Removes a key binding.
final CrossfireServerConnection server
The CrossfireServerConnection for sending commands.
void accountCreateCharacter(@NotNull final String login)
Creates a character.The password should be the last from accountLogin or accountCreate. the character's name
An Exception thrown if a command does not exist.
boolean removeKeyBinding(final boolean perCharacter)
Removes a key binding.whether a per-character key binding should be removed whether the key bindings ...
Maintains the application's main GUI state.
Interface that defines callback functions needed by commands.
boolean createKeyBinding(final boolean perCharacter, @NotNull final CommandList commandList)
Adds a key binding.whether a per-character key binding should be added the command list to execute on...
void closeDialog(@NotNull final String name)
Closes the given dialog.
void terminate()
Terminates the application.
GuiManagerCommandCallback(@NotNull final Exiter exiter, @NotNull final CrossfireServerConnection server)
Creates a new instance.
Allows to exit the application.
void openDialog(@NotNull final String dialog)
Opens a dialog.Does nothing if the dialog is open. the dialog to open
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
A list of GUICommand instances.
void accountPassword(@NotNull final String currentPassword, @NotNull final String newPassword)
Change the account password.the current account password the new account password ...
CommandList getCommandList(@NotNull final String args)
Returns a command list.the command list arguments the command list if the command list does not exist...
void sendAccountPlay(@NotNull String name)
Sends a request to play a character from an account.
A CommandCallback that delegates to a GuiManager.
void closeDialog(@NotNull final String dialog)
Closes a dialog.Does nothing if the dialog is not open. the dialog to close