public void AddWeapon(Weapon weapon) { if (!weapons.ContainsKey(weapon.Name)) { weapons.Add(weapon.Name, weapon); } }
protected void createParty() { party = new Party(); Weapon wep = new Weapon("Awesomeness", "Sword", 300, 1, Hands.One, 100, 10, 200, 2); party.addWeapon(wep); Key key = new Key("Some Key"); party.addKey(key); }
public override object Clone() { Type[] allowedClasses = new Type[allowableClasses.Count]; for (int i = 0; i < allowableClasses.Count; i++) allowedClasses[i] = allowableClasses[i]; Weapon weapon = new Weapon( Name, Type, Price, Weight, NumberHands, AttackValue, AttackModifier, DamageValue, DamageModifier, allowedClasses); return weapon; }
public void addWeapon(Weapon weapon) { WeaponInv.Add(weapon); }
protected void createParty() { party = new Party(); Weapon wep = new Weapon("Awesomeness", "Sword", 300, 1, Hands.One, 100, 10, 200, 2); party.addWeapon(wep); Key key = new Key("Scepter"); party.addKey(key); Key key2 = new Key("Red Key"); party.addKey(key2); Key key3 = new Key("Purple Key"); party.addKey(key3); Key key4 = new Key("Jail Cell Key"); party.addKey(key4); Key key5 = new Key("Blue Key"); party.addKey(key5); Key key6 = new Key("Green Key"); party.addKey(key6); Key key7 = new Key("Orange Key"); party.addKey(key7); Key key8 = new Key("Yellow Key"); party.addKey(key8); }