GameSettings Class Reference

Holds settings for the brickout redux game. More...

#include <Game/GameSettings.h>

List of all members.

Public Member Functions

 GameSettings ()
 Constructor.
bool Load (const char *configFile)
 Loads a game config file.
const char * DefaultLevelListFile () const
const char * LevelFontFile () const
const char * MultiplierFontFile () const
int LevelFontSize () const
int MultiplierFontSize () const
const char * LaunchArrowImage () const
float LaunchArrowHeight () const
float LaunchArrowFadeTime () const
float BallFadeInTime () const
float BallLaunchSpeed () const
float BallMinSpeed () const
float BallMaxSpeed () const
float PowerUpProbability () const
float MultiplierTime () const
float StuckBallFixTime () const
const Point2fPaddleStartPosition () const
const char * DefaultPaddleBaseImage () const
const char * DefaultPaddleBaseStickyImage () const
const char * DefaultPaddleThrusterImage () const
const char * DefaultPaddleShape () const
float DefaultPaddleWidth () const
float DefaultPaddleMinWidth () const
float DefaultPaddleMaxWidth () const
int DefaultPaddleGrowIncrements () const
float DefaultPaddleThrusterWidth () const
float DefaultPaddleThrusterHeight () const
const char * BallImage () const
float BallRadius () const
const char * HighScoresFontFile () const
int HighScoresFontSize () const
int HighScoresHeaderFontSize () const
int HighScoresCount () const

Detailed Description

Holds settings for the brickout redux game.


Member Function Documentation

float GameSettings::BallFadeInTime (  )  const [inline]

The time it takes to fade in the ball.

const char* GameSettings::BallImage (  )  const [inline]

The ball image.

float GameSettings::BallLaunchSpeed (  )  const [inline]

The speed to launch the ball.

float GameSettings::BallMaxSpeed (  )  const [inline]

The maximum speed the ball can have when active.

float GameSettings::BallMinSpeed (  )  const [inline]

The minimum speed the ball can have when active.

float GameSettings::BallRadius (  )  const [inline]

The default radius of the ball.

const char* GameSettings::DefaultLevelListFile (  )  const [inline]

The default level list file.

const char* GameSettings::DefaultPaddleBaseImage (  )  const [inline]

The base image for the default paddle.

const char* GameSettings::DefaultPaddleBaseStickyImage (  )  const [inline]

The base image for the default paddle when its sticky.

int GameSettings::DefaultPaddleGrowIncrements (  )  const [inline]

The number of times the paddle can grow/shrink untill reaching the paddles max/min widths.

float GameSettings::DefaultPaddleMaxWidth (  )  const [inline]

The maximum width for the default paddle.

float GameSettings::DefaultPaddleMinWidth (  )  const [inline]

The minimum width for the default paddle.

const char* GameSettings::DefaultPaddleShape (  )  const [inline]

The shape file for the default paddle.

float GameSettings::DefaultPaddleThrusterHeight (  )  const [inline]

The height for the default paddle thruster.

const char* GameSettings::DefaultPaddleThrusterImage (  )  const [inline]

The thruster image for the default paddle.

float GameSettings::DefaultPaddleThrusterWidth (  )  const [inline]

The width for the default paddle thruster.

float GameSettings::DefaultPaddleWidth (  )  const [inline]

The width for the default paddle.

int GameSettings::HighScoresCount (  )  const [inline]

The number of high scores to display.

const char* GameSettings::HighScoresFontFile (  )  const [inline]

The high scores font.

int GameSettings::HighScoresFontSize (  )  const [inline]

The high scores font size.

int GameSettings::HighScoresHeaderFontSize (  )  const [inline]

The high scores font size for header text.

float GameSettings::LaunchArrowFadeTime (  )  const [inline]

The time it takes to fade in/out the launch arrow.

float GameSettings::LaunchArrowHeight (  )  const [inline]

The height of the launch arrow.

const char* GameSettings::LaunchArrowImage (  )  const [inline]

The image used when the ball is attached to the paddle.

const char* GameSettings::LevelFontFile (  )  const [inline]

The font file the level uses.

int GameSettings::LevelFontSize (  )  const [inline]

The size of the font the level uses.

bool GameSettings::Load ( const char *  configFile  ) 

Loads a game config file.

Parameters:
[in] configFile the name of the config file to load settings from.
Returns:
true if the config file was loaded, false otherwise.

NOTE: Multiples file can be loaded consecutively.

const char* GameSettings::MultiplierFontFile (  )  const [inline]

The font file the multiplier timer uses.

int GameSettings::MultiplierFontSize (  )  const [inline]

The size of the font the multiplier GUI element uses.

float GameSettings::MultiplierTime (  )  const [inline]

The time a multiplier is active.

const Point2f& GameSettings::PaddleStartPosition (  )  const [inline]

The position place the paddle at the start of the level.

float GameSettings::PowerUpProbability (  )  const [inline]

The probability that a powerup will be created.

float GameSettings::StuckBallFixTime (  )  const [inline]

The time until the ball is considered stuck.


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3