Raymond Maarloeve
Loading...
Searching...
No Matches
ChatDecision Class Reference

Represents a decision for an NPC to walk to a random destination within a specified radius. More...

Public Member Functions

string DebugInfo ()
 Gets debug information about the current destination.
 
 ChatDecision (NPC npc, IChattable otherNpc, bool interrupted)
 Initializes a new instance of the ChatDecision class.
 
void Start ()
 Starts the walking decision by setting the NPC's NavMeshAgent destination.
 
void FinishChatting ()
 Starts concluding the conversation.
 
void Finish ()
 Finishes the decision by resetting the NPC's NavMeshAgent path.
 
bool Tick ()
 Updates the decision logic. Checks if the NPC has reached its destination.
 
void Chat (string message)
 Generates response to message.
 
void Chat (string message)
 
void FinishChatting ()
 
void Start ()
 Initializes the decision action. Implementation should begin execution of the decision logic.
 
void Finish ()
 Finalizes the decision action. Implementation should clean up any resources or state related to the decision.
 
bool Tick ()
 Executes the decision logic and determines the outcome.
 
string DebugInfo ()
 Provides debugging information for the decision.
 

Properties

string PrettyName [get]
 Gets the pretty name of the decision for LLM inference purposes.
 
- Properties inherited from IDecision
string PrettyName [get]
 Gets the human-readable description of the decision.
 

Detailed Description

Represents a decision for an NPC to walk to a random destination within a specified radius.

Constructor & Destructor Documentation

◆ ChatDecision()

ChatDecision.ChatDecision ( NPC  npc,
IChattable  otherNpc,
bool  interrupted 
)

Initializes a new instance of the ChatDecision class.

Parameters
npcThe associated with this decision.
Parameters
otherNpcThe this NPC is talking to

Member Function Documentation

◆ Chat()

void ChatDecision.Chat ( string  message)

Generates response to message.

Todo:
: Parse incoming message
Todo:
: Generate response

Implements IChatDecision.

◆ DebugInfo()

string ChatDecision.DebugInfo ( )

Gets debug information about the current destination.

Returns
A string containing the current destination.

Implements IDecision.

◆ Finish()

void ChatDecision.Finish ( )

Finishes the decision by resetting the NPC's NavMeshAgent path.

Implements IDecision.

◆ FinishChatting()

void ChatDecision.FinishChatting ( )

Starts concluding the conversation.

Implements IChatDecision.

◆ Start()

void ChatDecision.Start ( )

Starts the walking decision by setting the NPC's NavMeshAgent destination.

Implements IDecision.

◆ Tick()

bool ChatDecision.Tick ( )

Updates the decision logic. Checks if the NPC has reached its destination.

Returns
False if the walk is finished; otherwise, true.

Implements IDecision.

Property Documentation

◆ PrettyName

string ChatDecision.PrettyName
get

Gets the pretty name of the decision for LLM inference purposes.

Implements IDecision.


The documentation for this class was generated from the following file: