]> Dogcows Code - chaz/carfire/blob - CarFire/CarFire/CarFire/IEntity.cs
b8121719f1aef7614764591981af146b55be8a44
[chaz/carfire] / CarFire / CarFire / CarFire / IEntity.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Content;
7 using Microsoft.Xna.Framework.Graphics;
8
9 namespace CarFire
10 {
11 /// <summary>
12 /// An interface to represent any object that can exist as an
13 /// independent piece of the game.
14 /// </summary>
15 public interface IEntity
16 {
17 /// <summary>
18 /// Load the resources the entity needs.
19 /// </summary>
20 /// <param name="contentManager">The foobar.</param>
21 void LoadContent(ContentManager contentManager);
22
23 /// <summary>
24 /// Update the entity's state.
25 /// </summary>
26 /// <param name="timeSpan">The timeslice.</param>
27 void Update(TimeSpan timeSpan);
28
29 /// <summary>
30 /// Render the entity on the screen.
31 /// </summary>
32 /// <param name="spriteBatch">The widget.</param>
33 void Draw(SpriteBatch spriteBatch);
34
35 /// <summary>
36 /// Get the actual position.
37 /// </summary>
38 Vector2 Position { get; }
39
40 /// <summary>
41 /// Get the coordinates on the grid.
42 /// </summary>
43 Point Coordinates { get; }
44 }
45 }
This page took 0.034002 seconds and 3 git commands to generate.