Click or drag to resize
Things Class
Hartismere School

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

Collection of all Things in the game.
Inheritance Hierarchy
SystemObject
  EJW.TextBasedAdventureThings

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
[SerializableAttribute]
public class Things : IEnumerable<Thing>, 
	IEnumerable

The Things type exposes the following members.

Properties
  NameDescription
Public propertyCarried
List of all Things carried
Public propertyCarriedOrWorn
List of all Things carried and worn
Public propertyCount
Count of all Things in the Game.
Public propertyItemInt32
Get a Thing by its position in the collection.
Public propertyItemString
Get a Thing by its Name.
Public propertyNames
Collection of Names of all known Things
Public propertyNew
Creates a new Thing
Public propertyWorn
List of all Things worn
Top
Methods
  NameDescription
Public methodCode exampleAdd(String)
Adds a new Thing to the collection of Things.
Public methodCode exampleAdd(String, String)
Adds a new Thing to the collection of Things.

The Thing starts off hidden.

Public methodCode exampleAdd(String, String, Room)
Adds a new Thing to the collection of Things.
Public methodCode exampleAdd(String, String, String)
Adds a new Thing to the collection of Things.
Public methodGetEnumerator
Internal: Enumerator for Thing collection.
Public methodInventory
Public methodToString (Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventInventoryOverride
Used to override the default Inventory Text.
Top
See Also