set { mView.CenterCell = value; }\r
}\r
\r
+ /// <summary>\r
+ /// Get and set the zoom of the map view. The default zoom is\r
+ /// PixelsToUnitSquares.\r
+ /// </summary>\r
public float Zoom\r
{\r
get { return mView.Zoom; }\r
public Map(Metadata metadata, char[,] grid, char defaultTile,\r
List<RawEntity> entities, Point[] playerPositions)\r
{\r
- mData = new Modal(metadata, grid, defaultTile, entities, playerPositions);\r
+ mData = new Model(metadata, grid, defaultTile, entities, playerPositions);\r
mView = new View(mData);\r
}\r
\r
\r
#region Private Types\r
\r
- class Modal\r
+ class Model\r
{\r
public Metadata Metadata { get { return mMetadata; } }\r
public List<RawEntity> Entities { get { return mEntities; } }\r
public bool[,] Grid { get { return mBooleanGrid; } }\r
\r
\r
- public Modal(Metadata metadata, char[,] grid, char defaultTile,\r
+ public Model(Metadata metadata, char[,] grid, char defaultTile,\r
List<RawEntity> entities, Point[] playerPositions)\r
{\r
Debug.Assert(metadata != null);\r
public float Zoom;\r
\r
\r
- public View(Modal data)\r
+ public View(Model data)\r
{\r
Debug.Assert(data != null);\r
mData = data;\r
}\r
\r
\r
- Modal mData;\r
+ Model mData;\r
Viewport mViewport;\r
}\r
\r
\r
#region Private Variables\r
\r
- Modal mData;\r
+ Model mData;\r
View mView;\r
\r
#endregion\r