Click or drag to resize
Thing Class
Hartismere School

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

Base class for a Thing.
Inheritance Hierarchy
SystemObject
  EJW.TextBasedAdventureThing

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

The Thing type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleBucket
A Bucket object for the Thing.
Public propertyCarried
Gets or Sets if the Thing is being carried.
Public propertyContainer
Gets or Sets if the Thing can contain other Things.
Public propertyContents
For Containers: gets all things that this Thing contains.
Public propertyDescription
The description of the Thing.
Public propertyInPlayerRoom
Returns true if the Thing is in the same room as the player.
Public propertyInRoom
Gets or Sets the Room this Thing is in, or null if not in a Room.
Public propertyInThing
Gets or Sets the Thing this Thing is in, or null if not in a Thing.
Public propertyCode exampleName
The Name of the Thing
Public propertyVisible
Gets or Sets the Things Visibility. If set to true the Thing is placed in the current room.
Public propertyWearable
Gets or Sets if the Thing can be worn.
Public propertyCode exampleWithDefiniteArticle
Returns the Thing Name preceded with "the".
Public propertyCode exampleWithIndefiniteArticle
Returns the Thing Name preceded with "a" or "an".
Public propertyWorn
Gets or Sets if the Thing is Worn.
Top
Methods
  NameDescription
Public methodCarry Obsolete.
The Thing's in-game state is set to Carried.
Public methodHide Obsolete.
The Thing's in-game state is set to Hidden.
Public methodCode examplePutInRoom(String) Obsolete.
Move the Thing into a room
Public methodCode examplePutInRoom(Room) Obsolete.
Move the Thing into a room
Public methodWear Obsolete.
The Thing's in-game state is set to Worn.
Top
Events
  NameDescription
Public eventDescriptionOverride
Used to override the default description text for this Thing.
Public eventPostProcess
Executes after everything else for this Thing.
Public eventCode examplePreProcess
Executes before anything else for this Thing.
Top
See Also