Class ItemsManager
- java.lang.Object
-
- com.realtime.crossfire.jxclient.items.ItemsManager
-
public class ItemsManager extends java.lang.ObjectManages items known to the character. This includes items on the floor, in the character's inventory, the character object itself, and items within containers known to the character.
-
-
Constructor Summary
Constructors Constructor Description ItemsManager(@NotNull FacesManager facesManager, @NotNull Stats stats, @NotNull SkillSet skillSet, @NotNull GuiStateManager guiStateManager, @NotNull ItemSet itemSet)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemReceived(int location, int tag, int flags, int weight, int faceNum, @NotNull java.lang.String name, @NotNull java.lang.String namePl, int anim, int animSpeed, int nrof, int type)An "additem" has been received.voiddelinvReceived(int tag)A "delinv" command has been received.voiddelitemReceived(int @NotNull [] tags)A "delitem" command has been received.voidplayerReceived(int tag, int weight, int faceNum, @NotNull java.lang.String name)A "player" command has been received.voidupditemReceived(int flags, int tag, int valLocation, int valFlags, int valWeight, int valFaceNum, @NotNull java.lang.String valName, @NotNull java.lang.String valNamePl, int valAnim, int valAnimSpeed, int valNrof)An "upditem" command has been received.
-
-
-
Constructor Detail
-
ItemsManager
public ItemsManager(@NotNull @NotNull FacesManager facesManager, @NotNull @NotNull Stats stats, @NotNull @NotNull SkillSet skillSet, @NotNull @NotNull GuiStateManager guiStateManager, @NotNull @NotNull ItemSet itemSet)Creates a new instance.- Parameters:
facesManager- the faces manager for looking up facesstats- the instance to updateskillSet- the skill set instance to updateguiStateManager- the gui state manager to watchitemSet- the item set to use
-
-
Method Detail
-
delinvReceived
public void delinvReceived(int tag)
A "delinv" command has been received.- Parameters:
tag- the item tag
-
delitemReceived
public void delitemReceived(int @NotNull [] tags)
A "delitem" command has been received.- Parameters:
tags- the item tags
-
addItemReceived
public void addItemReceived(int location, int tag, int flags, int weight, int faceNum, @NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.String namePl, int anim, int animSpeed, int nrof, int type)An "additem" has been received.- Parameters:
location- the item's locationtag- the item tagflags- the item's flagsweight- the item's weightfaceNum- the item's face IDname- the item's singular namenamePl- the item's plural nameanim- the item's animation IDanimSpeed- the item's animation speednrof- the number of itemstype- the item's type
-
playerReceived
public void playerReceived(int tag, int weight, int faceNum, @NotNull @NotNull java.lang.String name)A "player" command has been received.- Parameters:
tag- the player's taqweight- the player's weightfaceNum- the player's face IDname- the player's name
-
upditemReceived
public void upditemReceived(int flags, int tag, int valLocation, int valFlags, int valWeight, int valFaceNum, @NotNull @NotNull java.lang.String valName, @NotNull @NotNull java.lang.String valNamePl, int valAnim, int valAnimSpeed, int valNrof)An "upditem" command has been received.- Parameters:
flags- the changed valuestag- the item's tagvalLocation- the item's locationvalFlags- the item's flagsvalWeight- the item's weightvalFaceNum- the item's face IDvalName- the item's singular namevalNamePl- the item's plural namevalAnim- the item's animation IDvalAnimSpeed- the item's animation speedvalNrof- the number of items
-
-