Property | Type | Description | |
---|---|---|---|
BeginRun | void | ||
DrawingSurface_Draw | void | ||
DrawingSurface_LoadContent | void | ||
DrawingSurface_Loaded | void | ||
DrawingSurface_Unloaded | void | ||
EndRun | void | ||
GetButtonState | ButtonState | ||
UpdateKeyboard | void | ||
UpdateMouse | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Dispose the game module.
|
|
GameModule ( ) : Microsoft.Xna.Framework |
Creates a new GameModule's instance.
|
Method | Description | |
---|---|---|
Draw ( |
Called when the game determines it is time to draw a frame. Override this method with game-specific rendering code.
|
|
Initialize ( ) : void |
Called after the Game and GraphicsDevice are created, but before LoadContent.
|
|
LoadContent ( ) : void |
Called when graphics resources need to be loaded. Override this method to load any game-specific graphics resources.
|
|
UnloadContent ( ) : void |
Called when graphics resources need to be unloaded. Override this method to unload any game-specific graphics resources.
|
|
Update ( |
Called when the game has determined that game logic needs to be processed. This might include the management of the game state, the processing of user input, or the updating of simulation data. Override this method with game-specific logic.
|
Method | Description | |
---|---|---|
BeginRun ( ) : void |
Begin running the game module.
|
|
DrawingSurface_Draw ( Object sender, |
|
|
DrawingSurface_LoadContent ( Object sender, |
|
|
DrawingSurface_Loaded ( Object sender, System e ) : void |
|
|
DrawingSurface_Unloaded ( Object sender, System e ) : void |
|
|
EndRun ( ) : void |
Ends running the game module.
|
|
GetButtonState ( MouseButtonState mouseState ) : ButtonState |
Converts a MouseButtonState into a ButtonState.
|
|
UpdateKeyboard ( Object sender, KeyEventArgs e ) : void |
Updates the keyboard state.
|
|
UpdateMouse ( Object sender, MouseEventArgs e ) : void |
Update mouse state.
|
protected Draw ( |
||
gameTime | Time passed since the last call to Draw. | |
return | void |
public GameModule ( ) : Microsoft.Xna.Framework | ||
return | Microsoft.Xna.Framework |
protected Update ( |
||
gameTime | Time passed since the last call to Update. | |
return | void |