Skip to content

feature!: MM clauses can access the current simulation state - #309

Merged
JavadocMD merged 4 commits into
2.0-betafrom
movement-and-sim-state
Aug 27, 2026
Merged

JavadocMD merged 4 commits into
2.0-betafrom
movement-and-sim-state

Conversation

@JavadocMD

Copy link
Copy Markdown
Contributor

(Slightly) breaking change due to the change in MovementClause's API. Since this is already breaking, I went ahead and eliminated SimulationTickFunction as it doesn't really make sense to add the 'available' param here. MovementClause is the only place it was used anyway, so this feels like a good code reduction.

@JavadocMD

JavadocMD commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Question: should we simplify the MM clause evaluate function signature by removing the star? (Making available a keyword-or-positional arg?) In retrospect I don't think we gain very much by making it keyword-only, and it's just added complexity.

@JavadocMD JavadocMD added this to the v2.0.0 milestone Aug 4, 2026
@JavadocMD
JavadocMD changed the base branch from main to 2.0-beta August 27, 2026 21:39
@JavadocMD
JavadocMD changed the base branch from 2.0-beta to main August 27, 2026 21:40
(Slightly) breaking change due to the change in MovementClause's API. Since this is already breaking, I went ahead and eliminated SimulationTickFunction as it doesn't really make sense to add the 'available' param here. MovementClause is the only place it was used anyway, so this feels like a good code reduction.
@JavadocMD
JavadocMD force-pushed the movement-and-sim-state branch from 88938fb to ea91885 Compare August 27, 2026 21:59
@JavadocMD
JavadocMD changed the base branch from main to 2.0-beta August 27, 2026 21:59
@JavadocMD
JavadocMD merged commit 6ebd69e into 2.0-beta Aug 27, 2026
3 checks passed
@JavadocMD
JavadocMD deleted the movement-and-sim-state branch August 27, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MovementModels can use the current simulation state in their calculations

1 participant