Click or drag to resize
Game Class
Hartismere School

[This is preliminary documentation and is subject to change.]

Encapsulates a Text Based Adventure Game. Written by EJW/Hartismere.
Inheritance Hierarchy
SystemObject
  EJW.TextBasedAdventureGame

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
[SerializableAttribute]
public class Game

The Game type exposes the following members.

Constructors
  NameDescription
Public methodGame(String)
Create a new console game
Public methodCode exampleGame(TextBox)
Create a GUI game
Top
Properties
  NameDescription
Public propertyAllVocab
Returns a list of all known vocabulary
Public propertyCode exampleBucket
Bucket for this game. Use the Bucket to store consumer values that are saved with the game data.
Public propertyOptions
Set of Options that control the behaviour of this Game.
Public propertyParser
The Parser that parses input from the player and build an Instruction
Public propertyPrincipalVocab
Returns a list of the first synonym for all known vocabulary
Public propertyRawGameData
Gets or Sets the binary data for this game.
Public propertyRooms
Collection of all Rooms in this game
Public propertyThings
Collection of all Things in this game
Public propertyTitle
Title for this game. Displays in teh Console Title bar.
Top
Methods
  NameDescription
Public methodGoto
Sets the current room.
Public methodHelp
Public methodLoad
Public methodParse
Send some text to the parser to be processed.
Public methodQuit
Call to quit the game engine at the end of the current parse.
Public methodRestart
Public methodSave
Public methodStart
Sets the current room (if null) to the first room, displays current room description and waits for user input
Public methodCode exampleTypeText
Types the text into the console(non-GUI) or control(GUI) simulating a typewriter.
Top
Events
  NameDescription
Public eventPostProcess
Executes before anything else.
Public eventPreProcess
Executes before anything else.
Top
See Also