Exemplo n.º 1
0
        public FirstLevel()
            : base()
        {
            ObstructedX.Add(5);
            ObstructedX.Add(6);
            ObstructedY.Add(6);
            ObstructedY.Add(6);
            ObstructedX.Add(1);
            ObstructedY.Add(1);
            NumberOfTraps = 2;
            _levelModel = "Level/forestlevel";
            _backgroundSong = "SoundFX/first_level";
            _boardData = new bool[10, 10];

            for (int i = 0; i < _boardData.GetLength(0); i++)
            {
                for (int j = 0; j < _boardData.GetLength(1); j++)
                {
                    _boardData[i, j] = true;
                }
            }

            _boardData[1, 1] = false;
            _boardData[5, 6] = false;
            _boardData[6, 6] = false;

            _MainCharacter = new MainCharacter();
            _MainCharacter.PosX = 5;
            _MainCharacter.PosY = 9;
            _AIRangedCharacter = new AIRangedCharacter();
            _AIRangedCharacter.PosX = 5;
            _AIRangedCharacter.PosY = 0;
            _RangedCharacter = new RangedCharacter();
            _RangedCharacter.PosX = 4;
            _RangedCharacter.PosY = 9;
            _AIWeakCharacter1 = new AIWeakCharacter();
            _AIWeakCharacter1.PosX = 4;
            _AIWeakCharacter1.PosY = 0;
            _AIWeakCharacter2 = new AIWeakCharacter();
            _AIWeakCharacter2.PosX = 6;
            _AIWeakCharacter2.PosY = 0;
            _MeleeFighterCharacter = new MeleeFighterCharacter();
            _MeleeFighterCharacter.PosX = 6;
            _MeleeFighterCharacter.PosY = 9;
            _AITankCharacter = new AITankCharacter();
            _AITankCharacter.PosX = 7;
            _AITankCharacter.PosY = 0;

            _characters = new List<CharacterObject>();
            _characters.Add(_MainCharacter);
            _characters.Add(_AIRangedCharacter);
            _characters.Add(_RangedCharacter);
            _characters.Add(_AIWeakCharacter1);
            _characters.Add(_AIWeakCharacter2);
            _characters.Add(_MeleeFighterCharacter);
            _characters.Add(_AITankCharacter);
        }
Exemplo n.º 2
0
        public SecondLevel()
            : base()
        {
            NumberOfTraps = 5;
            _levelModel = "Level/castlelevel";
            _backgroundSong = "SoundFX/second_level";
            _boardData = new bool[10, 10];

            for (int i = 0; i < _boardData.GetLength(0); i++)
            {
                for (int j = 0; j < _boardData.GetLength(1); j++)
                {
                    _boardData[i, j] = true;
                }
            }

            _MainCharacter = new MainCharacter();
            _MainCharacter.PosX = 5;
            _MainCharacter.PosY = 1;
            _AIFinalBoss = new AIFinalBossCharacter();
            _AIFinalBoss.PosX = 5;
            _AIFinalBoss.PosY = 8;
            _MeleeFighterCharacter1 = new MeleeFighterCharacter();
            _MeleeFighterCharacter1.PosX = 6;
            _MeleeFighterCharacter1.PosY = 0;
            _AIRangedCharacter1 = new AIRangedCharacter();
            _AIRangedCharacter1.PosX = 6;
            _AIRangedCharacter1.PosY = 9;
            _RangedCharacter = new RangedCharacter();
            _RangedCharacter.PosX = 4;
            _RangedCharacter.PosY = 0;
            _AIWeakCharacter = new AIWeakCharacter();
            _AIWeakCharacter.PosX = 4;
            _AIWeakCharacter.PosY = 9;
            _MeleeFighterCharacter2 = new MeleeFighterCharacter();
            _MeleeFighterCharacter2.PosX = 3;
            _MeleeFighterCharacter2.PosY = 0;
            _AIRangedCharacter2 = new AIRangedCharacter();
            _AIRangedCharacter2.PosX = 7;
            _AIRangedCharacter2.PosY = 9;

            _characters = new List<CharacterObject>();
            _characters.Add(_MainCharacter);
            _characters.Add(_AIFinalBoss);
            _characters.Add(_MeleeFighterCharacter1);
            _characters.Add(_AIRangedCharacter1);
            _characters.Add(_RangedCharacter);
            _characters.Add(_AIWeakCharacter);
            _characters.Add(_MeleeFighterCharacter2);
            _characters.Add(_AIRangedCharacter2);
        }