MuGameFramework
1.0
MuGameFramework is a 2D game framework built upon C# and SFML
|
Representing a single drawable component in the game More...
Public Member Functions | |
GameComponent (GameCode game, int updateOrder=0) | |
Initialize this instance of GameComponent | |
virtual void | Initialize () |
Initialize objects in the game | |
virtual void | LoadContent () |
Load content for thus objects in the game Runs before Initialize | |
virtual void | UnloadContent () |
Unload content loaded into the game | |
virtual void | Update () |
Update the objects in the game every tick | |
virtual void | Draw (SpriteBatch spriteBatch) |
Draw the objects in the game every tick | |
void | Dispose () |
Used to explicitly free all resources currently in use by this object before destruction |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Dispose any and all objects, either managed or unmanaged at the end of this objects lifespan |
Protected Attributes | |
GameCode | game |
Access to the GameCode and everything it contains |
Representing a single drawable component in the game
MuGameFramework.GameComponent.GameComponent | ( | GameCode | game, |
int | updateOrder = 0 |
||
) |
Initialize this instance of GameComponent
game | The GameCode that contains this object |
updateOrder | Order in the GameComponent list to update and draw this object at |
|
protectedvirtual |
Dispose any and all objects, either managed or unmanaged at the end of this objects lifespan
disposing | Dispose of Managed objects? |
void MuGameFramework.GameComponent.Dispose | ( | ) |
Used to explicitly free all resources currently in use by this object before destruction
|
virtual |
Draw the objects in the game every tick
spriteBatch | SpriteBatch used to draw the objects |
Implements MuGameFramework.IDrawable.
|
virtual |
Initialize objects in the game
Implements MuGameFramework.IUpdatable.
|
virtual |
Load content for thus objects in the game Runs before Initialize
Implements MuGameFramework.IDrawable.
|
virtual |
Unload content loaded into the game
Implements MuGameFramework.IDrawable.
|
virtual |
Update the objects in the game every tick
Implements MuGameFramework.IUpdatable.
|
protected |
Access to the GameCode and everything it contains