Actor

Class · class Actor: Thing · Source

A character that participates in travel, conversation and actor states.

Audience: author

Superclass: Thing

Declared members

  • canAccompanyTravel — method; Decide whether this actor may accompany a leader along this journey.
  • canStartJourney — method; A companion's own background agenda can still speak or do other work. Its travel waits for its leader, independent of declaration order.
  • curState — property; Current ActorState, selected by the library or setCurState.
  • desc — property; internal
  • idleTurn — method; Run background behaviour when the actor has no state turn hook.
  • isActor — property; internal
  • isFixed — property; internal
  • moveIntoForTravel — method; internal
  • obeyCommand — method; Whether this actor will do as it is told. The state decides.
  • posture — property; internal
  • presentation — property; internal
  • sayArriving — method; internal
  • sayDeparting — method; What the player sees when this actor leaves, and when one arrives.
  • scriptedTravelTo — method; internal
  • setCurState — method; Change actor state, invoking deactivation and activation hooks.
  • talkedThisTurn — property; Whether this actor has spoken this turn, for a ConvAgendaItem.
  • travelAlone — method; Internal: the party has already been gathered and admitted.
  • travelCycle — property; internal
  • travelParty — method; Internal: eligibility has been checked exactly once for this journey.
  • travelTo — method; internal

Inherited members

Member details

canAccompanyTravel

canAccompanyTravel(leader, conn, dest) · Source

Decide whether this actor may accompany a leader along this journey.

canStartJourney

canStartJourney() · Source

A companion's own background agenda can still speak or do other work. Its travel waits for its leader, independent of declaration order.

curState

curState = nil · Source

Current ActorState, selected by the library or setCurState.

desc

desc = nil · Source

Said instead of desc while in a state that has its own.

desc ="<<name>> is here. " · Source

Internal implementation detail; no supported authoring contract is documented.

idleTurn

idleTurn() · Source

Run background behaviour when the actor has no state turn hook.

isActor

isActor = true · Source

Internal implementation detail; no supported authoring contract is documented.

isFixed

isFixed = true · Source

Internal implementation detail; no supported authoring contract is documented.

moveIntoForTravel

moveIntoForTravel(room) · Source

Internal implementation detail; no supported authoring contract is documented.

obeyCommand

obeyCommand(issuer, a) · Source

Whether this actor will do as it is told. The state decides.

posture

posture = standing · Source

Internal implementation detail; no supported authoring contract is documented.

presentation

presentation = [&name, &isOpen, &isOpenable, &isContainer, &isLit, &isLightSource, &isFixed, &isDecoration, &isTransparent, &isHidden, &bulk, &bulkCapacity, &objPos, &curState] · Source

Internal implementation detail; no supported authoring contract is documented.

sayArriving

sayArriving(fromWay, conn) · Source

Internal implementation detail; no supported authoring contract is documented.

sayDeparting

sayDeparting(way, conn) · Source

What the player sees when this actor leaves, and when one arrives.

scriptedTravelTo

scriptedTravelTo(dest) · Source

Internal implementation detail; no supported authoring contract is documented.

setCurState

setCurState(state) · Source

Change actor state, invoking deactivation and activation hooks.

talkedThisTurn

talkedThisTurn = nil · Source

Whether this actor has spoken this turn, for a ConvAgendaItem.

travelAlone

travelAlone(dest, conn) · Source

Internal: the party has already been gathered and admitted.

travelCycle

travelCycle = -1 · Source

Internal implementation detail; no supported authoring contract is documented.

travelParty

travelParty(dest, conn, escort) · Source

Internal: eligibility has been checked exactly once for this journey.

travelTo

travelTo(dest, conn) · Source

Internal implementation detail; no supported authoring contract is documented.