package NET.worlds.scape; public class InventoryAction extends InventoryItem { public InventoryAction(String id, String name) { super(id, name); } public InventoryAction(String id, String name, int qty) { super(id, name, qty); } public InventoryAction(InventoryAction in) { super(in); } @Override public InventoryItem cloneItem() { return new InventoryAction(this); } public static InventoryAction createAction(String id, String name, int qty) { return (InventoryAction)(id.equals("H") ? new HighJump(id, name, qty) : new InventoryAction(id, name, qty)); } public boolean doAction() { return true; } }