Пример #1
0
 public CExplosion(int x, int y)
 {
     m_x      = x;
     m_y      = y;
     duration = CConstants.explodeTime;
     FBattleScreen.PlaySound("explode");
 }
Пример #2
0
 public CShell(int x, int y, int direction, int range, CTank owner)
 {
     m_x         = x;
     m_y         = y;
     m_direction = direction;
     m_range     = range;
     m_owner     = owner;
     FBattleScreen.PlaySound("shot");
 }
Пример #3
0
 public void SetDamage(short damage)
 {
     if (m_health < 0)
     {
         return;
     }
     m_health -= damage;
     if (m_health < 0)
     {
         m_health = 0;
         FBattleScreen.PlaySound("player_death");
     }
 }