2 using System.Collections.Generic;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Content;
7 using Microsoft.Xna.Framework.Graphics;
12 /// A class to represent any object that can exist as an
13 /// independent piece of the game.
15 public interface IEntity
18 /// Load the resources the entity needs.
20 /// <param name="contentManager">The foobar.</param>
21 void LoadContent(ContentManager contentManager);
24 /// Update the entity's state.
26 /// <param name="timeSpan">The timeslice.</param>
27 void Update(TimeSpan timeSpan);
30 /// Render the entity on the screen.
32 /// <param name="spriteBatch">The widget.</param>
33 void Draw(SpriteBatch spriteBatch);
36 /// Get the actual position.
38 Vector2 Position { get; }
41 /// Get the coordinates on the grid.
43 Point Coordinates { get; }