_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes
settings.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  SettingsPresets
 
struct  Settings
 

settings.h - The game settings headerfile.

#define SettingsPresetMapDefault   -1
 
#define SettingsSinglePlayerGame   1
 
#define SettingsMultiPlayerGame   2
 
enum  GameTypes {
  SettingsGameTypeMapDefault = SettingsPresetMapDefault, SettingsGameTypeMelee = 0, SettingsGameTypeFreeForAll, SettingsGameTypeTopVsBottom,
  SettingsGameTypeLeftVsRight, SettingsGameTypeManVsMachine, SettingsGameTypeManTeamVsMachine
}
 
Settings GameSettings
 
void ShowStats ()
 Game settings. More...
 
void CreateGame (const std::string &filename, CMap *map)
 Create a game. More...
 
void InitSettings ()
 Init Setting to default values. More...
 

Macro Definition Documentation

#define SettingsMultiPlayerGame   2
#define SettingsPresetMapDefault   -1
#define SettingsSinglePlayerGame   1

Single or multiplayer settings

Enumeration Type Documentation

enum GameTypes

GameType settings

Enumerator
SettingsGameTypeMapDefault 
SettingsGameTypeMelee 
SettingsGameTypeFreeForAll 
SettingsGameTypeTopVsBottom 
SettingsGameTypeLeftVsRight 
SettingsGameTypeManVsMachine 
SettingsGameTypeManTeamVsMachine 

Function Documentation

void CreateGame ( const std::string &  filename,
CMap map 
)

Create a game.

CreateGame.

Load map, graphics, sounds, etc

Parameters
filenamemap filename
mapmap loaded
Todo:
FIXME: use in this function InitModules / LoadModules!!!
void InitSettings ( )

Init Setting to default values.

Init Game Setting to default values

Todo:
FIXME: this should not be executed for restart levels!
void ShowStats ( )

Game settings.

Show stats

Variable Documentation

Settings GameSettings
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.