Package | Description |
---|---|
com.realtime.crossfire.jxclient.gui.commands | |
com.realtime.crossfire.jxclient.gui.item | |
com.realtime.crossfire.jxclient.items | |
com.realtime.crossfire.jxclient.scripts |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
CommandType.doExecute(CfItem item,
CrossfireServerConnection crossfireServerConnection,
int floor,
CommandQueue commandQueue)
Executes the action.
|
Modifier and Type | Field and Description |
---|---|
private CfItem |
GUIItemItem.item
The current item instance.
|
Modifier and Type | Method and Description |
---|---|
CfItem |
GUIItemItem.getItem()
Returns the current item instance.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Image |
GUIItemSpell.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemKnowledgeType.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemSpellSkill.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemKnowledge.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemQuest.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected abstract java.awt.Image |
GUIItemItem.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemInventory.getFace(CfItem item)
Returns the face for a
CfItem instance. |
protected java.awt.Image |
GUIItemFloor.getFace(CfItem item)
Returns the face for a
CfItem instance. |
void |
ItemPainter.paint(java.awt.Graphics2D g,
CfItem item,
boolean selected,
java.awt.Image face,
int w,
int h)
Paints an
CfItem . |
protected void |
GUIItemItem.setItem(CfItem item)
Sets the current item instance.
|
protected void |
GUIItemItem.setItemNoListeners(CfItem item)
Sets the current item instance without registering listeners for
updates.
|
Modifier and Type | Class and Description |
---|---|
class |
CfPlayer
A
CfItem that represents a character. |
Modifier and Type | Field and Description |
---|---|
private CfItem |
ItemSet.player
The current player object this client controls.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,CfItem> |
ItemSet.allItems
Maps item tags to items.
|
private java.util.Comparator<CfItem> |
InventoryView.comparator
The
Comparator for sorting. |
private java.util.Map<java.lang.Integer,java.util.List<CfItem>> |
ItemSet.items
Maps location (=tag) to list of items in that location.
|
private java.util.List<CfItem> |
InventoryView.items
The items in the inventory ordered by
InventoryView.comparator . |
Modifier and Type | Method and Description |
---|---|
CfItem |
ItemSet.getInventoryItem(int tag,
int index)
Returns a
CfItem from the inventory of an item. |
CfItem |
SpellsView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
FloorView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
KnowledgeTypeView.getItem(int index) |
CfItem |
ItemView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
SpellSkillView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
InventoryView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
KnowledgeView.getItem(int index) |
CfItem |
QuestsView.getItem(int index)
Returns the
CfItem in a given slot. |
CfItem |
ItemSet.getItemByTag(int tag)
Returns an item by tag.
|
private CfItem |
ItemSet.getItemOrPlayer(int tag)
Returns an item by tag.
|
CfItem |
ItemSet.getPlayer()
Returns the player object this client controls.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<CfItem> |
ItemSet.getInventoryByTag(int tag)
Returns the inventory of an item.
|
java.util.List<CfItem> |
ItemSet.getItemsByLocation(int location)
Returns a list of items in a given location.
|
java.lang.Iterable<CfItem> |
ItemSet.getPlayerInventory()
Returns the player's inventory.
|
Modifier and Type | Method and Description |
---|---|
void |
ItemSet.addItem(CfItem item)
Adds an item.
|
private void |
ItemSet.addItem(CfItem item,
boolean notifyListeners)
Adds a
CfItem . |
int |
InventoryComparator.compare(CfItem o1,
CfItem o2) |
private int |
InventoryView.findInsertionIndex(CfItem item)
Returns the insertion index of a
CfItem . |
void |
ItemListener.inventoryAdded(int tag,
int index,
CfItem item)
An inventory
CfItem has been added to the watched item. |
void |
ItemSetListener.itemAdded(CfItem item)
A
CfItem has been added. |
void |
ItemSetListener.itemChanged(CfItem item)
A
CfItem 's attributes have been changed. |
void |
ItemSetListener.itemMoved(CfItem item)
A
CfItem 's location has been changed. |
void |
ItemSetListener.itemRemoved(CfItem item)
A
CfItem has been removed. |
void |
ItemSetListener.playerChanged(CfItem player)
The player
CfItem has changed. |
void |
ItemSet.setPlayer(CfItem player)
Sets the player object this client controls.
|
Constructor and Description |
---|
InventoryView(ItemSet itemSet,
java.util.Comparator<CfItem> comparator)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
DefaultScriptProcess.commandSentItem(java.lang.String cmd,
CfItem item)
Sends an item info message to the script process.
|