Skip to content

Add GOAP tests and selector condition filtering#291

Closed
TheShuEd wants to merge 8 commits into
masterfrom
ed-07-06-2026-goap-selector
Closed

Add GOAP tests and selector condition filtering#291
TheShuEd wants to merge 8 commits into
masterfrom
ed-07-06-2026-goap-selector

Conversation

@TheShuEd

@TheShuEd TheShuEd commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

About the PR

GOAP agents can now select targets based on conditions

TheShuEd added 2 commits June 7, 2026 17:40
Add CEGOAP integration tests (CEGOAPTests) covering basic attack and condition-based target selection, and remove the now-redundant CERatAttackTest. Refactor GOAP target selectors by introducing a Conditions list on CEGOAPTargetSelector and helper methods PassesConditions/GetFilteredEnemies to pre-filter alive candidates that meet selector conditions. Update CEGOAPSelectorNearestEnemy and CEGOAPSelectorRandomEnemy to use the new filtering and clean up unused dependencies/usings. These changes enable selectors to skip candidates based on entity conditions (e.g. health) and validate that behavior with tests.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@TheShuEd TheShuEd closed this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant