--- /dev/null
+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