makingthematrix / gailibrary

A very cheerful library for Artificial Intelligence in games
MIT License
7 stars 0 forks source link

the State enum (?) #13

Open makingthematrix opened 6 years ago

makingthematrix commented 6 years ago

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.

makingthematrix commented 6 years ago

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.