|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface by which the server updates the client's inventory display.
Field Summary | |
static int |
GROUND
This constant directs the output to the Ground display. |
static int |
INVENTORY
This constant directs the output to the Inventory display. |
Method Summary | |
void |
add(RPCDataSource sender,
int display,
java.lang.String name,
java.lang.String commands,
short pic,
short index,
short offset)
Adds an object to the inventory list. |
void |
modify(RPCDataSource sender,
int display,
java.lang.String name,
java.lang.String commands,
short pic,
short index,
short offset)
Modifies the nth object (name, picture or both). |
void |
remove(RPCDataSource sender,
int display,
short index)
Removes the nth item from the inventory list. |
void |
resend(RPCDataSource sender,
int display,
java.lang.String[] names,
java.lang.String[] commands,
short[] pics,
short[] offsets)
Sends the inventory all at once. |
Field Detail |
public static final int INVENTORY
public static final int GROUND
Method Detail |
public void add(RPCDataSource sender, int display, java.lang.String name, java.lang.String commands, short pic, short index, short offset)
sender
- the RPCDataSource making this call, if any. Only
appropriate for GroundCameras; pass null for inventory display.display
- the display (INVENTORY or GROUND) to updatename
- the exact string to display for this inventory objectpic
- the TileDatabase index of the object's picture, -1 if
the object has no visible representation.index
- the position at which to add the item. -1 means add
the item to the end of the list.offset
- the x & y offsets at which to draw the image.
The user may be standing over part of a larger image, so we
need to know how to clip it.public void remove(RPCDataSource sender, int display, short index)
sender
- the RPCDataSource making this call, if any. Only
appropriate for GroundCameras; pass null for inventory display.display
- the display (INVENTORY or GROUND) to updateindex
- the index of the item to removepublic void modify(RPCDataSource sender, int display, java.lang.String name, java.lang.String commands, short pic, short index, short offset)
sender
- the RPCDataSource making this call, if any. Only
appropriate for GroundCameras; pass null for inventory display.display
- the display (INVENTORY or GROUND) to updatename
- the new namepic
- the new pictureindex
- the index of the object to changeoffset
- the x & y offsets at which to draw the image.
The user may be standing over part of a larger image, so we
need to know how to clip it.public void resend(RPCDataSource sender, int display, java.lang.String[] names, java.lang.String[] commands, short[] pics, short[] offsets)
sender
- the RPCDataSource making this call, if any. Only
appropriate for GroundCameras; pass null for inventory display.display
- the display (INVENTORY or GROUND) to updatenames
- a String array containing the item namescommands
- a context-sensitive list of commands that
can be used on the passed items.pics
- a short array containing the item picture numbers.
The two arrays must be the same length.offsets
- the x & y offsets at which to draw the images.
The user may be standing over part of a larger image, so we
need to know how to clip it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |