Ejemplo n.º 1
0
 public void ChangeSuperPower(ISuperPower power)
 {
     _power = power;
 }
Ejemplo n.º 2
0
 public void SetSuperPower(ISuperPower superPower)
 {
     SuperPower = superPower;
     SetSuperPowerObject();
 }
Ejemplo n.º 3
0
 public Hero(ISuperPower power)
 {
     _power = power;
 }
Ejemplo n.º 4
0
 public Hero(string name, int healthPoints, int attackPoints, ISuperPower superPower, int defencePoints, int shieldPoints) : base(name, healthPoints, attackPoints, defencePoints)
 {
     ShieldPoints = shieldPoints;
     SuperPower   = superPower;
     SetSuperPowerObject();
 }