states.h

Go to the documentation of this file.
00001 
00025 #include "bool.h"
00026 
00045 enum STATE_CODES {
00049     STATE_ERROR = -2,
00053     STATE_QUIT,
00059     STATE_SPLASH,
00064     STATE_MENUROOT,
00068     STATE_MENUNAME,
00073     STATE_MENUNET,
00078     STATE_MENUCONN,
00083     STATE_SHOWOPTS,
00090     STATE_PLAY,
00095     STATE_BFLDERR,
00100     STATE_DISCONN,
00104     STATE_MAX,
00108     STATE_OK
00109 };
00110 
00116 typedef int (*StateFunc)();
00117 
00122 struct State_t {
00129     StateFunc init;
00139     StateFunc run;
00147     StateFunc uninit;
00148 };
00149 
00156 int GetCurrentState();
00157 
00174 Bool RunState();
00175 

Generated on Mon May 28 04:41:39 2007 for Retro Tank Super Attack by  doxygen 1.5.2