Method | Description | |
---|---|---|
AddScreen ( |
Adds a new GameScreen to the GameScreen manager.
|
|
Draw ( |
Tells each GameScreen to draw itself.
|
|
FadeBackBufferToColor ( Color color, int alpha ) : void |
Helper draws a translucent black fullscreen sprite, used for fading screens in and out, and for darkening the background behind popups.
|
|
GetScreen ( int index ) : |
Get a screen by index.
|
|
GetScreens ( ) : ScreenManagement.GameScreen[] |
Expose an array holding all the screens. We return a copy rather than the real master list, because screens should only ever be added or removed using the AddScreen and RemoveScreen methods.
|
|
Initialize ( ) : void |
Initializes the GameScreen manager component.
|
|
RemoveAllScreens ( ) : void |
Removes all GameScreens from the GameScreen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the GameScreens can gradually transition off rather than just being instantly removed.
|
|
RemoveScreen ( |
Removes a GameScreen from the GameScreen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the GameScreen can gradually transition off rather than just being instantly removed.
|
|
ScreenManager ( Game game ) : System |
Constructs a new GameScreen manager component.
|
|
Update ( |
Allows each GameScreen to run logic.
|
Method | Description | |
---|---|---|
LoadContent ( ) : void |
Load your graphics content.
|
|
UnloadContent ( ) : void |
Unload your graphics content.
|
Method | Description | |
---|---|---|
TraceScreens ( ) : void |
Prints a list of all the screens, for debugging.
|
public AddScreen ( |
||
GameScreen | ||
controllingPlayer | PlayerIndex | |
return | void |
public Draw ( |
||
gameTime | ||
return | void |
public FadeBackBufferToColor ( Color color, int alpha ) : void | ||
color | Color | |
alpha | int | |
return | void |
public GetScreens ( ) : ScreenManagement.GameScreen[] | ||
return | ScreenManagement.GameScreen[] |
public RemoveScreen ( |
||
GameScreen | ||
return | void |
public Update ( |
||
gameTime | ||
return | void |