]> Dogcows Code - chaz/carfire/blob - CarFire/CarFire/CarFire/Map.cs
created a new project MapProcessorLib to for importing map files
[chaz/carfire] / CarFire / CarFire / CarFire / Map.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using System.IO;
7 using System.Text.RegularExpressions;
8 using System.Runtime.Serialization;
9 using System.Diagnostics;
10
11 namespace CarFire
12 {
13 /// <summary>
14 /// A map object represents the map or virtual world where players and other
15 /// game entities exist. The map consists of a grid where each grid space can
16 /// contain static scenery and/or game entities which can move and interact
17 /// with other game entities.
18 /// </summary>
19 public class Map
20 {
21 #region Types
22
23 public class Data
24 {
25 public string Author;
26 public string Name;
27 public int MinNumPlayers;
28 public int MaxNumPlayers;
29 public Point Dimensions;
30 public string Tileset; // TODO: this should be a tilemap object
31 public Type Type;
32 public char[,] Grid;
33 }
34
35 public enum Type
36 {
37 None,
38 Campaign,
39 Battle
40 }
41
42 #endregion
43
44
45 public Map(Data data)
46 {
47 Console.WriteLine("Read map " + data.Name + " of type " + data.Type + " written by " + data.Author);
48 }
49 }
50 }
This page took 0.032966 seconds and 4 git commands to generate.