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

Functions | Variables
game.h File Reference
#include <string>

Go to the source code of this file.

Functions

void LoadGame (const std::string &filename)
 
int SaveGame (const std::string &filename)
 Load saved game. More...
 
void DeleteSaveGame (const std::string &filename)
 Save game. More...
 
void InitModules ()
 Save game is in progress of loading. More...
 
void LuaRegisterModules ()
 Initialize all modules. More...
 
void LoadModules ()
 Register lua script of each modules. More...
 
void CleanModules ()
 Load all modules. More...
 
void FreeAllContainers ()
 Cleanup all modules. More...
 
void SaveGameSettings (CFile &file)
 

Variables

bool SaveGameLoading
 Delete save game. More...
 
std::string GameName
 Save game settings. More...
 
std::string FullGameName
 Name of the game. More...
 
bool UseHPForXp
 Full Name of the game. More...
 

Function Documentation

◆ CleanModules()

void CleanModules ( )

Load all modules.

Load all modules.

Cleanup modules.

Call each module to clean up.

◆ DeleteSaveGame()

void DeleteSaveGame ( const std::string &  filename)

Save game.

Delete save game

Parameters
filenameName of file to delete

◆ FreeAllContainers()

void FreeAllContainers ( )

Cleanup all modules.

◆ InitModules()

void InitModules ( )

Save game is in progress of loading.

Initialize all modules.

Call each module to initialize.

◆ LoadGame()

void LoadGame ( const std::string &  filename)

Load a game to file.

Parameters
filenameFile name to be loaded.

◆ LoadModules()

void LoadModules ( )

Register lua script of each modules.

Load all.

Call each module to load additional files (graphics,sounds).

◆ LuaRegisterModules()

void LuaRegisterModules ( )

Initialize all modules.

◆ SaveGame()

int SaveGame ( const std::string &  filename)

Load saved game.

Save a game to file.

Parameters
filenameFile name to be stored.
Returns
-1 if saving failed, 0 if all OK
Note
Later we want to store in a more compact binary format.

◆ SaveGameSettings()

void SaveGameSettings ( CFile file)

Save game settings.

Parameters
fileSave file handle

Variable Documentation

◆ FullGameName

std::string FullGameName

Name of the game.

◆ GameName

std::string GameName

Save game settings.

Save game settings.

◆ SaveGameLoading

bool SaveGameLoading

Delete save game.

◆ UseHPForXp

bool UseHPForXp

Full Name of the game.

Full Name of the game.

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