C# Класс CastleEscape.Dialogue

The dialogue state. Authors: Allyson Sadwin :)
Наследование: State
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Dialogue() публичный Метод

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
Результат System

Draw() публичный Метод

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
Результат void

Pause() публичный Метод

public Pause ( ) : void
Результат void

Resume() публичный Метод

public Resume ( ) : void
Результат void

Update() публичный Метод

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
Результат void