using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace CarFire { /// /// An interface to represent any object that can exist as an /// independent piece of the game. /// public interface IEntity { /// /// Load the resources the entity needs. /// /// The foobar. void LoadContent(ContentManager contentManager); /// /// Update the entity's state. /// /// The timeslice. void Update(TimeSpan timeSpan); /// /// Render the entity on the screen. /// /// The widget. void Draw(SpriteBatch spriteBatch); /// /// Get whether or not the entity is collidable. /// bool IsCollidable { get; } /// /// Get the actual position. /// Vector2 Position { get; } /// /// Get the coordinates on the grid. /// Point Coordinates { get; set; } /// /// Get the entity's identifier. /// char Identifier { get; } } }