Свойство | Тип | Описание | |
---|---|---|---|
m_spriteBatch |
Метод | Описание | |
---|---|---|
Activate ( bool instancePreserved ) : bool | ||
AddScreen ( GameScreen screen, System |
Adds a new screen to the screen manager.
|
|
Deactivate ( ) : void |
Informs the screen manager to serialize its state to disk.
|
|
Draw ( |
Tells each screen to draw itself.
|
|
FadeBackBufferToBlack ( float alpha ) : void |
Helper draws a translucent black fullscreen sprite, used for fading screens in and out, and for darkening the background behind popups.
|
|
GetScreens ( ) : 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 screen manager component.
|
|
RemoveScreen ( GameScreen screen ) : void |
Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
|
|
ScreenManager ( Microsoft.Xna.Framework.Game game ) : System |
Constructs a new screen manager component.
|
|
Update ( |
Allows each screen 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 Activate ( bool instancePreserved ) : bool | ||
instancePreserved | bool | |
Результат | bool |
public AddScreen ( GameScreen screen, System |
||
screen | GameScreen | |
controllingPlayer | System |
|
Результат | void |
public Draw ( |
||
gameTime | ||
Результат | void |
public FadeBackBufferToBlack ( float alpha ) : void | ||
alpha | float | |
Результат | void |
public RemoveScreen ( GameScreen screen ) : void | ||
screen | GameScreen | |
Результат | void |
public ScreenManager ( Microsoft.Xna.Framework.Game game ) : System | ||
game | Microsoft.Xna.Framework.Game | |
Результат | System |
public Update ( |
||
gameTime | ||
Результат | void |