C# 클래스 FontEffectsLib.FontTypes.SlidingFont

상속: ShadowFont, IStateful
파일 보기 프로젝트 열기: GreatMindsRobotics/FontEffectsLib

보호된 프로퍼티들

프로퍼티 타입 설명
_distanceToTarget float
_slideSpeed float
_startingPosition Vector2
_state FontState
_targetPosition Vector2
_targetTolerance float
_unitVectorToTarget Vector2

공개 메소드들

메소드 설명
Reset ( ) : void

Reset the font to its initial state.

Reset ( bool startSlide ) : void

Reset the font to its initial state.

Slide ( ) : void

Sets the font to visible and begins sliding towards the target position.

SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, Color tintColor ) : System
SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, String text, Color tintColor ) : System
SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, String text, Color tintColor, Vector2 shadowPosition, Color shadowColor ) : System
Update ( GameTime gameTime ) : void

보호된 메소드들

메소드 설명
calculateSlide ( ) : void
changeState ( FontState newState ) : void

메소드 상세

Reset() 공개 메소드

Reset the font to its initial state.
public Reset ( ) : void
리턴 void

Reset() 공개 메소드

Reset the font to its initial state.
public Reset ( bool startSlide ) : void
startSlide bool If true, () method is called right away.
리턴 void

Slide() 공개 메소드

Sets the font to visible and begins sliding towards the target position.
public Slide ( ) : void
리턴 void

SlidingFont() 공개 메소드

public SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, Color tintColor ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont
startPosition Vector2
endPosition Vector2
slideSpeed float
tintColor Color
리턴 System

SlidingFont() 공개 메소드

public SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, String text, Color tintColor ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont
startPosition Vector2
endPosition Vector2
slideSpeed float
text String
tintColor Color
리턴 System

SlidingFont() 공개 메소드

public SlidingFont ( SpriteFont font, Vector2 startPosition, Vector2 endPosition, float slideSpeed, String text, Color tintColor, Vector2 shadowPosition, Color shadowColor ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont
startPosition Vector2
endPosition Vector2
slideSpeed float
text String
tintColor Color
shadowPosition Vector2
shadowColor Color
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

calculateSlide() 보호된 메소드

protected calculateSlide ( ) : void
리턴 void

changeState() 보호된 메소드

protected changeState ( FontState newState ) : void
newState FontState
리턴 void

프로퍼티 상세

_distanceToTarget 보호되어 있는 프로퍼티

protected float _distanceToTarget
리턴 float

_slideSpeed 보호되어 있는 프로퍼티

protected float _slideSpeed
리턴 float

_startingPosition 보호되어 있는 프로퍼티

protected Vector2 _startingPosition
리턴 Vector2

_state 보호되어 있는 프로퍼티

protected FontState _state
리턴 FontState

_targetPosition 보호되어 있는 프로퍼티

protected Vector2 _targetPosition
리턴 Vector2

_targetTolerance 보호되어 있는 프로퍼티

protected float _targetTolerance
리턴 float

_unitVectorToTarget 보호되어 있는 프로퍼티

protected Vector2 _unitVectorToTarget
리턴 Vector2