public void CollisionWithBoss(IBoss boss, Direction direction)
 {
     BossBlockHandler.UpateLocation(boss, this, direction);
     if (direction == Direction.Top)
     {
         boss.TakeDamage();
     }
 }
 public void TakeDamage()
 {
     decoratedBoss.TakeDamage();
 }
示例#3
0
 public void Attack(IBoss boss)
 {
     boss.TakeDamage();
 }