Exemplo n.º 1
0
 public Weapon(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     damage = (DamageCalculator)info.GetValue(_damageSerializableName,
                                              typeof(DamageCalculator));
     specialAttack = (_SpecialAttack)info.GetValue(_specialAttackSerializationName,
                                                   typeof(_SpecialAttack));
 }
Exemplo n.º 2
0
 public Weapon(string name,
               string symbol,
               Color color,
               DamageCalculator damage,
               string specialAttackDescription = null,
               _SpecialAttack specialAttack    = null,
               string description = "Base weapon 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.damage                   = damage;
     this.specialAttack            = specialAttack;
     this.specialAttackDescription = specialAttackDescription;
 }
Exemplo n.º 3
0
 public Weapon(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     damage = (DamageCalculator)info.GetValue(   _damageSerializableName, 
                                                 typeof(DamageCalculator));
     specialAttack = (_SpecialAttack)info.GetValue(  _specialAttackSerializationName,
                                                     typeof(_SpecialAttack));
 }
Exemplo n.º 4
0
 public Weapon(  string name,
                 string symbol,
                 Color color,
                 DamageCalculator damage,
                 string specialAttackDescription = null,
                 _SpecialAttack specialAttack = null,
                 string description = "Base weapon 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.damage = damage;
     this.specialAttack = specialAttack;
     this.specialAttackDescription = specialAttackDescription;
 }