public TestBattleZone(int width, int height)
        {
            zoneNumber = -3;
            this.width = width;
            this.height = height;
            setDrawLocation(new Vector2(0, 0));
            createLists();

            level1 = new CollisionMap(height, width);
            collisionMap.Add(level1);

            level1Trans = new TransitionMap(height, width);
            transitionMap.Add(level1Trans);

            level1TrafficMap = new TrafficMap(height, width);
            trafficMap.Add(level1TrafficMap);

            level1EnemyMap = new EnemyMap(height, width);
            enemyMap.Add(level1EnemyMap);

            fillLevel1();
            fillLevel1Trans();

            createSpawners();
        }
Beispiel #2
0
        public TestZone(int width, int height)
        {
            zoneNumber = -1;
            this.width = width;
            this.height = height;
            setDrawLocation(new Vector2(0, 0));
            createLists();
            //levels.Add(Image.FromFile("../../../Images/Zones/TestGrassZoneFloor1.png"));
            //levels.Add(Image.FromFile("../../../Images/Zones/TestGrassZoneFloor2.png"));

            level1 = new CollisionMap(height, width);
            level2 = new CollisionMap(height, width);
            collisionMap.Add(level1);
            collisionMap.Add(level2);

            level1Trans = new TransitionMap(height, width);
            level2Trans = new TransitionMap(height, width);
            transitionMap.Add(level1Trans);
            transitionMap.Add(level2Trans);
            fillLevel1();
            fillLevel2();
            fillLevel1Trans();
            fillLevel2Trans();

            level1TrafficMap = new TrafficMap(height, width);
            level2TrafficMap = new TrafficMap(height, width);
            trafficMap.Add(level1TrafficMap);
            trafficMap.Add(level2TrafficMap);
            fillLevel1TrafficMap();

            level1EnemyMap = new EnemyMap(height, width);
            level2EnemyMap = new EnemyMap(height, width);
            enemyMap.Add(level1EnemyMap);
            enemyMap.Add(level2EnemyMap);
        }