ThingPutInRoom Method (Room) |  |
Hartismere School[This is preliminary documentation and is subject to change.]
Note: This API is now obsolete.
Move the Thing into a room
Namespace: EJW.TextBasedAdventureAssembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax[ObsoleteAttribute]
public Thing PutInRoom(
Room Room
)
<ObsoleteAttribute>
Public Function PutInRoom (
Room As Room
) As Thing
public:
[ObsoleteAttribute]
Thing^ PutInRoom(
Room^ Room
)
[<ObsoleteAttribute>]
member PutInRoom :
Room : Room -> Thing
Parameters
- Room
- Type: EJW.TextBasedAdventureRoom
The Room to put the Thing in.
Return Value
Type:
ThingThe Thing
RemarksThe Thing is moved regardless of whether it can be moved or not.
ExamplesTo put a hat into a room...
Game g = new Game( "Demo" );
g.Things.Add("hat");
g.Things["hat"].PutInRoom( g.Rooms["kitchen"] );
See Also