Esempio n. 1
0
 public Armor(string name,
             string symbol,
             Color color,
             Damage damageReduction,
             _ArmorType armorType,
             string description = "Base armor of the game",
             Coord position = new Coord(),
             int cost = 0,
             int weight = 1,
             int uses = Item._UnlimitedUses)
     : base(name, symbol, color, true, false, description, position, cost, weight, uses)
 {
     this.damageReduction = damageReduction;
     this.ArmorType = armorType;
 }
Esempio n. 2
0
 public Armor(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     damageReduction = (Damage)info.GetValue(damageReductionSerializableName, typeof(Damage));
     ArmorType = (_ArmorType)info.GetValue(armorTypeSerializableName, typeof(_ArmorType));
 }