using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using System.IO; using System.Text.RegularExpressions; using System.Runtime.Serialization; using System.Diagnostics; namespace CarFire { /// /// A map object represents the map or virtual world where players and other /// game entities exist. The map consists of a grid where each grid space can /// contain static scenery and/or game entities which can move and interact /// with other game entities. /// public class Map { #region Types public class Data { public string Author; public string Name; public int MinNumPlayers; public int MaxNumPlayers; public Point Dimensions; public string Tileset; // TODO: this should be a tilemap object public Type Type; public char[,] Grid; } public enum Type { None, Campaign, Battle } #endregion public Map(Data data) { Console.WriteLine("Read map " + data.Name + " of type " + data.Type + " written by " + data.Author); } } }