C# 클래스 FontEffectsLibSamples.AchievementPanel

Example implementation of ComplexSprite. Uses 3 sprites: An "Achievement!" title, a description text field, and a black background. Also raises events upon state change.
상속: FontEffectsLib.SpriteTypes.ComplexSprite, IStateful
파일 보기 프로젝트 열기: GreatMindsRobotics/FontEffectsLib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Condition ConditionChecker
Height int
Width int

보호된 프로퍼티들

프로퍼티 타입 설명
_velocity Vector2

공개 메소드들

메소드 설명
AchievementPanel ( float startX, SpriteFont title, SpriteFont desc, string achievementDesc, GraphicsDevice dev ) : System
AreFiveCoinsInsert ( GameTime currentGameTime ) : bool
AreHundredDollarsDonated ( GameTime currentGameTime ) : bool
IsNoCoinsInsertedAtThirtySeconds ( GameTime currentGameTime ) : bool
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
changeState ( PanelState newState ) : void

메소드 상세

AchievementPanel() 공개 메소드

public AchievementPanel ( float startX, SpriteFont title, SpriteFont desc, string achievementDesc, GraphicsDevice dev ) : System
startX float
title Microsoft.Xna.Framework.Graphics.SpriteFont
desc Microsoft.Xna.Framework.Graphics.SpriteFont
achievementDesc string
dev GraphicsDevice
리턴 System

AreFiveCoinsInsert() 공개 정적인 메소드

public static AreFiveCoinsInsert ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
리턴 bool

AreHundredDollarsDonated() 공개 정적인 메소드

public static AreHundredDollarsDonated ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
리턴 bool

IsNoCoinsInsertedAtThirtySeconds() 공개 정적인 메소드

public static IsNoCoinsInsertedAtThirtySeconds ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
리턴 bool

Update() 공개 메소드

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

프로퍼티 상세

Condition 공개적으로 프로퍼티

public ConditionChecker Condition
리턴 ConditionChecker

Height 공개적으로 프로퍼티

public int Height
리턴 int

Width 공개적으로 프로퍼티

public int Width
리턴 int

_velocity 보호되어 있는 프로퍼티

protected Vector2 _velocity
리턴 Vector2