HermitActorStateclassactor.t[4804]

A "hermit" actor state is a state where the actor is unresponsive to conversational overtures (ASK ABOUT, TELL ABOUT, HELLO, GOODBYE, YES, NO, SHOW TO, GIVE TO, and any orders directed to the actor). Any attempt at conversation will be met with the 'noResponse' message.

class HermitActorState :   ActorState

Superclass Tree   (in declaration order)

HermitActorState
       
ActorState
                TravelMessageHandler
                        object
                ActorTopicDatabase
                        TopicDatabase
                                object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

Inherited from ActorState :
autoSuggest  getImpliedConvState  isInitState  location  stateDesc  stateSuggestedTopics 

Inherited from ActorTopicDatabase :
askForTopics  askTopics  commandTopics  giveTopics  initiateTopics  miscTopics  showTopics  specialTopics  tellTopics 

Inherited from TopicDatabase :
limitSuggestions  suggestedTopics  topicGroupActive  topicGroupScoreAdjustment 

Summary of Methods  

handleConversation  noResponse 

Inherited from ActorState :
activateState  afterAction  afterTravel  arrivingTurn  arrivingWithDesc  beforeAction  beforeTravel  construct  deactivateState  distantSpecialDesc  endConversation  getActor  getNominalTraveler  getSuggestedTopicList  getTopicOwner  initializeActorState  justFollowed  notifyTopicResponse  obeyCommand  remoteSpecialDesc  showSpecialDescInContents  specialDesc  specialDescListWith  suggestTopicsFor  takeTurn 

Inherited from TravelMessageHandler :
sayArriving  sayArrivingDir  sayArrivingDownStairs  sayArrivingLocally  sayArrivingThroughPassage  sayArrivingUpStairs  sayArrivingViaPath  sayDeparting  sayDepartingDir  sayDepartingDownStairs  sayDepartingLocally  sayDepartingThroughPassage  sayDepartingUpStairs  sayDepartingViaPath  sayTravelingRemotely 

Inherited from ActorTopicDatabase :
initiateTopic  showTopicResponse 

Inherited from TopicDatabase :
addSuggestedTopic  addTopic  addTopicToList  findTopicResponse  handleTopic  removeSuggestedTopic  removeTopic  removeTopicFromList  showSuggestedTopicList 

Properties  

(none)

Methods  

handleConversation (otherActor, topic, convType)OVERRIDDENactor.t[4827]

all conversation actions get the same default response

noResponse ( )actor.t[4824]
Show our response to any conversational command. We'll simply show the standard "there's no response" message by default, but subclasses can (and usually should) override this to explain what's really going on. Note that this routine will be invoked for any sort of conversation command, so any override needs to be generic enough that it's equally good for ASK, TELL, and everything else.

Note that it's fairly easy to create a shuffled list of random messages, if you want to add some variety to the actor's responses. To do this, use an embedded ShuffledEventList:

myState: HermitActorState
noResponse() { myList.doScript(); }
myList: ShuffledEventList {
['message1', 'message2', 'message3'] }
;

TADS 3 Library Manual
Generated on 9/8/2006 from TADS version 3.0.11