Export (0) Print
Expand All

Game Methods

NameDescription
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEquals (Inherited from Object.)
Public MethodExitExits the game.
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetType (Inherited from Object.)
Public MethodReferenceEquals (Inherited from Object.)
Public MethodResetElapsedTimeResets the elapsed time counter.
Public MethodRun Call this method to initialize the game, begin running the game loop, and start processing events for the game.
Public MethodTickUpdates the game's clock and calls Update and Draw.
Public MethodToString (Inherited from Object.)

NameDescription
Protected MethodBeginDraw Starts the drawing of a frame. This method is followed by calls to Draw and EndDraw.
Protected MethodBeginRun Called after all components are initialized but before the first update in the game loop.
Protected MethodDrawCalled when the game determines it is time to draw a frame. Override this method with game-specific rendering code.
Protected MethodEndDraw Ends the drawing of a frame. This method is preceeded by calls to Draw and BeginDraw.
Protected MethodEndRunCalled after the game loop has stopped running before exiting.
Protected MethodFinalize Allows a Game to attempt to free resources and perform other cleanup operations before garbage collection reclaims the Game.
Protected MethodInitialize Called after the Game and GraphicsDevice are created, but before LoadContent.
Protected MethodLoadContentCalled when graphics resources need to be loaded. Override this method to load any game-specific graphics resources.
Protected MethodLoadGraphicsContentObsolete. Called when graphics resources need to be loaded. Override this method to load any game-specific graphics resources.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected MethodOnActivatedRaises the Activated event. Override this method to add code to handle when the game gains focus.
Protected MethodOnDeactivatedRaises the Deactivated event. Override this method to add code to handle when the game loses focus.
Protected MethodOnExitingRaises an Exiting event. Override this method to add code to handle when the game is exiting.
Protected MethodUnloadContentCalled when graphics resources need to be unloaded. Override this method to unload any game-specifc graphics resources.
Protected MethodUnloadGraphicsContentObsolete. Called when graphics resources need to be unloaded. Override this method to unload any game-specifc graphics resources.
Protected MethodUpdateCalled when the game has determined that game logic needs to be processed. Override this method with game-specific logic.

Community Additions

ADD
Show:
© 2014 Microsoft