____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <string>
#include "stratagus.h"
#include "ui.h"
#include "unit.h"
#include "upgrade.h"
#include "missile.h"
#include "map.h"
#include "player.h"
#include "ai.h"
#include "trigger.h"
#include "iolib.h"
#include "replay.h"
#include "script.h"
#include "actions.h"
#include "version.h"
Go to the source code of this file.
Functions | |
| static std::string | GetSaveDir () |
| void | SaveGame (const std::string &filename) |
| Save game. | |
Definition in file savegame.cpp.
| static std::string GetSaveDir | ( | ) | [static] |
Get the save directory
Definition at line 68 of file savegame.cpp.
References UserDirectory.
Referenced by SaveGame().
| void SaveGame | ( | const std::string & | filename | ) |
Save game.
Save a game to file.
| filename | File name to be stored. |
Definition at line 84 of file savegame.cpp.
References CL_OPEN_WRITE, CL_WRITE_GZ, CFile::close(), CurrentMapPath, CMapInfo::Description, GameCycle, GetSaveDir(), CMap::Info, Lua, Map, CFile::open(), CFile::printf(), CMap::Save(), SaveAi(), SaveCcl(), SaveGlobal(), SaveGroups(), SaveMissiles(), SavePlayers(), SaveReplayList(), SaveSelections(), SaveTriggers(), SaveUnits(), SaveUpgrades(), SaveUserInterface(), StratagusMajorVersion, StratagusMinorVersion, StratagusPatchLevel, SyncHash, SyncRandSeed, and VERSION.
Referenced by tolua_stratagus_SaveGame00().
1.5.6