TravelerDirectlyInRoomclass
Pre-condition: the traveler is directly in the given room. This will attempt to remove the traveler from any nested rooms within the given room, but cannot perform travel between rooms not related by containment.
Note that the traveler is not necessarily the actor, because the actor could be in a vehicle.
This is a class, because it has to be instantiated with more parameters than just a single ‘obj’ passed by default when evaluating preconditions. In particular, we need to know the actor performing the travel, the connector being traversed, and the room we need to be directly in.
class
TravelerDirectlyInRoom
:
PreCondition
Superclass Tree (in declaration order)
TravelerDirectlyInRoom
PreCondition
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Inherited from PreCondition
:
preCondOrder
Summary of Methods
Inherited from PreCondition
:
verifyPreCondition
Properties
actor_
the actor doing the travel
conn_
the connector being traversed
loc_
the room we need to be directly in
Methods
checkPreCondition (obj, allowImplicit)
OVERRIDDEN
remember the actor, connector, and room
construct (actor, conn, loc)
no description available
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3