finite state curiosity

hi

if I had two or more states like so:

STATE_MONKEY STATE_BABOON STATE_MAN

and one draw function().

How would I make sure that the active state would be drawn when called? Would I have put all the individual draw functions in the main draw function & making each draw check whether its state is active?


If I understand correctly, you could either pass the active state to the function, or store it in some global variable.
Topic archived. No new replies allowed.