コード例 #1
0
 public GroupGame(int health, int damage, IAttackType attackType, IWarEffect warEffect)
 {
     this.Health = health;
     this.Damage = damage;
     this.AttackType = attackType;
     this.WarEffect = warEffect;
     this.IsAlive = true;
 }
コード例 #2
0
 public void RespondToAttack(IAttackType attack)
 {
     attack.Hit(this);
 }