summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/InventoryItem.java
blob: dfb088e610ee5a236f3806d002d4cd56502594ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
 */