public class ItemsManager
extends java.lang.Object
| Constructor and Description |
|---|
ItemsManager(@NotNull FacesManager facesManager,
@NotNull Stats stats,
@NotNull SkillSet skillSet,
@NotNull GuiStateManager guiStateManager,
@NotNull ItemSet itemSet)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemReceived(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.
|
void |
delinvReceived(int tag)
A "delinv" command has been received.
|
void |
delitemReceived(int[] tags)
A "delitem" command has been received.
|
void |
playerReceived(int tag,
int weight,
int faceNum,
@NotNull java.lang.String name)
A "player" command has been received.
|
void |
upditemReceived(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.
|
public ItemsManager(@NotNull
@NotNull FacesManager facesManager,
@NotNull
@NotNull Stats stats,
@NotNull
@NotNull SkillSet skillSet,
@NotNull
@NotNull GuiStateManager guiStateManager,
@NotNull
@NotNull ItemSet itemSet)
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 usepublic void delinvReceived(int tag)
tag - the item tagpublic void delitemReceived(int[] tags)
tags - the item tagspublic 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)
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 typepublic void playerReceived(int tag,
int weight,
int faceNum,
@NotNull
@NotNull java.lang.String name)
tag - the player's taqweight - the player's weightfaceNum - the player's face IDname - the player's namepublic 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)
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