diff options
Diffstat (limited to 'NET/worlds/scape/InventoryAction.java')
| -rw-r--r-- | NET/worlds/scape/InventoryAction.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/NET/worlds/scape/InventoryAction.java b/NET/worlds/scape/InventoryAction.java new file mode 100644 index 0000000..a00aa7a --- /dev/null +++ b/NET/worlds/scape/InventoryAction.java @@ -0,0 +1,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 + */
\ No newline at end of file |