(more persistent) states (state machines) for active ships #10042
Labels
enhancement
A suggestion for new content or functionality that requires code changes
mechanics
Things dealing with the mechanics & code of how the game works
Problem Description
Ships are currently governed by a large set of booleans and target-pointers to determine what a ship is doing and that get evaluated each frame. I feel that moving to state-machines will help improve readability and will allow new features more easily.
Related Issue Links
Some examples of where I expect that the use of state-machines will help:
Desired Solution
Using a state machine will likely improve the readability and clarity of the code, and might also help to add some newer features. The different states would typically be implemented as an enum.
Alternative Approaches
Continuing with booleans as we do now is an alternative.
There was also discussion some time in the past to not only have state machines for individual ships, but to also have state-machines for governments. (Affecting government behavior and allowing governments to influence their ships.)
I feel that state machines on ships would be a good starting point, before deploying such a feature at other places.
Additional Context
No response
The text was updated successfully, but these errors were encountered: