MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.GameCode Class Reference

Abstract class used to hold the code for a users game to interact within the game framework More...

Public Member Functions

virtual GameSettings GameSettings ()
 Set the basic settings of the game
void PreInitialize (GameFramework framework)
 Run some required code for this object before anything else gets executed
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

Properties

GameTime GameTime [get]
 Object used to keep track of the gane time while the engine is running
Window Window [get]
 Access the Window directly
Size WindowDimensions [get]
 Access the dimensions of the window
ContentManager Content [get]
 Content Manager used to load and unload content from the game
GameComponentList Components [get]
 GameComponents List used to manage GameComponents
GameServices Services [get]
 Global access to services via GameServices

Detailed Description

Abstract class used to hold the code for a users game to interact within the game framework

Member Function Documentation

virtual void MuGameFramework.GameCode.Draw ( SpriteBatch  spriteBatch)
virtual

Draw the objects in the game every tick

Parameters
spriteBatchSpriteBatch used to draw the objects
virtual GameSettings MuGameFramework.GameCode.GameSettings ( )
virtual

Set the basic settings of the game

Returns
Settings of the game
virtual void MuGameFramework.GameCode.Initialize ( )
virtual

Initialize objects in the game

virtual void MuGameFramework.GameCode.LoadContent ( )
virtual

Load content for thus objects in the game Runs before Initialize

void MuGameFramework.GameCode.PreInitialize ( GameFramework  framework)

Run some required code for this object before anything else gets executed

Parameters
frameworkThe running game framework
virtual void MuGameFramework.GameCode.UnloadContent ( )
virtual

Unload content loaded into the game

virtual void MuGameFramework.GameCode.Update ( )
virtual

Update the objects in the game every tick

Property Documentation

GameComponentList MuGameFramework.GameCode.Components
get

GameComponents List used to manage GameComponents

ContentManager MuGameFramework.GameCode.Content
get

Content Manager used to load and unload content from the game

GameTime MuGameFramework.GameCode.GameTime
get

Object used to keep track of the gane time while the engine is running

GameServices MuGameFramework.GameCode.Services
get

Global access to services via GameServices

Window MuGameFramework.GameCode.Window
get

Access the Window directly

Size MuGameFramework.GameCode.WindowDimensions
get

Access the dimensions of the window


The documentation for this class was generated from the following file: