Vixen
caa30e12
csharp
public sealed class GoapMemory

What one agent remembers about its planning between frames.

Read the guide page for this →

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 Plan

    The plan, of which only the head is committed.

  • public GoapPlanRequest Pending

    The resolve that has been asked for, or Null.

  • public float Elapsed

    Seconds since the plan was made.

  • public bool Asked

    Whether something asked for a re-plan.

  • public bool Finished

    Whether the running step has just ended.

  • public bool Failed

    Whether it ended by failing.

  • public int Current

    Which action of the domain is running, or -1.

  • public int Plans

    How 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 (5)

  • AiSnapshotsVixen.Ai
  • AiSystemVixen.Ai
  • GoapAgentTestsVixen.Ai.Tests
  • VillageSampleTestsVixen.Ai.Nodes.Tests
  • AgentDebugModelVixen.Editor.Ai