\r
public Map GetMap()\r
{\r
- return new Map(mMetadata, mGrid, mEntities);\r
+ return new Map(mMetadata, mGrid, mDefaultTile, mEntities, mPlayerPositions);\r
}\r
\r
\r
if (mPlayerPositions[i] == default(Point))\r
{\r
throw new ParserException("Not enough player positions were defined on the grid; " +\r
- "are missing a spot for player " + i + ".");\r
+ "you are missing a spot for player " + i + ".");\r
}\r
}\r
}\r
\r
public void set_type(string atom)\r
{\r
- Map.Type value = Parse.Constant<Map.Type>(atom);\r
- if (value != default(Map.Type)) mMetadata.Type = value;\r
+ Map.Mode value = Parse.Constant<Map.Mode>(atom);\r
+ if (value != default(Map.Mode)) mMetadata.Type = value;\r
else throw new ParserException("Unexpected type on line " + mInput.LineNumber + ": " + atom);\r
}\r
\r
char[,] mGrid;\r
List<Map.RawEntity> mEntities;\r
Point[] mPlayerPositions;\r
-\r
- Dictionary<char, Dictionary<string, string>> mEntitySections = new Dictionary<char, Dictionary<string, string>>();\r
char mDefaultTile = ' ';\r
\r
+ Dictionary<char, Dictionary<string, string>> mEntitySections = new Dictionary<char, Dictionary<string, string>>();\r
LineReader mInput;\r
}\r
\r