]> Dogcows Code - chaz/carfire/blob - CarFire/CarFire/CarFire/IEntity.cs
git-svn-id: https://bd85.net/svn/cs3505_group@168 92bb83a3-7c8f-8a45-bc97-515c4e399668
[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 whether or not the entity is collidable.
37 /// </summary>
38 bool IsCollidable { get; }
39
40 /// <summary>
41 /// Get the actual position.
42 /// </summary>
43 Vector2 Position { get; }
44
45 /// <summary>
46 /// Get the coordinates on the grid.
47 /// </summary>
48 Point Coordinates { get; set; }
49
50 /// <summary>
51 /// Get the entity's identifier.
52 /// </summary>
53 char Identifier { get; }
54 }
55 }
This page took 0.032213 seconds and 4 git commands to generate.