TravelBarrierclass | travel.t[1399]

A TravelBarrier is an object that can optionally be associated with one or more TravelConnectors to define additional conditional (or even unconditional) barriers preventing travel.

`class TravelBarrier : object`

Superclass Tree (in declaration order)

`TravelBarrier`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

``

(none)

Summary of Methods

`canTravelerPass checkTravelBarrier explainTravelBarrier`

Properties

(none)

Methods

`canTravelerPass (traveler, connector)` | `travel.t[1407]`

This method should return true to permit the traveler to travel via connector and nil to prohibit travel. By default we simply allow travel but particular instances will need to override this method to specify the conditions under which travel is or is not permitted.

`checkTravelBarrier (traveler, connector)` | `travel.t[1424]`

Check whether traveler can pass through this connector. If it can, return true; otherise explain why travel is disallowed and return nil.

`explainTravelBarrier (traveler, connector)` | `travel.t[1416]`

Display some text explaining why traveler is not permitted to travel via connector when canTravelerPass() returns nil.

Adv3Lite Library Reference Manual
Generated on 28/03/2016 from adv3Lite version 1.5