summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/InventoryAction.java
blob: a00aa7a779c0211c941f1bc73446cad8dc25b796 (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
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ 
/*    */ public class InventoryAction
/*    */   extends InventoryItem
/*    */ {
/*    */   public InventoryAction(String id, String name)
/*    */   {
/*  9 */     super(id, name);
/*    */   }
/*    */   
/*    */   public InventoryAction(String id, String name, int qty)
/*    */   {
/* 14 */     super(id, name, qty);
/*    */   }
/*    */   
/*    */   public InventoryAction(InventoryAction in)
/*    */   {
/* 19 */     super(in);
/*    */   }
/*    */   
/*    */   public InventoryItem cloneItem()
/*    */   {
/* 24 */     return new InventoryAction(this);
/*    */   }
/*    */   
/*    */   public static InventoryAction createAction(String id, String name, int qty)
/*    */   {
/* 29 */     if (id.equals("H"))
/*    */     {
/* 31 */       return new HighJump(id, name, qty);
/*    */     }
/*    */     
/*    */ 
/* 35 */     return new InventoryAction(id, name, qty);
/*    */   }
/*    */   
/*    */ 
/*    */   public boolean doAction()
/*    */   {
/* 41 */     return true;
/*    */   }
/*    */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\InventoryAction.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */