Skip to content

Improve the StateMachine to Support Parameters in Transitions #21

@rluders

Description

@rluders

📌 Description

The StateMachine currently handles state transitions well but does not allow additional information to be passed between states. We need to improve this functionality to allow parameters to be included.

🎯 Goals

  • Add parameter support for state transitions.
  • Improve state-to-state communication.
  • Create unit tests to ensure transitions work correctly.

📂 Related Files

  • state_machine/state_machine.gd
  • state_machine/state.gd

✅ Acceptance Criteria

  • States can receive parameters upon transition.
  • The StateMachine can store the last state.
  • A method exists to query the current state and its parameters.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions