 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.shortcuts;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
66 if (this.spell !=
null) {
120 listener.shortcutModified();
151 return command.startsWith(
"invoke ") ||
command.startsWith(
"use_skill ");
159 if (
command.startsWith(
"cast ")) {
162 }
else if (
command.startsWith(
"invoke ")) {
165 }
else if (
command.startsWith(
"ready_skill ")) {
168 }
else if (
command.startsWith(
"use_skill ")) {
void dispose()
Releases all allocated resources.
void removeSpellListener(@NotNull final SpellListener listener)
Removes a SpellListener to be notified of changes.
String getCommand()
Returns the command to execute.
final Spell spell
The spell associated with the command or.
String command
The command to execute.
int getFaceNum()
Returns the face number.
Interface for listeners for Shortcut changes.
void toggleImmediate()
Toggles between immediate execution and activation only.
final EventListenerList2< ShortcutListener > listeners
The listeners to be notified.
void addSpellListener(@NotNull final SpellListener listener)
Adds a SpellListener to be notified of changes.
Manages image information ("faces") needed to display the map view, items, and spell icons.
A list of event listeners.
Describes a Crossfire spell.
String getTooltipText()
Returns the current tooltip text.
void removeShortcutListener(@NotNull final ShortcutListener listener)
Unregisters a shortcut listener.
void addShortcutListener(@NotNull final ShortcutListener listener)
Registers a shortcut listener.
Spell getSpell()
Returns the associated spell to cast.
Abstract base class for shortcut commands.
void fireModifiedEvent()
Notifies all listeners about a modification.
String getTooltipText()
Returns a description for this spell to be used in tooltips.
boolean displaysFace(@NotNull final Face face)
Returns whether this shortcut displays the given face.
boolean isImmediate()
Returns whether the command should be executed immediately.
Shortcut(@NotNull final String command, @Nullable final Spell spell)
Creates a new instance.