메소드 | 설명 | |
---|---|---|
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 GetScreens ( ) : ScreenManagement.GameScreen[] | ||
리턴 | ScreenManagement.GameScreen[] |
public RemoveScreen ( |
||
GameScreen | ||
리턴 | void |
public Update ( |
||
gameTime | ||
리턴 | void |