-
class Controller:
Component¶ Defines what an actor does on its turn.
-
blackboard:
table|nil¶
-
decide(self:
Controller, level:any, actor:any, decision:any):unknown¶
-
act(self:
Controller, level:Level, actor:Actor):Action¶ Returns the
Actionthat the actor will take on its turn. This should not modify theLeveldirectly.
-
__new(self:
Object, ...:any)¶ The default constructor for the class. Subclasses should override this.
Other members:
Inherited from
Component:applyDiff(),checkRequirements(),clone(),diff(),getBase(),getRequirements(),owner,requirementsInherited from
Object:_serializationBlacklist,adopt(),assertType(),className,deepcopy(),deserialize(),extend(),instanceOf(),is(),isInstance(),mixin(),prettyprint(),serializationBlacklist,serialize()-
blackboard: