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

game.h
Go to the documentation of this file.
1 // _________ __ __
2 // / _____// |_____________ _/ |______ ____ __ __ ______
3 // \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
4 // / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
5 // /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
6 // \/ \/ \//_____/ \/
7 // ______________________ ______________________
8 // T H E W A R B E G I N S
9 // Stratagus - A free fantasy real time strategy game engine
10 //
11 //
12 // (c) Copyright 2012 by Joris Dauphin
13 //
14 // This program is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation; only version 2 of the License.
17 //
18 // This program is distributed in the hope that it will be useful,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program; if not, write to the Free Software
25 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 // 02111-1307, USA.
27 //
28 
29 #ifndef GAME_H
30 #define GAME_H
31 
32 #include <string>
33 
34 class CFile;
35 
36 extern void LoadGame(const std::string &filename);
37 extern int SaveGame(const std::string &filename);
38 extern void DeleteSaveGame(const std::string &filename);
39 extern bool SaveGameLoading;
40 
41 extern void InitModules();
42 extern void LuaRegisterModules();
43 extern void LoadModules();
44 extern void CleanModules();
45 
46 extern void FreeAllContainers();
47 
48 extern void SaveGameSettings(CFile &file);
49 
50 extern std::string GameName;
51 extern std::string FullGameName;
52 
53 extern bool UseHPForXp;
54 
55 #endif // GAME_H
56 
LoadGame
void LoadGame(const std::string &filename)
Definition: loadgame.cpp:194
SaveGameLoading
bool SaveGameLoading
Delete save game.
Definition: loadgame.cpp:66
CleanModules
void CleanModules()
Load all modules.
Definition: loadgame.cpp:78
DeleteSaveGame
void DeleteSaveGame(const std::string &filename)
Save game.
Definition: savegame.cpp:191
LuaRegisterModules
void LuaRegisterModules()
Initialize all modules.
Definition: game.cpp:1567
FreeAllContainers
void FreeAllContainers()
Cleanup all modules.
Definition: game.cpp:165
SaveGame
int SaveGame(const std::string &filename)
Load saved game.
Definition: savegame.cpp:111
InitModules
void InitModules()
Save game is in progress of loading.
Definition: loadgame.cpp:116
GameName
std::string GameName
Save game settings.
Definition: game.cpp:91
SaveGameSettings
void SaveGameSettings(CFile &file)
Definition: game.cpp:111
LoadModules
void LoadModules()
Register lua script of each modules.
Definition: loadgame.cpp:151
FullGameName
std::string FullGameName
Name of the game.
Definition: game.cpp:92
CFile
Definition: iolib.h:102
UseHPForXp
bool UseHPForXp
Full Name of the game.
Definition: game.cpp:97
(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.