Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Shift.Game Class Referenceabstract

Public Member Functions

 Game ()
 
 Game (int width, int height, string title)
 
 Game (Vector2 size, string title)
 
void Run (bool useVSync=false)
 
void ResetElapsedTime ()
 Resets the elapsed time reported by the game timer. More...
 
abstract void Init ()
 
abstract void Update (GameTime time)
 
abstract void Draw (GameTime time)
 

Public Attributes

GameWindow Window
 
bool Running = false
 True if the game loop is running. More...
 

Properties

bool IsActive [get]
 Indicates whether the game is currently the active application. More...
 

Detailed Description

Definition at line 10 of file Game.cs.

Constructor & Destructor Documentation

Shift.Game.Game ( )
inline

Definition at line 30 of file Game.cs.

Shift.Game.Game ( int  width,
int  height,
string  title 
)
inline

Definition at line 32 of file Game.cs.

Shift.Game.Game ( Vector2  size,
string  title 
)
inline

Definition at line 39 of file Game.cs.

Member Function Documentation

abstract void Shift.Game.Draw ( GameTime  time)
pure virtual
abstract void Shift.Game.Init ( )
pure virtual
void Shift.Game.ResetElapsedTime ( )
inline

Resets the elapsed time reported by the game timer.

Definition at line 73 of file Game.cs.

void Shift.Game.Run ( bool  useVSync = false)
inline

Definition at line 41 of file Game.cs.

abstract void Shift.Game.Update ( GameTime  time)
pure virtual

Member Data Documentation

bool Shift.Game.Running = false

True if the game loop is running.

Definition at line 20 of file Game.cs.

GameWindow Shift.Game.Window

Definition at line 15 of file Game.cs.

Property Documentation

bool Shift.Game.IsActive
get

Indicates whether the game is currently the active application.

Definition at line 26 of file Game.cs.


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