C# Class CastleEscape.Dialogue

The dialogue state. Authors: Allyson Sadwin :)
Inheritance: State
Show file Open project: Daminvar/CastleEscape Class Usage Examples

Public Methods

Method 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 method

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
return System

Draw() public method

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
return void

Pause() public method

public Pause ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

Update() public method

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
return void