Example #1
0
 /// <summary>
 /// Sets the player for the game to use
 /// </summary>
 public void SetPlayer(Player ThePlayer)
 {
     player = ThePlayer;
     player.SetMap(this);
 }
Example #2
0
        /// <summary>
        /// Generates a map based on the dungeon level and type
        /// </summary>
        public Map(int Level, MapType type, PlayState theState)
        {
            gamestate = theState;

            player = gamestate.Player;
            if(player != null) player.SetMap(this);

            level = Level;
            generator = new MapGenerator(type, this);
        }