csharp
public sealed class GoapMemoryWhat one agent remembers about its planning between frames.
Remarks
The managed half, beside the agent's slot the way a BehaviorTreeInstance and a UtilityMemory are. A plan is a list and a request is a ticket, and neither goes in a chunk column.
Fields and properties (8)
public GoapPlan PlanThe plan, of which only the head is committed.
public GoapPlanRequest PendingThe resolve that has been asked for, or Null.
public float ElapsedSeconds since the plan was made.
public bool AskedWhether something asked for a re-plan.
public bool FinishedWhether the running step has just ended.
public bool FailedWhether it ended by failing.
public int CurrentWhich action of the domain is running, or -1.
public int PlansHow many plans it has had. Reads well in a log.
Methods (2)
public void Reset()Forgets everything, which is what a recycled agent slot needs.
public ReplanContext Describe()How its planning is going, as a policy is asked about it.
Used by (6)
- VillageTestsAiVillage.Agent.Tests
- AiSnapshotsVixen.Ai
- AiSystemVixen.Ai
- GoapAgentTestsVixen.Ai.Tests
- VillageSampleTestsVixen.Ai.Nodes.Tests
- AgentDebugModelVixen.Editor.Ai