Raymond Maarloeve
Loading...
Searching...
No Matches
IDecisionSystem Interface Reference

Interface for a decision-making system for NPCs. More...

Public Member Functions

void Setup (NPC npc)
 Sets up the decision-making system with the provided NPC.
 
IDecision Decide ()
 Decides the NPC's next action.
 
void CalculateRelevance (string newMemory, Action< int > relevanceFunc)
 Requests a calculation of relevance from the LLM server based on the current environment and NPC state.
 

Detailed Description

Interface for a decision-making system for NPCs.

Member Function Documentation

◆ CalculateRelevance()

void IDecisionSystem.CalculateRelevance ( string  newMemory,
Action< int >  relevanceFunc 
)

Requests a calculation of relevance from the LLM server based on the current environment and NPC state.

Parameters
newMemoryNew obtained memory to process
relevanceFuncDelegate which will be called when the value is calculated.

Implemented in LlmDecisionMaker, and NullDecisionSystem.

◆ Decide()

IDecision IDecisionSystem.Decide ( )

Decides the NPC's next action.

Returns
An implementation of IDecision representing the NPC's next action.

Implemented in LlmDecisionMaker, and NullDecisionSystem.

◆ Setup()

void IDecisionSystem.Setup ( NPC  npc)

Sets up the decision-making system with the provided NPC.

Parameters
npcThe NPC that will use this decision-making system.

Implemented in LlmDecisionMaker, and NullDecisionSystem.


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