jeaye / q3

A Quake 3 like game with voxelized, destructible maps; written in Rust
BSD 3-Clause "New" or "Revised" License
500 stars 25 forks source link

Game state director doesn't manage states well #32

Closed jeaye closed 11 years ago

jeaye commented 11 years ago

I specifically want to be able to swap states, or pop a specific state. This should be done by each state having a tag (enum) so that it can be referenced quickly. It's O(n), but n is pretty damn small.