예제 #1
0
 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 ");
     }
 }
예제 #2
0
 public static Stuff getEpeeInstance()
 {
     Stuff weapon = new Stuff ("Epee", "att", 5, 0, 70);
     return weapon;
 }
예제 #3
0
 // Weapon static Classes
 public static Stuff getDagueInstance()
 {
     Stuff weapon = new Stuff ("Dague", "att", 2, 0, 60);
     return weapon;
 }
예제 #4
0
 public static Stuff getCasqueInstance()
 {
     Stuff armor = new Stuff ("Casque", "def", 2, 10, 0);
     return armor;
 }
예제 #5
0
 // Armor Static classes
 public static Stuff getBouclierRondInstance()
 {
     Stuff armor = new Stuff ("Bouclier Rond", "def", 5, 20, 0);
     return armor;
 }
예제 #6
0
 public static Stuff getBouclierRectangulaireInstance()
 {
     Stuff armor = new Stuff ("Bouclier rectangulaire", "def", 8, 30, 0);
     return armor;
 }
예제 #7
0
 // Weapon and Armor static Classes
 public static Stuff getTridentInstance()
 {
     Stuff weapon = new Stuff ("Trident","both", 7, 10, 40);
     return weapon;
 }
예제 #8
0
 public static Stuff getLanceInstance()
 {
     Stuff weapon = new Stuff ("Lance", "att", 7, 0, 10);
     return weapon;
 }
예제 #9
0
 public static Stuff getFiletInstance()
 {
     Stuff weapon = new Stuff ("Filet", "att", 3, 0, 30);
     return weapon;
 }