public sealed class GoapActionOne thing an agent can do, and what it needs and changes.
Remarks
doc 37 § D2 again: Action is an index into the world's AgentActionRegistry, the same thing a behaviour-tree task and a utility action name.
⚠ BaseCost is what a designer tunes and the distance is what the world adds. An action set whose costs are all one plans by depth, which is the default and is usually right; a set that wants "shooting is cheaper than punching" says so here rather than in a heuristic.
Fields and properties (8)
public Symbol NameWhat it is called.
public ushort ActionWhich action it runs.
public GoapCondition[] ConditionsWhat has to be true before it can run.
public GoapEffect[] EffectsWhat it changes.
public float BaseCostWhat it costs before the world has its say.
public Symbol TargetWhich target sensor says where it happens, or none.
public float StoppingDistanceHow close is close enough, in metres.
public GoapMoveMode MoveWhether the agent has to be there first.
Methods (2)
public GoapAction(Symbol name, ushort action, GoapCondition[] conditions, params GoapEffect[] effects)Creates an action.
public bool Serves(in GoapCondition condition)Whether this action can serve a condition.
Used by (20)
- AiSnapshotsVixen.Ai
- AiSystemVixen.Ai
- FlatCostModelVixen.Ai
- GoapBudgetTestsVixen.Ai.Tests
- GoapCostTestsVixen.Ai.Tests
- GoapDomainVixen.Ai
- GoapDomainContentCompilerVixen.Ai
- GoapDomainTestsVixen.Ai.Tests
- GoapPearTestsVixen.Ai.Tests
- GoapPlannerVixen.Ai
- GoapReplanTestsVixen.Ai.Tests
- GoapSnapshotVixen.Ai
- GoapThroughputTestsVixen.Ai.Tests
- IActionCostModelVixen.Ai
- NavigationCostModelVixen.Ai.Nodes
- StraightLineCostModelVixen.Ai
- VillageVixen.Ai.Nodes.Tests
- VillageSampleTestsVixen.Ai.Nodes.Tests
- GoapGraphProjectionVixen.Editor.Ai
- LiveAgentVixen.Editor.AssetEditors.Tests