/// <summary>
        /// สร้างรอบเกมใหม่
        /// </summary>
        /// <param name="previousGameRound">รอบของเกมก่อนหน้า</param>
        /// <returns>รอบเกมใหม่</returns>
        public override GameRound CreateGameRound(GameRound previousGameRound)
        {
            if (IsLevelUp) _level++;
            else _level--;

            var previous = previousGameRound as GameRoundSecond;

            const int Point = 3;
            int gamePoint = Point + (_level * AddPoint);

            const string cupStyle = "4";
            return new GameRoundThird(gamePoint, previous.SwapSpeed, previous.SwapCount
                , previous.CupCount,previous.CupPoint, previous.CupCount, previous.MaximumCorrect, cupStyle);
        }
        /// <summary>
        /// สร้างรอบเกมใหม่
        /// </summary>
        /// <param name="previousGameRound">รอบของเกมก่อนหน้า</param>
        /// <returns>รอบเกมใหม่</returns>
        public override GameRound CreateGameRound(GameRound previousGameRound)
        {
            if (IsLevelUp) _level++;
            else _level--;

            var previous = previousGameRound as GameRoundFirst;

            const int Point = 10;
            int gamePoint = Point + (_level * AddPoint);

            _swapSpeed = previous.SwapSpeed + AddSwapSpeed;
            _swapCount = previous.SwapCount + AddSwapCount;

            const string cupStyle = "4";
            return new GameRoundFirst(gamePoint, _swapSpeed, _swapCount, previous.CupCount,previous.CupPoint, cupStyle);
        }
Esempio n. 3
0
 /// <summary>
 /// สร้างรอบเกมใหม่
 /// </summary>
 /// <param name="previousGameRound">รอบของเกมก่อนหน้า</param>
 /// <returns>รอบเกมใหม่</returns>
 public override GameRound CreateGameRound(GameRound previousGameRound)
 {
     return new GameRoundFirst(_roundPoint, _swapSpeed, _swapCount, _cupCount,_cupPoint, _cupLevel);
 }
Esempio n. 4
0
 // สร้างรอบเกมใหม่
 public abstract GameRound CreateGameRound(GameRound previousGameRound);
Esempio n. 5
0
 /// <summary>
 /// เรียกขอคำถาม
 /// </summary>
 /// <returns>คำถาม</returns>
 public Question GetNextQuestion()
 {
     _gameRound = _currentLevel.CreateGameRound(_gameRound);
     return _gameRound.Question;
 }
Esempio n. 6
0
 /// <summary>
 /// สร้างรอบเกมใหม่
 /// </summary>
 /// <param name="previousGameRound">รอบของเกมก่อนหน้า</param>
 /// <returns>รอบเกมใหม่</returns>
 public override GameRound CreateGameRound(GameRound previousGameRound)
 {
     return new GameRoundSecond(_roundPoint, _swapSpeed, _swapCount, _cupCount,_cupPoint, _backSwapCount, _backCupCount, _maximumCorrect, _cupLevel);
 }