示例#1
0
        public void Can_Increase_Level()
        {
            GameLevel gameLevel = new GameLevel();
            GameLogic gameLogic = new GameLogic();
            Enemy enemy = new Enemy();

            bool value = gameLevel.IncreaseLevel(gameLogic);

            Assert.AreEqual(value, false);
        }
示例#2
0
        public void Can_Load_Next_Level()
        {
            GameLevel gameLevel = new GameLevel();

            int expectedValue = 2;

            gameLevel.LoadNextLevel();

            Assert.AreEqual(gameLevel.Level, expectedValue);
        }
示例#3
0
        public void InitializeCharacters()
        {
            switch (GameMode)
            {
                case GameModeType.Cheat:
                    Pacman = CreateCheatPacman();
                    break;
                default:
                    Pacman = CreateCommonPacman();
                    break;
            }

            Enemies = new List<Enemy>()
            {
               CreateEnemy(new Point(220, 203), new Point(220, 203), Color.FromArgb(255, 0, 0), Direction.Left),
               CreateEnemy(new Point(205, 203), new Point(205, 203), Color.FromArgb(255, 184, 71), Direction.Right)
            };

            Pellets = new Pellet();
            GameLevel = new GameLevel();
            GenerateCharacters();
        }