DelayedAgendaItemclassactor.t[6715]

A delayed agenda item. This type of item becomes ready to execute when the game clock reaches a given turn counter.

class DelayedAgendaItem :   AgendaItem

Superclass Tree   (in declaration order)

DelayedAgendaItem
        AgendaItem
                object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

isReady  readyTime 

Inherited from AgendaItem :
agendaOrder  calledBy  endCondition  executeOnce  initiallyActive  invokedByActor  isDone  name 

Summary of Methods  

setDelay 

Inherited from AgendaItem :
actorSay  getActor  invokeItem  invokeItemBase  registerItem  report  resetItem 

Properties  

isReadyOVERRIDDENactor.t[6717]

we're ready if the game clock time has reached our ready time

readyTimeactor.t[6720]
the turn counter on the game clock when we become ready

Methods  

setDelay (turns)actor.t[6731]

Set our ready time based on a delay from the current time. We'll become ready after the given number of turns elapses. For convenience, we return 'self', so a delayed agenda item can be initialized and added to an actor's agenda in one simple operation, like so:

actor.addToAgenda(item.setDelay(1));

Adv3Lite Library Reference Manual
Generated on 03/07/2024 from adv3Lite version 2.1