C# Class CastleEscape.Dialogue

The dialogue state. Authors: Allyson Sadwin :)
Inheritance: State
Afficher le fichier Open project: Daminvar/CastleEscape Class Usage Examples

Méthodes publiques

Méthode Description
Dialogue ( Microsoft.Xna.Framework.Game game, string text ) : System

The Dialogue constructor - takes 2 parameters

Draw ( SpriteBatch spriteBatch ) : void

Draws the textbox and four lines of text to the screen.

Pause ( ) : void
Resume ( ) : void
Update ( GameTime gameTime ) : void

Checks to see if the space key is down. If it is, the first element of the List is removed. Holding down the space key sets canMove to false. Releasing sets canMove to true.

Method Details

Dialogue() public méthode

The Dialogue constructor - takes 2 parameters
public Dialogue ( Microsoft.Xna.Framework.Game game, string text ) : System
game Microsoft.Xna.Framework.Game The current game
text string The message that will be displayed
Résultat System

Draw() public méthode

Draws the textbox and four lines of text to the screen.
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The sprite batch
Résultat void

Pause() public méthode

public Pause ( ) : void
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void

Update() public méthode

Checks to see if the space key is down. If it is, the first element of the List is removed. Holding down the space key sets canMove to false. Releasing sets canMove to true.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time
Résultat void