X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FMap.cs;h=8c744bad3e8a96962288d966ea47c991911d099a;hb=f69be675ab1a1a9ab4b478f213c7b708d59820f2;hp=2440f121ac6014a16cfdff81984e1348081afe44;hpb=1368c1af3d7a4a12b0b0577dbe3edbfd254e2d04;p=chaz%2Fcarfire
diff --git a/CarFire/CarFire/CarFire/Map.cs b/CarFire/CarFire/CarFire/Map.cs
index 2440f12..8c744ba 100644
--- a/CarFire/CarFire/CarFire/Map.cs
+++ b/CarFire/CarFire/CarFire/Map.cs
@@ -156,12 +156,26 @@ namespace CarFire
set { mView.CenterCell = value; }
}
+ ///
+ /// Get and set the zoom of the map view. The default zoom is
+ /// Map.PixelsToUnitSquares.
+ ///
public float Zoom
{
get { return mView.Zoom; }
set { mView.Zoom = value; }
}
+
+ ///
+ /// Get and set the associated game object.
+ ///
+ public Game Game
+ {
+ get { return mData.Game; }
+ set { mData.Game = value; }
+ }
+
#endregion
@@ -176,7 +190,7 @@ namespace CarFire
public Map(Metadata metadata, char[,] grid, char defaultTile,
List entities, Point[] playerPositions)
{
- mData = new Modal(metadata, grid, defaultTile, entities, playerPositions);
+ mData = new Model(metadata, grid, defaultTile, entities, playerPositions);
mView = new View(mData);
}
@@ -274,7 +288,7 @@ namespace CarFire
/// thrown if there are entities without associated classes.
///
/// List of entity objects loaded.
- public List