C# 클래스 CastleEscape.Dialogue

The dialogue state. Authors: Allyson Sadwin :)
상속: State
파일 보기 프로젝트 열기: Daminvar/CastleEscape 1 사용 예제들

공개 메소드들

메소드 설명
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