]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/IEntity.cs
New property IEntity.IsCollidable so entities can let the collision code know whether...
[chaz/carfire] / CarFire / CarFire / CarFire / IEntity.cs
index cfa72c2cce0d60a06643743ab8f6121f61a47545..e916f2a6e13c5de2e1860e724e0fa4132e771881 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
This page took 0.016859 seconds and 4 git commands to generate.