Méthode | 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.
|
Méthode | Description | |
---|---|---|
LoadContent ( ) : void |
Load your graphics content.
|
|
UnloadContent ( ) : void |
Unload your graphics content.
|
Méthode | Description | |
---|---|---|
TraceScreens ( ) : void |
Prints a list of all the screens, for debugging.
|
public AddScreen ( |
||
GameScreen | ||
controllingPlayer | PlayerIndex | |
Résultat | void |
public Draw ( |
||
gameTime | ||
Résultat | void |
public FadeBackBufferToColor ( Color color, int alpha ) : void | ||
color | Color | |
alpha | int | |
Résultat | void |
public GetScreen ( int index ) : |
||
index | int | |
Résultat |
public GetScreens ( ) : ScreenManagement.GameScreen[] | ||
Résultat | ScreenManagement.GameScreen[] |
public RemoveScreen ( |
||
GameScreen | ||
Résultat | void |
public ScreenManager ( Game game ) : System | ||
game | Game | |
Résultat | System |
public Update ( |
||
gameTime | ||
Résultat | void |