____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

settings.h File Reference

The game settings headerfile. More...

#include <vector>

Go to the source code of this file.

Classes

struct  SettingsPresets
struct  Settings

Defines

#define SettingsPresetMapDefault   -1
 Special: Use map supplied.
#define SettingsSinglePlayerGame   1
#define SettingsMultiPlayerGame   2

Enumerations

enum  GameTypes {
  SettingsGameTypeMapDefault = SettingsPresetMapDefault, SettingsGameTypeMelee = 0, SettingsGameTypeFreeForAll, SettingsGameTypeTopVsBottom,
  SettingsGameTypeLeftVsRight, SettingsGameTypeManVsMachine, SettingsGameTypeManTeamVsMachine
}

Functions

void ShowStats ()
 < Show stats
void CreateGame (const std::string &filename, CMap *map)
 Init Setting to default values.
void InitSettings (void)

Variables

Settings GameSettings
 Game settings.


Detailed Description

The game settings headerfile.

Definition in file settings.h.


Define Documentation

#define SettingsMultiPlayerGame   2

Definition at line 85 of file settings.h.

Referenced by ApplyReplaySettings(), and NetworkGamePrepareGameSettings().

#define SettingsPresetMapDefault   -1

Special: Use map supplied.

Definition at line 79 of file settings.h.

Referenced by CreateGame(), CEditor::Init(), InitSettings(), and tolua_stratagus_open().

#define SettingsSinglePlayerGame   1

Single or multiplayer settings

Definition at line 84 of file settings.h.

Referenced by ApplyReplaySettings(), InitSettings(), and StartReplay().


Enumeration Type Documentation

enum GameTypes

GameType settings

Enumerator:
SettingsGameTypeMapDefault 
SettingsGameTypeMelee 
SettingsGameTypeFreeForAll 
SettingsGameTypeTopVsBottom 
SettingsGameTypeLeftVsRight 
SettingsGameTypeManVsMachine 
SettingsGameTypeManTeamVsMachine 

Definition at line 90 of file settings.h.


Function Documentation

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

Init Setting to default values.

CreateGame.

Load map, graphics, sounds, etc

Parameters:
filename map filename
map map loaded
Todo:
FIXME: use in this function InitModules / LoadModules!!!

Definition at line 518 of file game.cpp.

References CallbackMusicOn, CViewport::Center(), CVideo::ClearScreen(), CUnit::Colors, CommandLog(), CMinimap::Create(), CreatePlayer(), CurrentMapPath, DebugPlayers(), DebugPrint, FastForwardCycle, CMapInfo::Filename, FlagRevealMap, FlushCommands, GameCycle, GameNoResult, GamePaused, GameResult, Settings::GameType, GameTypeFreeForAll(), GameTypeLeftVsRight(), GameTypeManTeamVsMachine(), GameTypeManVsMachine(), GameTypeTopVsBottom(), CMap::Info, CMap::Init(), InitButtons(), InitConstructions(), InitGroups(), InitIcons(), InitMissileTypes(), InitNetwork2(), InitPathfinder(), InitPlayers(), InitSelections(), InitSoundClient(), InitSpells(), InitSyncRand(), InitTriggers(), InitUnitTypes(), InitUserInterface(), InitVisionTable(), IsNetworkGame, LibraryFileName(), CUserInterface::Load(), LoadConstructions(), LoadCursors(), LoadDecorations(), LoadIcons(), LoadMap(), LoadMissileSprites(), LoadUnitSounds(), LoadUnitTypes(), LocalPlayerName, LuaLoadFile(), Map, MapUnitSounds(), CUserInterface::Minimap, CUserInterface::NormalFontColor, NoUnitP, NumUnits, CUnit::Player, PlayerMax, PlayersInitAi(), CMapInfo::PlayerType, Settings::Presets, CUnit::RescuedFrom, CMap::Reveal(), CUserInterface::ReverseFontColor, SaveGameLoading, CUserInterface::SelectedViewport, SetDefaultTextColors(), CPlayer::SetName(), SetPlayersPalette(), SettingsGameTypeFreeForAll, SettingsGameTypeLeftVsRight, SettingsGameTypeManTeamVsMachine, SettingsGameTypeManVsMachine, SettingsGameTypeMapDefault, SettingsGameTypeMelee, SettingsGameTypeTopVsBottom, SettingsPresetMapDefault, SoundEnabled(), CPlayer::StartX, CPlayer::StartY, strcasestr(), strcpy_s(), SyncHash, ThisPlayer, TileSizeX, TileSizeY, SettingsPresets::Type, UI, CPlayer::UnitColors, Units, UnitUnderCursor, Video, and CUserInterface::Viewports.

Referenced by CEditor::Init(), and StartMap().

void InitSettings ( void   ) 

void ShowStats (  ) 

< Show stats

Create a game


Variable Documentation


Generated on Sat Feb 21 00:28:19 2009 for Bos Wars by  doxygen 1.5.6