TravelerDirectlyInRoomclass

precond.t[277]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

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  

actor_ conn_ loc_

Inherited from PreCondition :
preCondOrder

Summary of Methods  

checkPreCondition construct

Inherited from PreCondition :
verifyPreCondition

Properties  

actor_

precond.t[294]

the actor doing the travel

conn_

precond.t[297]

the connector being traversed

loc_

precond.t[300]

the room we need to be directly in

Methods  

checkPreCondition (obj, allowImplicit)OVERRIDDEN

precond.t[286]

remember the actor, connector, and room

construct (actor, conn, loc)

precond.t[278]

no description available

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3