C# 클래스 DeenGames.Utils.Tower.Core.TowerScreen

Our Tower framework's screen class. Makes life simpler.
상속: FlatSilverBallTemplate.Screens.Screen
파일 보기 프로젝트 열기: deengames/valence 1 사용 예제들

공개 메소드들

메소드 설명
Activity ( bool firstTimeCalled ) : void
AddAxisAlignedRectangle ( ) : AxisAlignedRectangle
AddAxisAlignedRectangle ( float scaleX, float scaleY ) : AxisAlignedRectangle
AddAxisAlignedRectangle ( float scaleX, float scaleY, int x, int y ) : AxisAlignedRectangle
AddSprite ( string texture ) : Sprite

Adds a sprite to our internal collection, so we don't have to clean it up manually later.

AddText ( string text ) : Text

Adds a text object to our internal collection, so we don't have to clean it up manually later.

AddText ( Text text ) : void
FadeIn ( ) : void
FadeInImmediately ( ) : void
FadeOut ( ) : void
FadeOut ( FadeOutMode mode ) : void
FadeOutHalf ( ) : void
FadeOutImmediately ( ) : void
FindText ( string displayText ) : Text

Find some text by content. This is useful because we generally create texts in Initialize, and reference them (if need be) in Activity/Update methods. Note that if there are multiple text objects, it returns the first one, depending on the order FRB stores them (usually, the one created first). If no Text object exists with the specified displayText, then we return null.

GetTopZValueAndMoveFadeToTop ( ) : float
ManageForGarbageCollection ( Object target ) : void
MoveToScreen ( Type screenType ) : void
RemoveResource ( FlatRedBall.PositionedObject p ) : void
RemoveResource ( TowerText t ) : void
TowerScreen ( ) : System

Base Screen constructor requires this. Get it done, so that we don't have to to add this to all screens.

비공개 메소드들

메소드 설명
RemoveSprite ( Sprite sprite ) : void

Removes a sprite from the screen. Note that if you have a reference to this sprite, that needs to be set to null.

RemoveText ( Text text ) : void

Remove the text from the screen. Note that if you have a reference to this text, that still needs to be set to null.

메소드 상세

Activity() 공개 메소드

public Activity ( bool firstTimeCalled ) : void
firstTimeCalled bool
리턴 void

AddAxisAlignedRectangle() 공개 메소드

public AddAxisAlignedRectangle ( ) : AxisAlignedRectangle
리턴 AxisAlignedRectangle

AddAxisAlignedRectangle() 공개 메소드

public AddAxisAlignedRectangle ( float scaleX, float scaleY ) : AxisAlignedRectangle
scaleX float
scaleY float
리턴 AxisAlignedRectangle

AddAxisAlignedRectangle() 공개 메소드

public AddAxisAlignedRectangle ( float scaleX, float scaleY, int x, int y ) : AxisAlignedRectangle
scaleX float
scaleY float
x int
y int
리턴 AxisAlignedRectangle

AddSprite() 공개 메소드

Adds a sprite to our internal collection, so we don't have to clean it up manually later.
public AddSprite ( string texture ) : Sprite
texture string
리턴 FlatRedBall.Sprite

AddText() 공개 메소드

Adds a text object to our internal collection, so we don't have to clean it up manually later.
public AddText ( string text ) : Text
text string
리턴 FlatRedBall.Graphics.Text

AddText() 공개 메소드

public AddText ( Text text ) : void
text FlatRedBall.Graphics.Text
리턴 void

FadeIn() 공개 메소드

public FadeIn ( ) : void
리턴 void

FadeInImmediately() 공개 메소드

public FadeInImmediately ( ) : void
리턴 void

FadeOut() 공개 메소드

public FadeOut ( ) : void
리턴 void

FadeOut() 공개 메소드

public FadeOut ( FadeOutMode mode ) : void
mode FadeOutMode
리턴 void

FadeOutHalf() 공개 메소드

public FadeOutHalf ( ) : void
리턴 void

FadeOutImmediately() 공개 메소드

public FadeOutImmediately ( ) : void
리턴 void

FindText() 공개 메소드

Find some text by content. This is useful because we generally create texts in Initialize, and reference them (if need be) in Activity/Update methods. Note that if there are multiple text objects, it returns the first one, depending on the order FRB stores them (usually, the one created first). If no Text object exists with the specified displayText, then we return null.
public FindText ( string displayText ) : Text
displayText string
리턴 FlatRedBall.Graphics.Text

GetTopZValueAndMoveFadeToTop() 공개 메소드

public GetTopZValueAndMoveFadeToTop ( ) : float
리턴 float

ManageForGarbageCollection() 공개 메소드

public ManageForGarbageCollection ( Object target ) : void
target Object
리턴 void

MoveToScreen() 공개 메소드

public MoveToScreen ( Type screenType ) : void
screenType System.Type
리턴 void

RemoveResource() 공개 메소드

public RemoveResource ( FlatRedBall.PositionedObject p ) : void
p FlatRedBall.PositionedObject
리턴 void

RemoveResource() 공개 메소드

public RemoveResource ( TowerText t ) : void
t DeenGames.Utils.Tower.Controls.TowerText
리턴 void

TowerScreen() 공개 메소드

Base Screen constructor requires this. Get it done, so that we don't have to to add this to all screens.
public TowerScreen ( ) : System
리턴 System