diff options
Diffstat (limited to 'NET/worlds/scape/InventoryItem.java')
| -rw-r--r-- | NET/worlds/scape/InventoryItem.java | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/NET/worlds/scape/InventoryItem.java b/NET/worlds/scape/InventoryItem.java new file mode 100644 index 0000000..dfb088e --- /dev/null +++ b/NET/worlds/scape/InventoryItem.java @@ -0,0 +1,89 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.network.URL; +/* */ +/* */ +/* */ +/* */ public class InventoryItem +/* */ { +/* */ protected String itemId_; +/* */ protected String itemName_; +/* */ protected int itemQuantity_; +/* */ protected URL itemGraphicLocation_; +/* */ +/* */ public InventoryItem(String id, String name) +/* */ { +/* 16 */ this.itemId_ = id; +/* 17 */ this.itemName_ = name; +/* 18 */ this.itemQuantity_ = 1; +/* */ } +/* */ +/* */ +/* */ public InventoryItem(String id, String name, int qty) +/* */ { +/* 24 */ this.itemId_ = id; +/* 25 */ this.itemName_ = name; +/* 26 */ this.itemQuantity_ = qty; +/* */ } +/* */ +/* */ public InventoryItem(InventoryItem in) +/* */ { +/* 31 */ this.itemId_ = in.itemId_; +/* 32 */ this.itemName_ = in.itemName_; +/* 33 */ this.itemQuantity_ = in.itemQuantity_; +/* 34 */ this.itemGraphicLocation_ = in.itemGraphicLocation_; +/* */ } +/* */ +/* */ +/* */ +/* */ public String getItemId() +/* */ { +/* 41 */ return this.itemId_; +/* */ } +/* */ +/* */ public void setItemId(String id) +/* */ { +/* 46 */ this.itemId_ = id; +/* */ } +/* */ +/* */ public String getItemName() +/* */ { +/* 51 */ return this.itemName_; +/* */ } +/* */ +/* */ public void setItemName(String name) +/* */ { +/* 56 */ this.itemName_ = name; +/* */ } +/* */ +/* */ public int getItemQuantity() +/* */ { +/* 61 */ return this.itemQuantity_; +/* */ } +/* */ +/* */ public void setQuantity(int qty) +/* */ { +/* 66 */ this.itemQuantity_ = qty; +/* */ } +/* */ +/* */ public URL getItemGraphicLocation() +/* */ { +/* 71 */ return this.itemGraphicLocation_; +/* */ } +/* */ +/* */ public void setItemGraphicLocation(URL newLoc) +/* */ { +/* 76 */ this.itemGraphicLocation_ = newLoc; +/* */ } +/* */ +/* */ public InventoryItem cloneItem() +/* */ { +/* 81 */ return new InventoryItem(this); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\InventoryItem.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |