Example #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";
     }
 }
 public static Type GetBigEnemyType(Position position, BigEnemy bigEnemy)
 {
     return(bigEnemy.GetBodyType(position));
 }
 public static bool CheckBigEnemyType(Position position, BigEnemy bigEnemy)
 {
     return(bigEnemy.CheckPositionOfBodyParts(position));
 }
Example #4
0
 public void DestroyBodyPart(BigEnemy bigEnemy)
 {
     bigEnemy.bigEnemyPartList.Remove(this);
 }