Crossfire JXClient, Trunk
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
com.realtime.crossfire.jxclient.gui.commands.CommandType Enum Reference
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.CommandType:
Collaboration graph

Public Member Functions

void execute (@Nullable final GUIItemItem guiItem, @NotNull final CrossfireServerConnection crossfireServerConnection, final int floor, @NotNull final CommandQueue commandQueue)
 

Static Public Member Functions

static boolean canExecute (@Nullable final GUIItemItem guiItem)
 

Public Attributes

 doExecute
 

Protected Member Functions

abstract void doExecute (@NotNull final CfItem item, @NotNull final CrossfireServerConnection crossfireServerConnection, final int floor, @NotNull final CommandQueue commandQueue)
 

Detailed Description

The executable commands.

Author
Andreas Kirschbaum

Definition at line 37 of file CommandType.java.

Member Function Documentation

◆ canExecute()

static boolean com.realtime.crossfire.jxclient.gui.commands.CommandType.canExecute ( @Nullable final GUIItemItem  guiItem)
static

Returns whether the action can be executed.

Parameters
guiItemthe item to check for
Returns
whether the action can be executed

Definition at line 118 of file CommandType.java.

Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.canExecute().

Here is the caller graph for this function:

◆ doExecute()

abstract void com.realtime.crossfire.jxclient.gui.commands.CommandType.doExecute ( @NotNull final CfItem  item,
@NotNull final CrossfireServerConnection  crossfireServerConnection,
final int  floor,
@NotNull final CommandQueue  commandQueue 
)
abstractprotected

Executes the action.

Parameters
itemthe item to execute on
crossfireServerConnectionthe server connection to use
floorthe current floor index
commandQueuethe command queue to use

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.CommandType.execute ( @Nullable final GUIItemItem  guiItem,
@NotNull final CrossfireServerConnection  crossfireServerConnection,
final int  floor,
@NotNull final CommandQueue  commandQueue 
)

Executes the action.

Parameters
guiItemthe item to execute on
crossfireServerConnectionthe server connection to use
floorthe current floor index
commandQueuethe command queue to use

Definition at line 129 of file CommandType.java.

Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().

Here is the caller graph for this function:

Member Data Documentation

◆ doExecute

com.realtime.crossfire.jxclient.gui.commands.CommandType.doExecute

Apply an item.

Definition at line 44 of file CommandType.java.


The documentation for this enum was generated from the following file: