Splash State
[Operating States]

Collaboration diagram for Splash State:

Implements the Splash Screen. More...


Files

file  splashstate.c
 Implements the operating state for the splash screen (STATE_CODES::STATE_SPLASH).
file  splashstate.h
 Defines the functions used for STATE_CODES::STATE_SPLASH.

Functions

static void BfldErrResize ()
 Places the text used on the splash screen.
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

Uint32 startTime
 The time when the splash screen was initalized.

Detailed Description

Implements the Splash Screen.

Todo:
Change the name to Title screen state.

Function Documentation

static void BfldErrResize (  )  [static]

Places the text used on the splash screen.

The positioning adjusts with the size of the window or full-screen display.

Author:
Jeff Jackowski

Definition at line 53 of file bflderrstate.c.

References AddRenderItem(), background, bfErr, BOTTOM_MARGIN, COLOR_TEXT, colorFmtInd, dInfo, FONT_SCORE, LAYER_TEXT, RenderItem_t::loc, DisplayInfo_t::luw, BattleFieldError_t::msg, DisplayInfo_t::ph, PlaceRenderItem(), DisplayInfo_t::pw, SetupColorVals(), Player_t::tank, tanks, TEXTITEM_ERRCONT, TEXTITEM_ERROR, TEXTITEM_TITLE, textItems, TextRenderString(), and TOP_MARGIN.

Referenced by BfldErrInit(), and BfldErrRun().

Here is the call graph for this function:

int SplashInit (  ) 

Initalizes the data needed for the splash screen.

Returns:
True on sucess, false if there was an error.
Author:
Jeff Jackowski

Definition at line 104 of file splashstate.c.

References AddRenderItem(), background, COLOR_BLACK, COLOR_REGBACK, COLOR_TEXT, colorFmtInd, colorVals, dInfo, DrawTank(), LAYER_BACKGROUND, LAYER_TANKS, DisplayInfo_t::lh, DisplayInfo_t::luh, DisplayInfo_t::luw, DisplayInfo_t::lw, DisplayInfo_t::ph, DisplayInfo_t::pw, RenderItem_t::renderer, Player_t::rot, SolidFillRenderer(), SplashResize(), startTime, STATE_ERROR, STATE_OK, Player_t::tank, tanks, Player_t::team, and TextSetupStateSplash().

Here is the call graph for this function:

static void SplashResize (  )  [static]

Places the text used on the splash screen.

The positioning adjusts with the size of the window or full-screen display.

Author:
Jeff Jackowski

Definition at line 54 of file splashstate.c.

References background, BOTTOM_MARGIN, dInfo, RenderItem_t::loc, DisplayInfo_t::luw, DisplayInfo_t::ph, PlaceRenderItem(), DisplayInfo_t::pw, SetupColorVals(), Player_t::tank, tanks, TEXTITEM_AUTH, TEXTITEM_COPYRIGHT, TEXTITEM_GPL, TEXTITEM_TITLE, TEXTITEM_TRANS, textItems, and TOP_MARGIN.

Referenced by SplashInit(), and SplashRun().

Here is the call graph for this function:

int SplashRun (  ) 

Displays the splash screen, starts loading media needed for the menu, and starts the attempt to connect to a server.

Returns:
True on sucess, false if there was an error.
Author:
Jeff Jackowski

Definition at line 152 of file splashstate.c.

References ProcessNetworkMessages(), ResizeWindow(), SplashResize(), startTime, STATE_MENUROOT, STATE_QUIT, and STATE_SPLASH.

Here is the call graph for this function:

int SplashUninit (  ) 

Unloads the media needed for the splash screen.

Returns:
True on sucess, false if there was an error.
Author:
Jeff Jackowski

Definition at line 138 of file splashstate.c.

References background, RenderItem_t::data, GenericSurfaceRenderer(), RemoveRenderItem(), RenderItem_t::renderer, STATE_OK, tanks, and TextUnsetState().

Here is the call graph for this function:


Variable Documentation

Uint32 startTime

The time when the splash screen was initalized.

Definition at line 41 of file splashstate.c.

Referenced by BfldErrInit(), BfldErrRun(), SplashInit(), and SplashRun().


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