C# Class 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.
Inheritance: FontEffectsLib.SpriteTypes.ComplexSprite, IStateful
Afficher le fichier Open project: GreatMindsRobotics/FontEffectsLib Class Usage Examples

Méthodes publiques

Свойство Type Description
Condition ConditionChecker
Height int
Width int

Protected Properties

Свойство Type Description
_velocity Vector2

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
changeState ( PanelState newState ) : void

Method Details

AchievementPanel() public méthode

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
Résultat System

AreFiveCoinsInsert() public static méthode

public static AreFiveCoinsInsert ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
Résultat bool

AreHundredDollarsDonated() public static méthode

public static AreHundredDollarsDonated ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
Résultat bool

IsNoCoinsInsertedAtThirtySeconds() public static méthode

public static IsNoCoinsInsertedAtThirtySeconds ( GameTime currentGameTime ) : bool
currentGameTime Microsoft.Xna.Framework.GameTime
Résultat bool

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

Condition public_oe property

public ConditionChecker Condition
Résultat ConditionChecker

Height public_oe property

public int Height
Résultat int

Width public_oe property

public int Width
Résultat int

_velocity protected_oe property

protected Vector2 _velocity
Résultat Vector2