]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/IEntity.cs
New IEntity properties: Coordinates (set), Identifier. Loadable entities should...
[chaz/carfire] / CarFire / CarFire / CarFire / IEntity.cs
index cfa72c2cce0d60a06643743ab8f6121f61a47545..76dcc19a8a15b48e5617261aeefb2c05b2766670 100644 (file)
@@ -9,7 +9,7 @@ using Microsoft.Xna.Framework.Graphics;
 namespace CarFire\r
 {\r
     /// <summary>\r
-    /// A class to represent any object that can exist as an\r
+    /// An interface to represent any object that can exist as an\r
     /// independent piece of the game.\r
     /// </summary>\r
     public interface IEntity\r
@@ -32,6 +32,11 @@ namespace CarFire
         /// <param name="spriteBatch">The widget.</param>\r
         void Draw(SpriteBatch spriteBatch);\r
 \r
+        /// <summary>\r
+        /// Get whether or not the entity is collidable.\r
+        /// </summary>\r
+        bool IsCollidable { get; }\r
+\r
         /// <summary>\r
         /// Get the actual position.\r
         /// </summary>\r
@@ -40,6 +45,11 @@ namespace CarFire
         /// <summary>\r
         /// Get the coordinates on the grid.\r
         /// </summary>\r
-        Point Coordinates { get; }\r
+        Point Coordinates { get; set; }\r
+\r
+        /// <summary>\r
+        /// Get the entity's identifier.\r
+        /// </summary>\r
+        char Identifier { get; }\r
     }\r
 }\r
This page took 0.016834 seconds and 4 git commands to generate.