 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.commands;
27 import org.jetbrains.annotations.NotNull;
61 protected void drawInfo(@NotNull
final String message) {
78 protected void drawInfo(@NotNull
final String message,
final int color) {
An external command executed as a client-sided script.
Implements the "again" command.
Abstract base class for text input fields.
Interface for listeners interested in the "failure" messages received from the Crossfire server.
Interface for classes interested in faces received from the Crossfire server.
Utility class for Swing related functions.
Implements the "unbind" command.
Abstract base class for ItemView implementing classes.
Maintains a mapping of face numbers to face data.
Interface for listeners interested in received "newmap" messages.
A GUICommand which disconnects from the Crossfire server.
Interface for events attached to skins.
One possible class or race for character creation.
Displays a value as a graphical gauge that's filling state depends on the value.
Tracks a GuiStateManager and updates a JXCConnection's character name.
Builder for CharacterInformation instances while parsing an "accountplayers" packet.
A socket that processes incoming data.
Utility class for manipulating filenames.
Represents a response line from the metaserver.
Paints Crossfire item images.
Interface for listeners interested in changes within CfMap instances.
Combines a list of GUIElements to for a gui.
Interface for listeners interested in drawinfo messages received from the Crossfire server.
Interface for listeners interested in "sound" commands.
A SkinEvent that executes a CommandList whenever a new skill has been lost.
Command line argument parser.
Interface for listeners for changes of Buffer contents.
Implements the command "clear".
A factory class to create "textbutton" instances.
A GUICommand that has a string representation.
Regression tests for MapUpdaterState.
All defined entries in the settings file.
Model class maintaining the CfItems known to the player.
Manages all quests for a player.
A GUIElement representing an in-game object in the ground view.
A JXCSkinSource that loads via the class loader.
The main FaceQueue for loading faces.
A cache for Face instances.
Manages all knowledge the player knows.
Input field for "query" dialogs.
Builds for MessageTypes instances.
Interface for listeners interested in "pickup" messages.
Utility class for spell path related functions.
A slot in the shortcuts bar.
One of the two most important classes, ServerConnection performs most of the network-related work.
A GUICommand sending an account creation request.
Implements the "bindings" command, listing currently active keybindings (for both a character and the...
Helper class to track the currently marked item.
Interface for listeners interested in Spell related events.
Retrieves Face information by face ID.
This is the entry point for JXClient.
Implements the map model which is shown in the map and magic map views.
Interface for listeners interested in magicmap messages received from the Crossfire server.
Handles keyboard input processing.
A ListCellRenderer that renders GUIMetaElement instances.
Interface for listeners interested in Quest related events.
Abstract base class for gui elements implementing text fields.
A set of message types or type/subtypes.
Updates the displayed values in a GUIGauge.
Utility class for mathematical functions.
A GUICommand for setting the inventory filter.
A FacesProvider that returns faces scaled to 64x64 pixels.
A utility to scale down an image by 8 in both dimensions.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
A GUIItem for displaying inventory objects.
A GUIElement that displays a list of entries.
A simple implementation of the Scale2x algorithm for scaling raw image data.
Adds drawinfo, drawextinfo, and query messages to a Buffer instance.
A GUICommand which connects to a Crossfire server.
Implements the "shortcut" command.
Creates BufferedImage instances from string representations.
Interface for listeners for Shortcut changes.
A GaugeUpdater which monitors the active skill.
Regression tests for class StringSplitter.
Interface for listeners for changes of item locations.
AbstractCommand(@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
Interface for listeners interested in comc commands received from the server.
Interface defining constants for the "magicmap" Crossfire protocol message.
Maintains the application's main GUI state.
A GUICommand sending an account password change request.
Utility class to parse orientation names.
Utility class for manipulating images.
Runs the action using SwingUtilities2#invokeAndWait(Runnable).
Represents a square area of CfMapSquares.
Manages animations received from the server.
Tracks received Crossfire messages and resets the "output-count" setting whenever a player logs in.
Utility class for converting stat values to stat names.
Interface for listeners interested in ScriptProcess related events.
Utility class for creating FaceImages instances.
A dialog title that allows to move the dialog.
Represents a map (as seen by the client).
A factory class to create "textbutton" instances.
Allows to exit the application.
Abstract base class for GUI elements to be shown in Guis.
A GaugeUpdater which monitors a stat value.
General information for creating new characters.
Helper class for creating file names for screenshot files.
Abstract base class for all label classes.
Provides a view of all spells a character knows.
A GUIHTMLLabel that displays the last received "query" command.
Interface for listeners interested in FacesManager events.
A GUICommand for selecting or deselecting a GUIElement.
Interface for listeners interested in account information related messages received from the Crossfir...
A GUIList to display quests.
Abstract base class for Command implementations.
A GUICommand which toggles the visibility of a target GUIElement.
Default Buffer implementation.
Utility class for converting darkness values into colors.
A CheckBoxOption that enables/disables background music.
A CheckBoxOption that toggles a pickup setting in Pickup#PU_NEW_MODE.
Interface defining constants for the "upditem" Crossfire protocol message.
Parser for parsing drawextinfo messages received from a Crossfire server to update a Buffer instance.
Factory for creating GUICommand instances from string representation.
A GUICommand which executes a Crossfire command.
Interface for orientation images.
Interface for listeners interested gui state changes.
A GUIItemList for inventory views.
Manages animations received from the server.
A GUIElement that can be set to active or inactive.
Creates GaugeUpdater instances from string representations.
Encapsulates the message type numbers for drawextinfo messages.
A GUIElement representing an in-game object.
Manages image information ("faces") needed to display the map view, items, and spell icons.
Interface for classes that allow sending "askface" commands.
Abstract base class for CrossfireServerConnection implementing classes.
The value part of an entry of a settings file.
Implements an Orientation which grows south to north.
Interface for listeners on skill related changes.
Implements a cache for elements identified by name.
Interface for listeners interested in changed item locations.
Performs most of the network-related work.
Utility class for parsing strings into numbers.
A Comparator that compares CfItem instances in inventory view order.
Utility class to parse stat names.
Allocates new sound clips.
Represents a pressed or released key.
Loader for JXCSkins and attaching them to the client.
Exception thrown if a skin related problem occurs.
Indicates that a key code does not exist.
A CheckBoxOption that enables/disables translucent dialog backgrounds.
A gui element implementing the message window.
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Java provides two different sets of cryptographic policy and subdirectories can be added edited removed to reflect your import or export control product requirements Within a subdirectory
Interface for listeners interested in NewCharModel related changes.
An expression yielding an integer value derived from a screen resolution.
A list of event listeners.
Action after ESC has been pressed.
Abstract base class for GUIElements that display map views.
Manages all known spells.
A filter option for the inventory view.
A GaugeUpdater which monitors a skill.
A GUIList display characters of an account.
A GaugeUpdater which monitors a stat value.
Implements the "bind" command.
A Command for regression tests.
Interface for listeners for attribute changes of CfItems.
Maintains the character list for an account.
A GUIComboBox that shows character creation options.
Interface for providers of JXCSkin sources.
A GUIComboBox that shows available starting maps for character creation.
Interface for listeners interested in changes of a RenderStateManager instance.
Manages a set of key bindings.
Default JXCSkin implementation.
Listener for classes interested in commands sent to the Crossfire server.
Interface for ImageIcon caching classes.
Describes a Crossfire spell.
Abstract base class for key bindings.
Implements an AbstractLabel that displays HTML contents.
Parser for loading JXCSkin instances from JXCSkinSources.
A CheckBoxOption that enables/disables showing commands sent to the server in the messages dialog.
Manages a set of sound clips (short sound effects).
A thread that plays a music file over and over until terminated.
int NDI_RED
A message color.
Regression tests for AbstractOrientation.
A CommandCallback that delegates to a GuiManager.
One segment of a Line which should be displayed without changing attributes.
A GUIElement that displays a combo box.
A GUIItemItem that represents an entry in a GUISpellList.
Interface for listeners interested in "music" commands.
A GUIText element that executes the entered text as a command.
Parses and executes client-side commands.
A choice for character creation.
Manages the contents of one text line.
A GUIElement that implements a button.
Implements an Orientation which grows east to west.
A character displaying GUI element.
A GUIItemList displaying spell skills.
Parser for integer expressions.
Expands a command (or list of commands) into a sequence of Commands to execute.
A GUIElement instance representing an in-game item.
Interface defining an abstract GUI element.
A GUICommand sending a request to link a character to an account.
Utility class for en-/decoding hexadecimal strings.
A disk based cache for image files.
Parser for creating GUICommand instances from string representations.
The representation of a Crossfire Item, client-side.
Interface for clients interested in auto-close events of Gui instances.
Helper class to generate Stats#C_STAT_STARVING value from the Stats#CS_STAT_FOOD value.
A CheckBoxOption that enables/disables sound effects.
A GUIGauge which displays the current value as a text string on top of the gauge.
Logs received messages to a file.
Utility class to return references to settings files.
Records all callback functions.
Utility class for Gui related functions.
An entry in the settings file.
Helper functions for keyboard modifiers.
Interface for listeners interested in received packets.
Interface for listeners interested in SpellsManager events.
A SkinEvent that executes a CommandList whenever a magicmap protocol command is received.
Displays a value as a graphical gauge that's filling state depends on the value.
Provides a view of all items in the current player's inventory.
Maintains pending movements of the character.
A Comparator to compare Quest instances by title and code.
Manages macro expansion in command strings.
Records all callback functions.
One skill of the character.
Maintains the current GuiState.
Encapsulates the extent of a GUI element.
A FacesManager for regression tests.
Implements an Orientation which grows north to south.
void drawInfoError(@NotNull final String message)
Displays an error message.
Maintains currently running script processes.
Abstract base class for implementing Orientation instances.
A AbstractGUIElement that displays a picture depending on the value of a stat.
Maintains a set of named options.
A scheduler for asynchronous event notifications.
Parser for response lines of metaserver response lines.
Builder for ClassRaceInfo instances while parsing a "replyinfo race_info" packet.
A list to display spell skills.
Indicates that a key binding is invalid.
Utility class to store or restore the dialog states to/from a file.
A GUICommand sending a play character request to the server.
A GUICommand which hides a target GUIElement.
Utility class for parsing string parameters into values.
An Exception thrown if a command does not exist.
A ListCellRenderer that implements resizing after screen resolution changes.
A GUILabel that displays a value of the last received "stats" command.
A GUIElement that displays a spinner.
A utility to perform the scale2x algorithm on a Java Image.
Creates Font instances from string representations.
An option that affects the pickup mode.
Interface defining constants for the "map2" Crossfire protocol message.
Interface for listeners interested in KnowledgeItem related events.
Manages the contents of the contents of a log window.
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Java provides two different sets of cryptographic policy files
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Extension(JCE) architecture allows flexible cryptographic key strength to be configured via the jurisdiction policy files which are referenced by the "crypto.policy" security property in the< java-home >/conf/security/java.security file. By default
Implements the "scripttell" command.
A GUIElement that fills an area with a given color.
A text input field which executes a CommandList when ENTER is pressed.
Renders a Gui instance into a Frame.
Defines constants for pickup mode.
Abstract base class for labels that render text.
General information for creating new characters.
Interface for listeners interested in "tick" commands.
A GUIComboBox that shows available classes for character creation.
This is the representation of all the statistics of a player, like its speed or its experience.
Interface for listeners interested in query messages received from the Crossfire server.
Encapsulates the state for rendering a Buffer instance.
Interface for listeners interested in pressed ESC keys.
Java(TM) Cryptography Extension Policy Files for the Java(TM) Platform
A GUIList instance that displays GUIItemItem instances.
A script process that executes an external command.
Utility class for splitting strings.
A filter option for the quests view.
Information about JXClient's screen/window resolution.
Implements the "script" command.
Abstract base class for shortcut commands.
Maintains a set of key/value pairs.
Default implementation of CrossfireServerConnection.
Listener for clients interested in map size changes.
Utility class containing useful Patterns.
Manages a set of animated faces.
A ScriptProcess for regression tests.
Runs the action directly.
A FaceQueue loading faces from ImageCache instances.
A factory class to create "checkbox" instances.
Executes non-blocking tasks for sound-related functions.
Interface for listeners for Shortcut changes.
The base class for all options.
Utility class to update a CfMap model from protocol commands.
Encapsulates the state for a scroll bar.
Interface which is implemented by all listener classes.
int NDI_BLACK
A message color.
Describes a Crossfire spell.
Interface for listeners interested in the changed flag of GUIElement instances.
Interface for listeners interested in map related commands.
Interface for listeners interested in FaceQueue events.
A GUICommand that executes a command on the selected item of a GUIItemList.
Regression tests for class Orientation and implementing classes.
Scales down a raw image to an eighth in both dimensions.
Monitors sound and sound2 commands received from the server to generate sound effects.
A GUIItemItem that represents an entry in a GUIQuestList.
Interface for listeners interested in drawextinfo messages received from the Crossfire server.
Implements the "watch" function for client-sided scripts.
Consists of three ImageIcons representing a Face.
Implements the "scriptkill" command.
Information for displaying tooltips.
Implements the "scripts" command.
Implements an Orientation which grows west to east.
Interface for classes that may handle "pressed" key events.
Interface for listeners interested in changed items.
Exception thrown for unterminated quoted tokens.
Regression tests for AbstractScriptProcess.
Interface for listeners interested in QuestsManager events.
A GUICommand which does nothing.
void drawInfo(@NotNull String message, int color)
Pretends that a drawinfo message has been received.
Factory for creating Gui instances.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
Builder for NewCharInfo instances while parsing a "replyinfo newcharinfo" response packet.
A FacesProvider that returns faces scaled to 64x64 pixels.
A list of GUICommand instances.
A GUIList that tracks a GUICharacter instance.
Provides a view of all quests a character is doing.
A Comparator to compare Spell instances by spell path and name.
Interface for listeners interested in ClientSocket related events.
Interface for listeners interested in item related commands.
A CheckBoxOption that sets a mode without Pickup#PU_NEW_MODE.
final String commandName
The name of the command.
Describes an in-game quest.
A factory for creating FacesProvider instances.
A JXCSkinSource that loads from files.
Builder for StartingMap instances while parsing a "replyinfo startingmap" response packet.
Interface for classes implementing a means to load Faces.
A GUIHTMLLabel that displays stat information in the character creation dialog.
Maintains a set of Gui instances representing dialog windows.
Implements the "screenshot" command.
An exception that is thrown if an undefined message type occurs.
A GUIHTMLLabel that displays the last received "failure" message.
A FaceQueue requesting faces by "askface" commands sent to the Crossfire server.
Interface that defines callback functions needed by commands.
A KeyHandlerListener which updates the state of a GuiManager.
An UnknownCommandException is generated whenever an unknown message packet is received from the serve...
Interface for querying monitor commands for script processes.
Interface for listeners for attribute changes of Options.
Abstract base class for FacesManager implementations.
Regression test for CommandExpander.
Maintains AnimationState instances for item tag values.
Defines a JXClient skin consisting of a main Gui and zero or more dialog Guis.
Stores experience <-> level mappings.
A GUICommand sending a character creation request.
A SkinEvent that executes a CommandList whenever a new skill has been gained.
Writer debug information to a log file.
A background image for dialog windows.
Implements the command "set".
A GUICommand which shows the start screen.
Factory for creating CommandHistory instances by name.
A AbstractLabel that renders the text as a list of plain strings.
A FacesProvider that returns faces scaled to 4x4 pixels.
Creates gui element instances from string representations.
Utility class for string manipulation.
Manages a list of previously entered commands.
Implements the command "help".
A CheckBoxOption that executes CommandLists when checked/unchecked.
Abstract base class for JXCSkinSource implementations.
void drawInfo(@NotNull final String message)
Displays a regular output message.
A AbstractGUIElement that displays a picture.
One possible starting map for character creation.
Implements CrossfireServerConnection for regression tests.
Displays knowledge items the player knows.
A GUIHTMLLabel that displays the last received "drawinfo" message.
Connection progress states of the Crossfire server connection.
Represents a square in a CfMap.
Manages the state for the key binding dialog.
Displays the pending movements on a map view.
Default implementation for ScriptProcesses.
String getCommandName()
Returns the name of the command.
A GUICommand which shows a target GUIElement.
void drawInfo(@NotNull final String message, final int color)
Displays a message.
Interface for listeners on metaserver entry related events.
Callback for a change in a character list.
Implements the "debug_messages" command.
Manages a list of Shortcuts.
A SkinEvent that executes a CommandList at connection setup.
Provides a view to all items comprising the current floor view.
Maintain the set of skills as sent by the server.
Update a CfMap model from protocol commands.
A GUICommand which activates the command input field.
A GUICommand which quite the client.
Regression tests for DefaultCrossfireServerConnection.
A GUICommand which opens a Gui dialog.
Factory for creating GUICommand instances from string representation.
A SkinEvent that executes a CommandList at connection setup.
The state of an Animation on a map.
Utility class to encode arbitrary Strings to fit in a single text line.
A Buffer implementation for tests.
Helper class to synthesize an "active skill" stat value.
A GUICommand which toggles the visibility of a dialog.
The base class for all check box options.
A GUIList to display spells.
Abstract base class for classes implementing FaceQueue.
Interface for face providers.
A AbstractLabel that renders the text as a plain string.
A Command instance and its arguments.
Utility class for loading information from resources.
Implements the "exec" command.
Maintains smoothing information received from the Crossfire server.
Interface for listeners interested in changes of Stats instances.
Interface for listeners in ItemSet related events.
A dummy Crossfire server for tests.
Helper class to listen on Stats#CF_POISONED.
Maintains the pending (ncom) commands sent to the server.
Monitors music commands and generates appropriate sound effects.
Monitors stat changes and generates appropriate sound effects.
A gui element implementing a static text field which may contain media tags.
Regression tests for PacketWatcher.
A CfItem that represents a character.
Implements the "scriptkillall" command.
Displays a small map view.
Manages items known to the character.
Regression tests for Parser.
A GUICommand which moves the selection in a GUIList element.
A CheckBoxOption that enables/disables timestamps in the messages window.
Displays a shortcut command.
Interface for listeners interested in gui state changes.
A GUIItemList for floor views.
Maintains AnimationState instances for map locations.
A GUILabel that displays a value of the last received "stats" command.
A GUICommand which executes (i.e., simulates a left-button mouse click on) an GUIItem.
A GUICommand sending an account login request to the server.
Combines all model classes that are updated.
Listener for GUIElement related events.
Negotiates the size of the ground view in items with the Crossfire server.
A JViewport that allows updating the viewport state.
Renderer for painting smoothed faces into map views.
Maps between key codes integer constants and string representations.
A GUIComboBox that shows available races for character creation.
A GUICommand which closes a Gui.
Tracks a GuiStateManager and resets known faces whenever a new server connection has been established...
Indicates about an incorrect option.
All gui states of JXCWindowRenderer.
Tracks mouse actions and delivers mouse events to affected GUIElement.
A GUICommand for setting a quest filter.
Regression tests for RenderState.
Implements a client-side command.