예제 #1
0
 public override void HandleCollision(GameObject other)
 {
     switch (other.GetObjectType())
     {
     case GameTypes.BrickWall:
     case GameTypes.MetallWall:
     case GameTypes.Bomb:
         Position = prevPosition;
         break;
     }
 }
예제 #2
0
 public override void HandleCollision(GameObject other)
 {
     switch (other.GetObjectType())
      {
          case GameTypes.BrickWall:
          case GameTypes.MetallWall:
          case GameTypes.Bomb:
              Position = prevPosition;
              break;
      }
 }
예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #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;
     }
 }
예제 #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;
            }
        }