]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/IEntity.cs
SaberMonster loads from map file and walks around using the path finder, and a lot...
[chaz/carfire] / CarFire / CarFire / CarFire / IEntity.cs
diff --git a/CarFire/CarFire/CarFire/IEntity.cs b/CarFire/CarFire/CarFire/IEntity.cs
new file mode 100644 (file)
index 0000000..cfa72c2
--- /dev/null
@@ -0,0 +1,45 @@
+using System;\r
+using System.Collections.Generic;\r
+using System.Linq;\r
+using System.Text;\r
+using Microsoft.Xna.Framework;\r
+using Microsoft.Xna.Framework.Content;\r
+using Microsoft.Xna.Framework.Graphics;\r
+\r
+namespace CarFire\r
+{\r
+    /// <summary>\r
+    /// A class to represent any object that can exist as an\r
+    /// independent piece of the game.\r
+    /// </summary>\r
+    public interface IEntity\r
+    {\r
+        /// <summary>\r
+        /// Load the resources the entity needs.\r
+        /// </summary>\r
+        /// <param name="contentManager">The foobar.</param>\r
+        void LoadContent(ContentManager contentManager);\r
+\r
+        /// <summary>\r
+        /// Update the entity's state.\r
+        /// </summary>\r
+        /// <param name="timeSpan">The timeslice.</param>\r
+        void Update(TimeSpan timeSpan);\r
+\r
+        /// <summary>\r
+        /// Render the entity on the screen.\r
+        /// </summary>\r
+        /// <param name="spriteBatch">The widget.</param>\r
+        void Draw(SpriteBatch spriteBatch);\r
+\r
+        /// <summary>\r
+        /// Get the actual position.\r
+        /// </summary>\r
+        Vector2 Position { get; }\r
+\r
+        /// <summary>\r
+        /// Get the coordinates on the grid.\r
+        /// </summary>\r
+        Point Coordinates { get; }\r
+    }\r
+}\r
This page took 0.02244 seconds and 4 git commands to generate.