cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
finite state curiosity
finite state curiosity
Nov 1, 2011 at 8:23pm UTC
Blessman11
(370)
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?
Nov 2, 2011 at 12:34am UTC
fafner
(377)
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.