Represents a decision for an NPC to walk to a random destination within a specified radius.
More...
|
| 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.
|
| |
|
| string | PrettyName [get] |
| | Gets the pretty name of the decision for LLM inference purposes.
|
| |
| string | PrettyName [get] |
| | Gets the human-readable description of the decision.
|
| |
Represents a decision for an NPC to walk to a random destination within a specified radius.
◆ ChatDecision()
| ChatDecision.ChatDecision |
( |
NPC |
npc, |
|
|
IChattable |
otherNpc, |
|
|
bool |
interrupted |
|
) |
| |
Initializes a new instance of the ChatDecision class.
- Parameters
-
◆ Chat()
| void ChatDecision.Chat |
( |
string |
message | ) |
|
◆ 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 |
( |
| ) |
|
◆ 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.
◆ 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:
- RaymondMaarloeve/Assets/Scripts/NPC/DecisionSystem/Decisions/ChatDecision.cs