QSenseRegionobject
This Special redefines canHear, canSee, canSmell, canTalkTo and canThrowTo to take account of possible sensory connections across rooms in a SenseRegion
QSenseRegion
:
Special
Superclass Tree (in declaration order)
QSenseRegion
Special
` object`
Summary of Properties
Inherited from Special
:
all
allActive_
Summary of Methods
canHear
canSee
canSmell
canTalkTo
canThrowTo
nonBlocker
reachBlocker
Inherited from Special
:
allActive
classInit
first
next
Properties
active
OVERRIDDEN
This Special should be active whenever this module is included.
priority
OVERRIDDEN
Gives this Special a slightly higher priority than QDefaults, so that it takes priority.
Methods
canHear (a, b)
Can A hear B? We return true if there’s a clear sound path from A to B.
canSee (a, b)
Can A see B? We return true if and only if B is in light and there’s a clear sight path from A to B.
canSmell (a, b)
Can A smell B? We return true if there’s a clear scent path from A to B.
canTalkTo (a, b)
For A to be able to talk to B, A must both be able to hear B and either be in the same room as B or in a room that’s close enough to be able to converse with B
canThrowTo (a, b)
Can A throw an object to B?
nonBlocker (o, b)
Is o the kind of object that would block movement from one room to the room containing b? It is unless o is a room and the room and b are both in a SenseRegion for which autoGoTo is true.
reachBlocker (a, b)
Determine if A can reach B, and if not, what stands in the way. Returns a list of containers along the path between A and B that obstruct the reach. If the two objects are in separate rooms, the top-level room containing A is in the list to represent the room separation. If there’s no obstruction, we return an empty list.
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1