#include "bool.h"
Include dependency graph for states.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | State_t |
A set of function pointers to functions that implement an operating state. More... | |
Typedefs | |
typedef int(*) | StateFunc () |
The function prototype for all implementations of the different operating states. | |
Enumerations | |
enum | STATE_CODES { STATE_ERROR = -2, STATE_QUIT, STATE_SPLASH, STATE_MENUROOT, STATE_MENUNAME, STATE_MENUNET, STATE_MENUCONN, STATE_SHOWOPTS, STATE_PLAY, STATE_BFLDERR, STATE_DISCONN, STATE_MAX, STATE_OK } |
Enumerates the different operating states of the game. More... | |
Functions | |
int | GetCurrentState () |
Returns the program's current operating state as defined in the STATE_CODES enum. | |
Bool | RunState () |
Runs the state system. |
Copyright (C) 2007 Jeff Jackowski
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at: http://www.gnu.org/
Definition in file states.h.