states.c File Reference

Implements a system to use and switch between the different major game operating states. More...

#include <assert.h>
#include <stddef.h>
#include "bflderrstate.h"
#include "states.h"
#include "splashstate.h"
#include "gamestate.h"
#include "menustate.h"
#include "menu.h"

Include dependency graph for states.c:

Go to the source code of this file.

Functions

int GetCurrentState ()
 Returns the program's current operating state as defined in the STATE_CODES enum.
Bool RunState ()
 Runs the state system.
static int Stub ()
 A stub implementation for unimplemented states.

Variables

static int currState = STATE_SPLASH
 Stores the current operating state.
static Bool initalized = 0
 Tracks if the current state has been initalized.
static struct State_t stateImpls [STATE_MAX]
 The list of functions used for the operation state implementations.


Detailed Description

Implements a system to use and switch between the different major game operating states.

Author:
Jeff Jackowski (jeffj@ro.com)
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.c.


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