splashstate.c File Reference

Implements the operating state for the splash screen (STATE_CODES::STATE_SPLASH). More...

#include <SDL_image.h>
#include <string.h>
#include <stdlib.h>
#include "states.h"
#include "color.h"
#include "obstacle.h"
#include "tanksprite.h"
#include "message.h"

Include dependency graph for splashstate.c:

Go to the source code of this file.

Functions

int SplashInit ()
 Initalizes the data needed for the splash screen.
static void SplashResize ()
 Places the text used on the splash screen.
int SplashRun ()
 Displays the splash screen, starts loading media needed for the menu, and starts the attempt to connect to a server.
int SplashUninit ()
 Unloads the media needed for the splash screen.

Variables

RenderItem background
 The background image.
Uint32 startTime
 The time when the splash screen was initalized.
Playertanks
 A couple of Players used to draw tanks on the screen.


Detailed Description

Implements the operating state for the splash screen (STATE_CODES::STATE_SPLASH).

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 splashstate.c.


Variable Documentation

Player* tanks

A couple of Players used to draw tanks on the screen.

Definition at line 46 of file splashstate.c.

Referenced by BfldErrInit(), BfldErrResize(), BfldErrRun(), BfldErrUninit(), SplashInit(), SplashResize(), and SplashUninit().


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