]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/SaberMonster.cs
New IEntity properties: Coordinates (set), Identifier. Loadable entities should...
[chaz/carfire] / CarFire / CarFire / CarFire / SaberMonster.cs
index 2d711a4e812159e55fbecc72092528ee58a2e8df..f417d52c160a1470935d4249506789033955b705 100644 (file)
@@ -211,6 +211,8 @@ namespace CarFire
             this.health -= amount;\r
         }\r
 \r
+        public bool IsCollidable { get { return true; } }\r
+\r
         /// <summary>\r
         /// Get the smoothed position.\r
         /// </summary>\r
@@ -219,7 +221,15 @@ namespace CarFire
         /// <summary>\r
         /// Get the grid coordinates.\r
         /// </summary>\r
-        public Point Coordinates { get { return mMotion.Coordinates; } }\r
+        public Point Coordinates {\r
+            get { return mMotion.Coordinates; }\r
+            set { mMotion = new MovementManager(value, mMotion.Speed); }\r
+        }\r
+\r
+        /// <summary>\r
+        /// Get the entity identifier.\r
+        /// </summary>\r
+        public char Identifier { get { return mId; } }\r
 \r
         #endregion\r
 \r
This page took 0.021986 seconds and 4 git commands to generate.