public int addEquipementToGladiatorStuff(Stuff newStuff) { int gladiatorStuffPoints = 0; int newPts = 0; foreach(Stuff stuff in this._stuffList ){ gladiatorStuffPoints += stuff.Points; } newPts = gladiatorStuffPoints + newStuff.Points; if ( newPts <= GLADIATORSTUFFPOINTSLIMIT) { _stuffList.Add (newStuff); return 1; } else { throw new Exception("The Gladiator \""+this._name+"\" can not carry as much equipment "); } }
public static Stuff getEpeeInstance() { Stuff weapon = new Stuff ("Epee", "att", 5, 0, 70); return weapon; }
// Weapon static Classes public static Stuff getDagueInstance() { Stuff weapon = new Stuff ("Dague", "att", 2, 0, 60); return weapon; }
public static Stuff getCasqueInstance() { Stuff armor = new Stuff ("Casque", "def", 2, 10, 0); return armor; }
// Armor Static classes public static Stuff getBouclierRondInstance() { Stuff armor = new Stuff ("Bouclier Rond", "def", 5, 20, 0); return armor; }
public static Stuff getBouclierRectangulaireInstance() { Stuff armor = new Stuff ("Bouclier rectangulaire", "def", 8, 30, 0); return armor; }
// Weapon and Armor static Classes public static Stuff getTridentInstance() { Stuff weapon = new Stuff ("Trident","both", 7, 10, 40); return weapon; }
public static Stuff getLanceInstance() { Stuff weapon = new Stuff ("Lance", "att", 7, 0, 10); return weapon; }
public static Stuff getFiletInstance() { Stuff weapon = new Stuff ("Filet", "att", 3, 0, 30); return weapon; }