Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
LoadContent ( ) : void |
Load your graphics content.
|
|
UnloadContent ( ) : void |
Unload your graphics content.
|
Метод | Описание | |
---|---|---|
TraceScreens ( ) : void |
Prints a list of all the screens, for debugging.
|
public AddScreen ( |
||
GameScreen | ||
controllingPlayer | PlayerIndex | |
Результат | void |
public Draw ( |
||
gameTime | ||
Результат | void |
public FadeBackBufferToColor ( Color color, int alpha ) : void | ||
color | Color | |
alpha | int | |
Результат | void |
public GetScreen ( int index ) : |
||
index | int | |
Результат |
public GetScreens ( ) : ScreenManagement.GameScreen[] | ||
Результат | ScreenManagement.GameScreen[] |
public RemoveScreen ( |
||
GameScreen | ||
Результат | void |
public ScreenManager ( Game game ) : System | ||
game | Game | |
Результат | System |
public Update ( |
||
gameTime | ||
Результат | void |