public Player() { inventory = new List<Item>(); health = 10; air = 4; mainHand = null; gear = null; }
public void addItem(Item itemToAdd) { inventory.Add(itemToAdd); }
public string unequip() { mainHand = null; return "You free your hands."; }
public void removeItem(Item itemToRemove) { inventory.Remove(itemToRemove); }
public string equip(Item item) { mainHand = item; return "You equip the " + item.name + "."; }
public override GameObject getClone() { Item clone = new Item(description, keywords, name, seenDesc, initSeenDesc, initPickupDesc, damageType, secondaryDamageType, damage, pickupDesc, dropDesc); return clone; }
public void addItem(Item itemToAdd) { itemsContained.Add(itemToAdd); }
public void removeItem(Item itemToRemove) { itemsContained.Remove(itemToRemove); }