 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.main;
30 import java.util.Collection;
31 import org.jetbrains.annotations.NotNull;
136 public void accountLogin(@NotNull
final String login, @NotNull
final String password) {
142 public void accountCreate(@NotNull
final String login, @NotNull
final String password) {
153 public void accountLink(
final int force, @NotNull
final String login, @NotNull
final String password) {
163 public void accountPassword(@NotNull
final String currentPassword, @NotNull
final String newPassword) {
void activateCommandInput(@NotNull final String newText)
Activates the command input text field.
void closeDialog(@NotNull final String dialog)
Closes a dialog.
Collection< String > getCommandListNames()
Returns all names of command lists.
void toggleDialog(@NotNull final String name)
Toggles a dialog.
void toggleDialog(@NotNull final String dialog)
Toggles a dialog.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
void updatePlayerName(@NotNull final String playerName)
Sets the current player name.
Maintains the application's main GUI state.
Allows to exit the application.
GuiManagerCommandCallback(@NotNull final Exiter exiter, @NotNull final CrossfireServerConnection server)
Creates a new instance.
void openDialog(@NotNull final String name)
Opens a dialog by name.
boolean createKeyBinding(final boolean perCharacter, @NotNull final CommandList cmdList)
Adds a key binding.
CommandList getCommandList(@NotNull final String args)
Returns a named command list.
void terminate()
Terminates the application.
final CrossfireServerConnection server
The CrossfireServerConnection for sending commands.
boolean createKeyBinding(final boolean perCharacter, @NotNull final CommandList commandList)
Adds a key binding.
Collection< String > getCommandListNames()
Returns all command list names.
GUIText activateCommandInput()
Activates the command input text field.
void accountCreate(@NotNull final String login, @NotNull final String password)
Creates an account.
boolean removeKeyBinding(final boolean perCharacter)
Removes a key binding.
A CommandCallback that delegates to a GuiManager.
void accountLogin(@NotNull final String login, @NotNull final String password)
Login to an account.
void init(@NotNull final GuiManager guiManager)
Creates a new instance.
void sendAccountCharacterCreate(@NotNull String login, @NotNull String password, @NotNull Collection< String > attributes)
Sends a request to create a new character associated to the account.
void sendAccountLink(int force, @NotNull String login, @NotNull String password)
Sends a request to add an existing character to an account.
String lastAccountPassword
The last sent account or character password.
An Exception thrown if a command does not exist.
void sendAccountLogin(@NotNull String login, @NotNull String password)
Asks for an account login.
void sendAccountPassword(@NotNull String currentPassword, @NotNull String newPassword)
Sends a request to change the account's password.
void openDialog(@NotNull final String dialog)
Opens a dialog.
void accountLink(final int force, @NotNull final String login, @NotNull final String password)
Links a character to the current account.
void accountPlayCharacter(@NotNull final String name)
Plays a character from the current account.
A list of GUICommand instances.
void closeDialog(@NotNull final String name)
Closes the given dialog.
GuiManager guiManager
The GuiManager to forward to.
final Exiter exiter
The Exiter instance.
Interface that defines callback functions needed by commands.
void sendAccountPlay(@NotNull String name)
Sends a request to play a character from an account.
boolean removeKeyBinding(final boolean perCharacter)
Removes a key binding.
void sendAccountCreate(@NotNull String login, @NotNull String password)
Sends a request to create a new account.
CommandList getCommandList(@NotNull final String args)
Returns a command list.
void quitApplication()
Terminates the application.
void accountPassword(@NotNull final String currentPassword, @NotNull final String newPassword)
Change the account password.
void updatePlayerName(@NotNull final String playerName)
Sets the current player name.
void accountCreateCharacter(@NotNull final String login, @NotNull final Collection< String > attributes)
Creates a character.