Example #1
0
 public override void HandleCollision(GameObject other)
 {
     switch (other.GetObjectType())
     {
     case GameTypes.BrickWall:
     case GameTypes.MetallWall:
     case GameTypes.Bomb:
         Position = prevPosition;
         break;
     }
 }
Example #2
0
 public override void HandleCollision(GameObject other)
 {
     switch (other.GetObjectType())
      {
          case GameTypes.BrickWall:
          case GameTypes.MetallWall:
          case GameTypes.Bomb:
              Position = prevPosition;
              break;
      }
 }
Example #3
0
        public override void HandleCollision(GameObject other)
        {
            base.HandleCollision(other);

            switch (other.GetObjectType())
            {
            case GameTypes.Enemy:
                IsDie = true;
                Game.Trash.Add(this);
                Game.IsGameOver = true;
                break;
            }
        }
Example #4
0
        public override void HandleCollision(GameObject other)
        {
            base.HandleCollision(other);

            switch (other.GetObjectType())
            {
                case GameTypes.Enemy:
                    IsDie = true;
                    Game.Trash.Add(this);
                    Game.IsGameOver = true;
                    break;
            }
        }
Example #5
0
 /// <summary>
 /// Обрабатывает столкновение
 /// </summary>
 public override void HandleCollision(GameObject other)
 {
     switch (other.GetObjectType())
     {
         case GameTypes.Enemy:
         case GameTypes.BrickWall:
             other.IsDie = true;
             Game.Trash.Add(other);
             break;
         case GameTypes.Player:
             other.IsDie = true;
             Game.Trash.Add(other);
             Game.IsGameOver = true;
             break;
         case GameTypes.MetallWall:
             timer = 1;
             break;
     }
 }
Example #6
0
        /// <summary>
        /// Обрабатывает столкновение
        /// </summary>
        public override void HandleCollision(GameObject other)
        {
            switch (other.GetObjectType())
            {
            case GameTypes.Enemy:
            case GameTypes.BrickWall:
                other.IsDie = true;
                Game.Trash.Add(other);
                break;

            case GameTypes.Player:
                other.IsDie = true;
                Game.Trash.Add(other);
                Game.IsGameOver = true;
                break;

            case GameTypes.MetallWall:
                timer = 1;
                break;
            }
        }