C# Class FlatRedBall.Screens.Screen

Inheritance: IInstructable
显示文件 Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Property Type Description
IsPaused bool
mAccumulatedPausedTime double
mLastLoadedScene Scene
mLayer Layer
mTimeScreenWasCreated double

Public Methods

Method Description
Activating ( ) : void
Activity ( bool firstTimeCalled ) : void
AddToManagers ( ) : void
Destroy ( ) : void
Initialize ( bool addToManagers ) : void
MoveToScreen ( Type screenType ) : void
MoveToScreen ( string screenClass ) : void

Tells the screen that we are done and wish to move to the supplied screen

MoveToState ( int state ) : void
PauseAdjustedSecondsSince ( double time ) : double
RestartScreen ( bool reloadContent ) : void
Screen ( string contentManagerName ) : System
StartAsyncLoad ( Type type, System.Action afterLoaded = null ) : void
StartAsyncLoad ( string screenType, System.Action afterLoaded = null ) : void

Protected Methods

Method Description
HandleBackNavigation ( ) : void

Default implementation tells the screen manager to finish this screen's activity and navigate to the previous screen on the backstack.

Override this method if you want to have custom behavior when the back button is pressed.

OnActivate ( StateManager state ) : void
OnDeactivate ( StateManager state ) : void
PauseThisScreen ( ) : void
PreActivate ( ) : void
PreDeactivate ( ) : void
UnpauseThisScreen ( ) : void

Private Methods

Method Description
OnDeactivating ( ) : void
PerformAsyncLoad ( ) : void

Method Details

Activating() public method

public Activating ( ) : void
return void

Activity() public method

public Activity ( bool firstTimeCalled ) : void
firstTimeCalled bool
return void

AddToManagers() public method

public AddToManagers ( ) : void
return void

Destroy() public method

public Destroy ( ) : void
return void

HandleBackNavigation() protected method

Default implementation tells the screen manager to finish this screen's activity and navigate to the previous screen on the backstack.
Override this method if you want to have custom behavior when the back button is pressed.
protected HandleBackNavigation ( ) : void
return void

Initialize() public method

public Initialize ( bool addToManagers ) : void
addToManagers bool
return void

MoveToScreen() public method

public MoveToScreen ( Type screenType ) : void
screenType System.Type
return void

MoveToScreen() public method

Tells the screen that we are done and wish to move to the supplied screen
public MoveToScreen ( string screenClass ) : void
screenClass string
return void

MoveToState() public method

public MoveToState ( int state ) : void
state int This should be a valid enum value of the concrete screen type.
return void

OnActivate() protected method

protected OnActivate ( StateManager state ) : void
state StateManager
return void

OnDeactivate() protected method

protected OnDeactivate ( StateManager state ) : void
state StateManager
return void

PauseAdjustedSecondsSince() public method

public PauseAdjustedSecondsSince ( double time ) : double
time double
return double

PauseThisScreen() protected method

protected PauseThisScreen ( ) : void
return void

PreActivate() protected method

protected PreActivate ( ) : void
return void

PreDeactivate() protected method

protected PreDeactivate ( ) : void
return void

RestartScreen() public method

public RestartScreen ( bool reloadContent ) : void
reloadContent bool
return void

Screen() public method

public Screen ( string contentManagerName ) : System
contentManagerName string
return System

StartAsyncLoad() public method

public StartAsyncLoad ( Type type, System.Action afterLoaded = null ) : void
type System.Type
afterLoaded System.Action
return void

StartAsyncLoad() public method

public StartAsyncLoad ( string screenType, System.Action afterLoaded = null ) : void
screenType string
afterLoaded System.Action
return void

UnpauseThisScreen() protected method

protected UnpauseThisScreen ( ) : void
return void

Property Details

IsPaused protected_oe property

protected bool IsPaused
return bool

mAccumulatedPausedTime protected_oe property

protected double mAccumulatedPausedTime
return double

mLastLoadedScene protected_oe property

protected Scene mLastLoadedScene
return Scene

mLayer protected_oe property

protected Layer mLayer
return Layer

mTimeScreenWasCreated protected_oe property

protected double mTimeScreenWasCreated
return double