示例#1
0
 public void ChangeSuperPower(ISuperPower power)
 {
     _power = power;
 }
示例#2
0
文件: Hero.cs 项目: danielursuu/RPG
 public void SetSuperPower(ISuperPower superPower)
 {
     SuperPower = superPower;
     SetSuperPowerObject();
 }
示例#3
0
 public Hero(ISuperPower power)
 {
     _power = power;
 }
示例#4
0
文件: Hero.cs 项目: danielursuu/RPG
 public Hero(string name, int healthPoints, int attackPoints, ISuperPower superPower, int defencePoints, int shieldPoints) : base(name, healthPoints, attackPoints, defencePoints)
 {
     ShieldPoints = shieldPoints;
     SuperPower   = superPower;
     SetSuperPowerObject();
 }