AgendaItem : object
| [Previous] [Main] [Next] |
· | isReady - this property/method must return true for the AgendaItem to be considered active. By default, this is simply true, but you can override it with a condition that becomes true under certain circumstances, or else start it at nil and then set it to true in some other part of the game code.
|
· | invokeItem - the method that is called when this AgendaItem is executed. Override this method to perform whatever actions you want performed when this AgendaItem is invoked.
|
· | isDone - when this becomes true the AgendaItem is removed from the actor's list of current AgendaItems. This can be set to a declarative condition (or method) that returns true when certain circumstances obtain, or can be set to true in code (typically by a statement such as isDone = true within invokeItem).
|
· | initiallyActive - Override this to true to make the item initially active; it will then be added to the actor's agenda during the game's initialization.
|
· | agendaOrder - The ordering of the item relative to other agenda items. When we choose an agenda item to execute, we always choose the lowest numbered item that's ready to run. You can leave this with the default value (100) if you don't care about the order.
|
· | getActor() - returns the actor to which this AgendaItem belongs (effectively returns the location property of the AgendaItem).
|
· | resetItem() - resets isDone to nil if isDone is not a method. This is called whenever an AgendaItem is added to an actor's agendaList, and thus makes it easier to re-use an AgendaItem.
|