QSenseRegionobject | senseRegion.t[1379]

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

`active priority`

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 | `senseRegion.t[1388]`

This Special should be active whenever this module is included.

`priority` OVERRIDDEN | `senseRegion.t[1385]`

Gives this Special a slightly higher priority than QDefaults, so that it takes priority.

Methods

`canHear (a, b)` | `senseRegion.t[1440]`

Can A hear B? We return true if there's a clear sound path from A to B.

`canSee (a, b)` | `senseRegion.t[1395]`

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)` | `senseRegion.t[1485]`

Can A smell B? We return true if there's a clear scent path from A to B.

`canTalkTo (a, b)` | `senseRegion.t[1531]`

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)` | `senseRegion.t[1554]`

Can A throw an object to B?

`nonBlocker (o, b)` | `senseRegion.t[1601]`

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)` | `senseRegion.t[1582]`

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