 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.commands;
30 import org.jetbrains.annotations.NotNull;
void execute()
Executes the command.
void execute(@Nullable final GUIItemItem guiItem, @NotNull final CrossfireServerConnection crossfireServerConnection, final int floor, @NotNull final CommandQueue commandQueue)
Executes the action.
int getCurrentFloorTag()
Returns the current floor location.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
boolean canExecute()
Returns whether this command may be executed.
GUIItemItem getSelectedItem()
Returns the selected GUIItemItem instance.
final CommandType command
The command to execute.
final CommandQueue commandQueue
The command queue to use.
static boolean canExecute(@Nullable final GUIItemItem guiItem)
Returns whether the action can be executed.
A GUIList instance that displays GUIItemItem instances.
A GUICommand that executes a command on the selected item of a GUIItemList.
final GUIItemList<?> list
The list to execute in.
final CrossfireServerConnection crossfireServerConnection
The connection to execute commands on.
ExecSelectionCommand(@NotNull final GUIItemList<?> list, @NotNull final CommandType command, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FloorView floorView, @NotNull final CommandQueue commandQueue)
Creates a new instance.
Provides a view to all items comprising the current floor view.
final FloorView floorView
The FloorView to use.
Maintains the pending (ncom) commands sent to the server.