Click or drag to resize
Instruction Class
Hartismere School

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

Describes the player's input.
Inheritance Hierarchy
SystemObject
  EJW.TextBasedAdventureInstruction

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

The Instruction type exposes the following members.

Properties
  NameDescription
Public propertyDirection
...can be null if no direction entered.
Public propertyParsed
recognised text after parsing.
Public propertyPreposition
text of recognised preposition.
Public propertyRaw
the raw text entered by the user.
Public propertyRawWords
string[] of words in raw text
Public propertyResultText
Contains the resulting text that will be displayed to the player from teh current instruction.
Public propertyRoomChanged
shows true if the current room has been changed.
Public propertySpeech
An instruction contained in speech marks
Public propertyThing1
Public propertyThing2
Public propertyVerb
Text of recognised verb.
Top
Methods
  NameDescription
Public methodBreak
Prevent any further actions in this parse executing.
Public methodIsWordInRaw
Checks all the words entered by the player for a match with Word
Public methodMatch(String)
Provides a shortcut for matching the verb in the current Instruction
Public methodMatch(String, Thing)
Provides a shortcut for matching the verb and first Thing in the current Instruction
Public methodMatch(String, Thing, String, Thing)
Provides a shortcut for matching the verb and first Thing in the current Instruction
Top
See Also