C# Класс DeenGames.Utils.Tower.Core.TowerScreen

Our Tower framework's screen class. Makes life simpler.
Наследование: FlatSilverBallTemplate.Screens.Screen
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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