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
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.
Check whether traveler can pass through this connector. If it can, return true; otherise explain why travel is disallowed and return nil.
Display some text explaining why traveler is not permitted to travel via connector when canTravelerPass() returns nil.
Adv3Lite Library Reference Manual
Generated on 25/04/2024 from adv3Lite version 2.0