| Thing Class |
[This is preliminary documentation and is subject to change.]
Namespace: EJW.TextBasedAdventure
The Thing type exposes the following members.
| Name | Description | |
|---|---|---|
| Bucket |
A Bucket object for the Thing.
| |
| Carried |
Gets or Sets if the Thing is being carried.
| |
| Container |
Gets or Sets if the Thing can contain other Things.
| |
| Contents |
For Containers: gets all things that this Thing contains.
| |
| Description |
The description of the Thing.
| |
| InPlayerRoom |
Returns true if the Thing is in the same room as the player.
| |
| InRoom |
Gets or Sets the Room this Thing is in, or null if not in a Room.
| |
| InThing |
Gets or Sets the Thing this Thing is in, or null if not in a Thing.
| |
| Name |
The Name of the Thing
| |
| Visible |
Gets or Sets the Things Visibility. If set to true the Thing is placed in the current room.
| |
| Wearable |
Gets or Sets if the Thing can be worn.
| |
| WithDefiniteArticle |
Returns the Thing Name preceded with "the".
| |
| WithIndefiniteArticle |
Returns the Thing Name preceded with "a" or "an".
| |
| Worn |
Gets or Sets if the Thing is Worn.
|
| Name | Description | |
|---|---|---|
| Carry | Obsolete.
The Thing's in-game state is set to Carried.
| |
| Hide | Obsolete.
The Thing's in-game state is set to Hidden.
| |
| PutInRoom(String) | Obsolete.
Move the Thing into a room
| |
| PutInRoom(Room) | Obsolete.
Move the Thing into a room
| |
| Wear | Obsolete.
The Thing's in-game state is set to Worn.
|
| Name | Description | |
|---|---|---|
| DescriptionOverride | Used to override the default description text for this Thing. | |
| PostProcess | Executes after everything else for this Thing. | |
| PreProcess | Executes before anything else for this Thing. |