Debian Codegraph @

engine/tolua/stratagus.pkg

raw
1 $#include "stratagus.h"
2 $#include "ui.h"
3 $#include "minimap.h"
4 $#include "player.h"
5 $#include "unittype.h"
6 $#include "unit.h"
7 $#include "video.h"
8 $#include "font.h"
9 $#include "widgets.h"
10 $#include "sound.h"
11 $#include "sound_server.h"
12 $#include "netconnect.h"
13 $#include "map.h"
14
15 $#ifdef _MSC_VER
16 $#pragma warning(disable:4800)
17 $#endif
18
19 $[
20 mt = { __index = function(t, key) return CIcon:Get(key) end }
21 Icons = {}
22 setmetatable(Icons, mt)
23
24 mt = { __index = function(t, key) return CFont:Get(key) end }
25 Fonts = {}
26 setmetatable(Fonts, mt)
27
28 mt = { __index = function(t, key) return CFontColor:Get(key) end }
29 FontColors = {}
30 setmetatable(FontColors, mt)
31
32 function GameStarting()
33 end
34 $]
35
36 #define MaxCosts 2
37 #define EnergyCost 0
38 #define MagmaCost 1
39 #define PlayerMax 9
40 #define PlayerNumNeutral (PlayerMax - 1)
41 #define UnitMax 2048
42
43 #define NoButton 0
44 #define LeftButton 2
45 #define MiddleButton 4
46 #define RightButton 8
47 #define UpButton 16
48 #define DownButton 32
49
50 $pfile "minimap.pkg"
51 $pfile "ui.pkg"
52 $pfile "network.pkg"
53 $pfile "video.pkg"
54 $pfile "font.pkg"
55 $pfile "player.pkg"
56 $pfile "unittype.pkg"
57 $pfile "unit.pkg"
58 $pfile "sound.pkg"
59 $pfile "editor.pkg"
60 $pfile "game.pkg"
61 $pfile "map.pkg"
62 $pfile "patch.pkg"
63 $pfile "pathfinder.pkg"
64 $pfile "trigger.pkg"
65 $pfile "particle.pkg"
66
67 extern const char *Translate(const char *str);
68 extern void AddTranslation(const string str1, const string str2);
69 extern void LoadPO(const string file);
70 extern void SetTranslationsFiles(const string stratagusfile, const string gamefile);
71 extern std::string StratagusTranslation;
72 extern std::string GameTranslation;
73
74 extern void SaveGame(const std::string filename);
75
76 extern const char *Translate @ _(const char *str);
77
78 extern int SyncRand(void);
79 extern int SyncRand(int max);
80
81 void Exit(int err);
82
83 $extern std::string CliMapName;
84 extern std::string CliMapName;