State should be jut an integer. It's meaning in the GAI context depends on the value it is used as.
Is it possible to have a type alias on integers, but which would prevent mathematical operations?
Or would it be better to have an actual enum?... But then the game programmers have to be able to expand it.
Pushed back to _ToDo. I don't delete it yet, but it's possible that a graph working as a state diagram will be a much better solution. I'll think about it when the graph part is done.
State
should be jut an integer. It's meaning in the GAI context depends on the value it is used as.Is it possible to have a type alias on integers, but which would prevent mathematical operations? Or would it be better to have an actual enum?... But then the game programmers have to be able to expand it.