From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/scape/InventoryAction.java | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 NET/worlds/scape/InventoryAction.java (limited to 'NET/worlds/scape/InventoryAction.java') 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 -- cgit v1.2.3