| 1 |
$bool IsReplayGame(); |
| 2 |
bool IsReplayGame(); |
| 3 |
|
| 4 |
|
| 5 |
$void StartMap(const string &str, bool clean = true); |
| 6 |
void StartMap(const string str, bool clean = true); |
| 7 |
$void StartReplay(const string &str, bool reveal = false); |
| 8 |
void StartReplay(const string str, bool reveal = false); |
| 9 |
$void StartSavedGame(const string &str); |
| 10 |
void StartSavedGame(const string str); |
| 11 |
|
| 12 |
$#include "results.h" |
| 13 |
|
| 14 |
typedef enum { |
| 15 |
GameNoResult, |
| 16 |
GameVictory, |
| 17 |
GameDefeat, |
| 18 |
GameDraw, |
| 19 |
GameQuitToMenu, |
| 20 |
GameRestart, |
| 21 |
} GameResults; |
| 22 |
|
| 23 |
GameResults GameResult; |
| 24 |
|
| 25 |
$void StopGame(GameResults result); |
| 26 |
void StopGame(GameResults result); |
| 27 |
|
| 28 |
extern bool GameRunning; |
| 29 |
extern void SetGamePaused(bool paused); |
| 30 |
extern bool GetGamePaused(); |
| 31 |
extern tolua_property__s bool GamePaused; |
| 32 |
extern void SetGameSpeed(int speed); |
| 33 |
extern int GetGameSpeed(); |
| 34 |
extern tolua_property__s int GameSpeed; |
| 35 |
extern bool GameObserve; |
| 36 |
|
| 37 |
extern unsigned long GameCycle; |
| 38 |
|
| 39 |
|
| 40 |
$#include "settings.h" |
| 41 |
|
| 42 |
struct SettingsPresets { |
| 43 |
int Team; |
| 44 |
PlayerTypes Type; |
| 45 |
}; |
| 46 |
|
| 47 |
class Settings { |
| 48 |
int NetGameType; |
| 49 |
|
| 50 |
SettingsPresets Presets[PlayerMax]; |
| 51 |
|
| 52 |
int Resources; |
| 53 |
int NumUnits; |
| 54 |
int Opponents; |
| 55 |
int Difficulty; |
| 56 |
int GameType; |
| 57 |
bool NoFogOfWar; |
| 58 |
int RevealMap; |
| 59 |
int MapRichness; |
| 60 |
}; |
| 61 |
|
| 62 |
extern Settings GameSettings; |
| 63 |
|
| 64 |
#define SettingsPresetMapDefault -1 |
| 65 |
|
| 66 |
enum GameTypes { |
| 67 |
SettingsGameTypeMapDefault = SettingsPresetMapDefault, |
| 68 |
SettingsGameTypeMelee = 0, |
| 69 |
SettingsGameTypeFreeForAll, |
| 70 |
SettingsGameTypeTopVsBottom, |
| 71 |
SettingsGameTypeLeftVsRight, |
| 72 |
SettingsGameTypeManVsMachine, |
| 73 |
SettingsGameTypeManTeamVsMachine, |
| 74 |
}; |
| 75 |
|
| 76 |
$extern int AlliedUnitRecyclingEfficiency[MaxCosts]; |
| 77 |
$extern int EnemyUnitRecyclingEfficiency[MaxCosts]; |
| 78 |
int AlliedUnitRecyclingEfficiency[MaxCosts]; |
| 79 |
int EnemyUnitRecyclingEfficiency[MaxCosts]; |