Crossfire JXClient, Trunk
ExecSelectionCommand.java
Go to the documentation of this file.
1 /*
2  * This file is part of JXClient, the Fullscreen Java Crossfire Client.
3  *
4  * JXClient is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * JXClient is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with JXClient; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * Copyright (C) 2005-2008 Yann Chachkoff
19  * Copyright (C) 2006-2017,2019-2023 Andreas Kirschbaum
20  * Copyright (C) 2010-2012,2014-2018,2020-2023 Nicolas Weeger
21  */
22 
23 package com.realtime.crossfire.jxclient.gui.commands;
24 
30 import org.jetbrains.annotations.NotNull;
31 
37 public class ExecSelectionCommand implements GUICommand {
38 
42  @NotNull
43  private final GUIItemList<?> list;
44 
48  @NotNull
49  private final CommandType command;
50 
54  @NotNull
56 
60  @NotNull
61  private final FloorView floorView;
62 
66  @NotNull
67  private final CommandQueue commandQueue;
68 
77  public ExecSelectionCommand(@NotNull final GUIItemList<?> list, @NotNull final CommandType command, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FloorView floorView, @NotNull final CommandQueue commandQueue) {
78  this.list = list;
79  this.command = command;
80  this.crossfireServerConnection = crossfireServerConnection;
81  this.floorView = floorView;
82  this.commandQueue = commandQueue;
83  }
84 
85  @Override
86  public boolean canExecute() {
88  }
89 
90  @Override
91  public void execute() {
93  }
94 
95 }
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute
void execute()
Definition: ExecSelectionCommand.java:91
com.realtime.crossfire.jxclient
com.realtime.crossfire.jxclient.gui.commands.CommandType
Definition: CommandType.java:37
com.realtime.crossfire.jxclient.server
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.list
final GUIItemList<?> list
Definition: ExecSelectionCommand.java:43
com.realtime.crossfire.jxclient.items.FloorView
Definition: FloorView.java:36
com.realtime.crossfire.jxclient.gui.commands.CommandType.canExecute
static boolean canExecute(@Nullable final GUIItemItem guiItem)
Definition: CommandType.java:118
com.realtime.crossfire.jxclient.gui.commandlist
Definition: CommandList.java:23
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.crossfireServerConnection
final CrossfireServerConnection crossfireServerConnection
Definition: ExecSelectionCommand.java:55
com.realtime.crossfire.jxclient.gui.list.GUIItemList
Definition: GUIItemList.java:46
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.canExecute
boolean canExecute()
Definition: ExecSelectionCommand.java:86
com.realtime.crossfire.jxclient.gui.list
Definition: CharacterCellRenderer.java:23
com.realtime.crossfire.jxclient.gui.list.GUIItemList.getSelectedItem
GUIItemItem getSelectedItem()
Definition: GUIItemList.java:250
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.command
final CommandType command
Definition: ExecSelectionCommand.java:49
com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection
Definition: CrossfireServerConnection.java:37
com.realtime.crossfire.jxclient.gui
com.realtime.crossfire.jxclient.queue.CommandQueue
Definition: CommandQueue.java:38
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand
ExecSelectionCommand(@NotNull final GUIItemList<?> list, @NotNull final CommandType command, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FloorView floorView, @NotNull final CommandQueue commandQueue)
Definition: ExecSelectionCommand.java:77
com.realtime.crossfire.jxclient.server.crossfire
Definition: AbstractCrossfireServerConnection.java:23
com.realtime.crossfire.jxclient.queue
Definition: CommandQueue.java:23
com.realtime.crossfire.jxclient.gui.commands.CommandType.execute
void execute(@Nullable final GUIItemItem guiItem, @NotNull final CrossfireServerConnection crossfireServerConnection, final int floor, @NotNull final CommandQueue commandQueue)
Definition: CommandType.java:129
com.realtime.crossfire
com.realtime
com
com.realtime.crossfire.jxclient.items
Definition: AbstractItemView.java:23
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.floorView
final FloorView floorView
Definition: ExecSelectionCommand.java:61
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.commandQueue
final CommandQueue commandQueue
Definition: ExecSelectionCommand.java:67
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand
Definition: ExecSelectionCommand.java:37
com.realtime.crossfire.jxclient.gui.commandlist.GUICommand
Definition: GUICommand.java:29
com.realtime.crossfire.jxclient.items.FloorView.getCurrentFloorTag
int getCurrentFloorTag()
Definition: FloorView.java:116