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

src/include/settings.h File Reference

#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.
void CreateGame (const std::string &filename, CMap *map)
 Create a game.
void InitSettings ()
 Init Setting to default values.

Define 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:
filename map filename
map map 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

(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.