Example #1
0
        public Map(String name, int level)
        {
            rand = new Random();

            this.name     = name;
            this.terrain  = new byte[45, 40];
            this.items    = new Item[45, 40];
            this.tcodMap  = new TCODMap(45, 40);
            this.monsters = new ArrayList();
            this.level    = level;

            generateTerrainMap();
            generateTCODMap();
            generateMonsters();
            generateItems();

            this.trans = new Transision(rand.Next(1, 44), rand.Next(1, 39));
        }
Example #2
0
        public Map(String name, int level)
        {
            rand = new Random();

            this.name = name;
            this.terrain = new byte[45, 40];
            this.items = new Item[45, 40];
            this.tcodMap = new TCODMap(45, 40);
            this.monsters = new ArrayList();
            this.level = level;

            generateTerrainMap();
            generateTCODMap();
            generateMonsters();
            generateItems();

            this.trans = new Transision(rand.Next(1, 44), rand.Next(1 , 39));
        }