Exemplo n.º 1
0
 public void reciveDamage(int damageAmount, BigEnemy bigEnemy)
 {
     _currentHealth -= damageAmount;
     if (_currentHealth <= 0)
     {
         bigEnemy.bigEnemyPartList.Remove(this);
         GameManager.map.mapArray[position.y, position.x].type = Type.Empty;
     }
     else
     {
         Hud.InfoText2 = "Big Enemy Part Has: " + _currentHealth + " health";
     }
 }
Exemplo n.º 2
0
 public static Type GetBigEnemyType(Position position, BigEnemy bigEnemy)
 {
     return(bigEnemy.GetBodyType(position));
 }
Exemplo n.º 3
0
 public static bool CheckBigEnemyType(Position position, BigEnemy bigEnemy)
 {
     return(bigEnemy.CheckPositionOfBodyParts(position));
 }
Exemplo n.º 4
0
 public void DestroyBodyPart(BigEnemy bigEnemy)
 {
     bigEnemy.bigEnemyPartList.Remove(this);
 }