____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
#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. | |
Definition in file settings.h.
| #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().
| enum GameTypes |
GameType settings
| SettingsGameTypeMapDefault | |
| SettingsGameTypeMelee | |
| SettingsGameTypeFreeForAll | |
| SettingsGameTypeTopVsBottom | |
| SettingsGameTypeLeftVsRight | |
| SettingsGameTypeManVsMachine | |
| SettingsGameTypeManTeamVsMachine |
Definition at line 90 of file settings.h.
| void CreateGame | ( | const std::string & | filename, | |
| CMap * | map | |||
| ) |
Init Setting to default values.
CreateGame.
Load map, graphics, sounds, etc
| filename | map filename | |
| map | map loaded |
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 | ) |
Init Game Setting to default values
Definition at line 710 of file game.cpp.
References Settings::Difficulty, Settings::GameType, Settings::MapRichness, Settings::NetGameType, Settings::NumUnits, Settings::Opponents, PlayerMax, Settings::Presets, Settings::Resources, SettingsPresetMapDefault, SettingsSinglePlayerGame, SettingsPresets::Team, and SettingsPresets::Type.
Referenced by PreMenuSetup().
| void ShowStats | ( | ) |
< Show stats
Create a game
Game settings.
Definition at line 73 of file game.cpp.
Referenced by ApplyReplaySettings(), CEditor::Init(), NetworkGamePrepareGameSettings(), StartReplay(), tolua_get_GameSettings(), and tolua_set_GameSettings().
1.5.6