Exemplo n.º 1
0
        public Map(int totalNumberOfRooms)
        {
            // error check
            if (totalPits < 2)
            {
                totalPits = 2;
            }

            if (totalBats < 2)
            {
                totalBats = 2;
            }

            r         = new Random();
            pitRooms  = new int[totalPits];
            batRooms  = new int[totalBats];
            goldRooms = new int[totalGold];
            setNumberOfRooms(totalNumberOfRooms);

            MyMiniMap = new MiniMap(new Vector2(0, 460), "MiniMapFiles\\BG");
        }
Exemplo n.º 2
0
        public Map(int totalNumberOfRooms)
        {
            // error check
            if (totalPits < 2)
            {
                totalPits = 2;
            }

            if (totalBats < 2)
            {
                totalBats = 2;
            }

            r = new Random();
            pitRooms = new int[totalPits];
            batRooms = new int[totalBats];
            goldRooms = new int[totalGold];
            setNumberOfRooms(totalNumberOfRooms);

            MyMiniMap = new MiniMap(new Vector2(0, 460), "MiniMapFiles\\BG");
        }