xoreos  0.0.5
bindings.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
26 #ifndef ENGINES_WITCHER_LUA_BINDINGS_H
27 #define ENGINES_WITCHER_LUA_BINDINGS_H
28 
29 #include "src/aurora/lua/types.h"
30 
31 namespace Common {
32  class UString;
33 }
34 
35 namespace Engines {
36 
37 namespace Witcher {
38 
39 class LuaBindings {
40 public:
41  LuaBindings();
42  ~LuaBindings();
43 
44 private:
46  public:
47  static void registerLuaBindings();
48 
49  static Common::UString getLuaType();
50 
51  private:
52  static int luaGetDialogHorizontalOffset(lua_State *state);
53  };
54 
55  class CCamera {
56  public:
57  static void registerLuaBindings();
58 
59  static Common::UString getLuaType();
60 
61  private:
62  static int luaDist(lua_State *state);
63  static int luaPitch(lua_State *state);
64  static int luaFollowOffset(lua_State *state);
65  };
66 
67  class CGUIMan {
68  public:
69  static void registerLuaBindings();
70 
71  static Common::UString getLuaType();
72 
73  private:
74  static int luaCreateAurObject(lua_State *state);
75  static int luaCreateAurObjectWithMesh(lua_State *state);
76  };
77 
79  public:
80  static void registerLuaBindings();
81 
82  static Common::UString getLuaType();
83 
84  private:
85  static int luaNew(lua_State *state);
86  };
87 
88  class CGUIPanel {
89  public:
90  static void registerLuaBindings();
91 
92  static Common::UString getLuaType();
93 
94  private:
95  static int luaNew(lua_State *state);
96  static int luaSetModel(lua_State *state);
97  static int luaSetName(lua_State *state);
98  static int luaActivate(lua_State *state);
99  static int luaDeactivate(lua_State *state);
100  static int luaRenderSceneViewFirst(lua_State *state);
101  static int luaToggleOff(lua_State *state);
102  };
103 
105  public:
106  static void registerLuaBindings();
107 
108  static Common::UString getLuaType();
109  };
110 
112  public:
113  static void registerLuaBindings();
114 
115  static Common::UString getLuaType();
116 
117  private:
118  static int luaCreateModel(lua_State *state);
119  static int luaSetDebugName(lua_State *state);
120  static int luaAddTextLayer(lua_State *state);
121  static int luaGetFlags(lua_State *state);
122  static int luaSetFlags(lua_State *state);
123  static int luaGetTextLabel(lua_State *state);
124  static int luaIgnoreHitCheck(lua_State *state);
125  static int luaAddTextureLayer(lua_State *state);
126  static int luaAddTextureLayerTransformable(lua_State *state);
127  static int luaPlayAnimation(lua_State *state);
128  static int luaSetAlignmentVertical(lua_State *state);
129  };
130 
131  class CGUIInGame {
132  public:
133  static void registerLuaBindings();
134 
135  static Common::UString getLuaType();
136  };
137 
138  class CGUIObject {
139  public:
140  static void registerLuaBindings();
141 
142  static Common::UString getLuaType();
143  };
144 
145  class CPhysics {
146  public:
147  static void registerLuaBindings();
148 
149  static Common::UString getLuaType();
150 
151  private:
152  static int luaSetEnableCamera(lua_State *state);
153  };
154 
155  class CTlkTable {
156  public:
157  static void registerLuaBindings();
158 
159  static Common::UString getLuaType();
160 
161  private:
162  static int luaGetTlkTable(lua_State *state);
163  };
164 
166  public:
167  static void registerLuaBindings();
168 
169  static Common::UString getLuaType();
170 
171  private:
172  static int luaClear(lua_State *state);
173  };
174 
175  class CFontMgr {
176  public:
177  static void registerLuaBindings();
178 
179  static Common::UString getLuaType();
180 
181  private:
182  static int luaGetFontMgr(lua_State *state);
183  static int luaAddResolution(lua_State *state);
184  static int luaLoadFont(lua_State *state);
185  };
186 
187  class CRules {
188  public:
189  static void registerLuaBindings();
190 
191  static Common::UString getLuaType();
192 
193  private:
194  static int luaGet2DArrays(lua_State *state);
195  };
196 
197  class CDefs {
198  public:
199  static void registerLuaBindings();
200 
201  static Common::UString getLuaType();
202 
203  private:
204  static int luaClear(lua_State *state);
205  static int luaAddGameEffectType(lua_State *state);
206  static int luaAddGameEffectMedium(lua_State *state);
207  static int luaAddWeaponType(lua_State *state);
208  static int luaAddSpellType(lua_State *state);
209  static int luaAddAbility(lua_State *state);
210  };
211 
212  class CAttrs {
213  public:
214  static void registerLuaBindings();
215 
216  static Common::UString getLuaType();
217 
218  private:
219  static int luaGet(lua_State *state);
220  };
221 
222  class C2DArrays {
223  public:
224  static void registerLuaBindings();
225 
226  static Common::UString getLuaType();
227 
228  private:
229  static int luaGetLanguagesTable(lua_State *state);
230  };
231 
232  class C2DA {
233  public:
234  static void registerLuaBindings();
235 
236  static Common::UString getLuaType();
237 
238  private:
239  static int luaNew(lua_State *state);
240  static int luaDelete(lua_State *state);
241  static int luaNewLocal(lua_State *state);
242  static int luaLoad2DArray(lua_State *state);
243  static int luaUnload2DArray(lua_State *state);
244  static int luaGetNumRows(lua_State *state);
245  static int luaGetCExoStringEntry(lua_State *state);
246  static int luaGetIntEntry(lua_State *state);
247  };
248 
250  public:
251  static void registerLuaBindings();
252 
253  static Common::UString getLuaType();
254 
255  private:
256  static int luaGetClientTextLanguage(lua_State *state);
257  };
258 
259  class CNWCModule {
260  public:
261  static void registerLuaBindings();
262 
263  static Common::UString getLuaType();
264  };
265 
266  class CNWCCreature {
267  public:
268  static void registerLuaBindings();
269 
270  static Common::UString getLuaType();
271  };
272 
273  class CAurObject {
274  public:
275  static void registerLuaBindings();
276 
277  static Common::UString getLuaType();
278  };
279 
281  public:
282  static void registerLuaBindings();
283 
284  static Common::UString getLuaType();
285  };
286 
287  class CAbility {
288  public:
289  static void registerLuaBindings();
290 
291  static Common::UString getLuaType();
292  };
293 
295  public:
296  static void registerLuaBindings();
297 
298  static Common::UString getLuaType();
299  };
300 
301  class CWeatherRain {
302  public:
303  static void registerLuaBindings();
304 
305  static Common::UString getLuaType();
306  };
307 
308  class CWeatherFog {
309  public:
310  static void registerLuaBindings();
311 
312  static Common::UString getLuaType();
313  };
314 
316  public:
317  static void registerLuaBindings();
318 
319  static Common::UString getLuaType();
320  };
321 
323  public:
324  static void registerLuaBindings();
325 
326  static Common::UString getLuaType();
327 
328  private:
329  static int luaNewLocal(lua_State *state);
330  static int luaSetVolume(lua_State *state);
331  static int luaSetLooping(lua_State *state);
332  };
333 
335  public:
336  static void registerLuaBindings();
337 
338  static Common::UString getLuaType();
339  };
340 
342  public:
343  static void registerLuaBindings();
344 
345  static Common::UString getLuaType();
346  };
347 
348  class Quaternion {
349  public:
350  static void registerLuaBindings();
351 
352  static Common::UString getLuaType();
353 
354  private:
355  static int luaNewLocal(lua_State *state);
356  };
357 
358  class Vector {
359  public:
360  static void registerLuaBindings();
361 
362  static Common::UString getLuaType();
363 
364  private:
365  static int luaNewLocal(lua_State *state);
366  static int luaSet(lua_State *state);
367  static int luaGetX(lua_State *state);
368  static int luaSetX(lua_State *state);
369  static int luaGetY(lua_State *state);
370  static int luaSetY(lua_State *state);
371  static int luaGetZ(lua_State *state);
372  static int luaSetZ(lua_State *state);
373  };
374 
375  class ScreenSizes {
376  public:
377  static void registerLuaBindings();
378 
379  static Common::UString getLuaType();
380 
381  private:
382  static int luaGetActualGUIWidth(lua_State *state);
383  };
384 
385  void registerBindings();
386 
387  static int luaGetAuroraSettings(lua_State *state);
388  static int luaGetCurrentCameraSettings(lua_State *state);
389  static int luaGetGUIMan(lua_State *state);
390  static int luaGetClientPhysics(lua_State *state);
391  static int luaGetAttackDefList(lua_State *state);
392  static int luaGetRules(lua_State *state);
393  static int luaGetClientExoApp(lua_State *state);
394  static int luaGetDefs(lua_State *state);
395 
396  static int luaIsEditor(lua_State *state);
397  static int luaIsDebugBuild(lua_State *state);
398  static int luaIsDemo(lua_State *state);
399  static int luaIsDjinni(lua_State *state);
400 
401  static int luaAurPrintf(lua_State *state);
402  static int luaConsole(lua_State *state);
403  static int luaValidNumber(lua_State *state);
404  static int luaGUIAurAttachToObject(lua_State *state);
405 
406  static int luaBor(lua_State *state);
407 };
408 
409 } // End of namespace Witcher
410 
411 } // End of namespace Engines
412 
413 #endif // ENGINES_WITCHER_LUA_BINDINGS_H
static Common::UString getLuaType()
Definition: bindings.cpp:435
static int luaNew(lua_State *state)
Definition: bindings.cpp:825
static int luaSetEnableCamera(lua_State *state)
Definition: bindings.cpp:594
static int luaGetTextLabel(lua_State *state)
Definition: bindings.cpp:546
static Common::UString getLuaType()
Definition: bindings.cpp:821
static Common::UString getLuaType()
Definition: bindings.cpp:390
static int luaSetX(lua_State *state)
Definition: bindings.cpp:1209
static Common::UString getLuaType()
Definition: bindings.cpp:791
static int luaLoadFont(lua_State *state)
Definition: bindings.cpp:673
Definition: 2dafile.h:39
A class holding an UTF-8 string.
Definition: ustring.h:48
static int luaValidNumber(lua_State *state)
Definition: bindings.cpp:247
static int luaIsEditor(lua_State *state)
Definition: bindings.cpp:197
static int luaIgnoreHitCheck(lua_State *state)
Definition: bindings.cpp:553
static int luaBor(lua_State *state)
Definition: bindings.cpp:262
static int luaDist(lua_State *state)
Definition: bindings.cpp:316
static int luaDeactivate(lua_State *state)
Definition: bindings.cpp:461
static int luaGetActualGUIWidth(lua_State *state)
Definition: bindings.cpp:1290
static int luaSetAlignmentVertical(lua_State *state)
Definition: bindings.cpp:573
static int luaAddGameEffectMedium(lua_State *state)
Definition: bindings.cpp:734
static Common::UString getLuaType()
Definition: bindings.cpp:312
static int luaGetNumRows(lua_State *state)
Definition: bindings.cpp:854
static Common::UString getLuaType()
Definition: bindings.cpp:657
static int luaActivate(lua_State *state)
Definition: bindings.cpp:456
static int luaFollowOffset(lua_State *state)
Definition: bindings.cpp:326
static int luaAddTextureLayerTransformable(lua_State *state)
Definition: bindings.cpp:563
static int luaGetFlags(lua_State *state)
Definition: bindings.cpp:531
static int luaSetY(lua_State *state)
Definition: bindings.cpp:1235
static Common::UString getLuaType()
Definition: bindings.cpp:373
static int luaNewLocal(lua_State *state)
Definition: bindings.cpp:1073
static int luaAddAbility(lua_State *state)
Definition: bindings.cpp:749
static int luaClear(lua_State *state)
Definition: bindings.cpp:638
static int luaIsDjinni(lua_State *state)
Definition: bindings.cpp:227
static Common::UString getLuaType()
Definition: bindings.cpp:989
static int luaGetGUIMan(lua_State *state)
Definition: bindings.cpp:155
static int luaAddTextLayer(lua_State *state)
Definition: bindings.cpp:526
static Common::UString getLuaType()
Definition: bindings.cpp:1159
static int luaClear(lua_State *state)
Definition: bindings.cpp:724
static int luaNewLocal(lua_State *state)
Definition: bindings.cpp:837
static int luaAddWeaponType(lua_State *state)
Definition: bindings.cpp:739
static Common::UString getLuaType()
Definition: bindings.cpp:770
static int luaGet2DArrays(lua_State *state)
Definition: bindings.cpp:694
static int luaSetDebugName(lua_State *state)
Definition: bindings.cpp:521
static int luaGetAuroraSettings(lua_State *state)
Definition: bindings.cpp:141
static int luaAddSpellType(lua_State *state)
Definition: bindings.cpp:744
static int luaGetY(lua_State *state)
Definition: bindings.cpp:1222
static int luaAddGameEffectType(lua_State *state)
Definition: bindings.cpp:729
static int luaGet(lua_State *state)
Definition: bindings.cpp:774
static Common::UString getLuaType()
Definition: bindings.cpp:690
static int luaGetZ(lua_State *state)
Definition: bindings.cpp:1248
static int luaNewLocal(lua_State *state)
Definition: bindings.cpp:1163
static int luaSetName(lua_State *state)
Definition: bindings.cpp:451
static int luaGetCurrentCameraSettings(lua_State *state)
Definition: bindings.cpp:148
static Common::UString getLuaType()
Definition: bindings.cpp:590
static int luaGetClientExoApp(lua_State *state)
Definition: bindings.cpp:183
static int luaUnload2DArray(lua_State *state)
Definition: bindings.cpp:849
static int luaSetZ(lua_State *state)
Definition: bindings.cpp:1261
static int luaIsDebugBuild(lua_State *state)
Definition: bindings.cpp:207
static int luaNew(lua_State *state)
Definition: bindings.cpp:439
static int luaIsDemo(lua_State *state)
Definition: bindings.cpp:217
static int luaCreateModel(lua_State *state)
Definition: bindings.cpp:516
static int luaDelete(lua_State *state)
Definition: bindings.cpp:832
static int luaSetFlags(lua_State *state)
Definition: bindings.cpp:541
static int luaGetAttackDefList(lua_State *state)
Definition: bindings.cpp:169
Lua types.
static int luaCreateAurObject(lua_State *state)
Definition: bindings.cpp:348
static int luaAddTextureLayer(lua_State *state)
Definition: bindings.cpp:558
static int luaNewLocal(lua_State *state)
Definition: bindings.cpp:1136
static int luaCreateAurObjectWithMesh(lua_State *state)
Definition: bindings.cpp:355
static Common::UString getLuaType()
Definition: bindings.cpp:611
static int luaGetIntEntry(lua_State *state)
Definition: bindings.cpp:876
static int luaGetClientTextLanguage(lua_State *state)
Definition: bindings.cpp:904
static int luaPitch(lua_State *state)
Definition: bindings.cpp:321
static int luaSetLooping(lua_State *state)
Definition: bindings.cpp:1085
static int luaAddResolution(lua_State *state)
Definition: bindings.cpp:668
static int luaGUIAurAttachToObject(lua_State *state)
Definition: bindings.cpp:257
static int luaLoad2DArray(lua_State *state)
Definition: bindings.cpp:844
static int luaGetClientPhysics(lua_State *state)
Definition: bindings.cpp:162
static int luaSetModel(lua_State *state)
Definition: bindings.cpp:446
static int luaSetVolume(lua_State *state)
Definition: bindings.cpp:1080
static int luaAurPrintf(lua_State *state)
Definition: bindings.cpp:237
static int luaGetTlkTable(lua_State *state)
Definition: bindings.cpp:615
static int luaGetCExoStringEntry(lua_State *state)
Definition: bindings.cpp:864
static int luaSet(lua_State *state)
Definition: bindings.cpp:1181
static int luaGetRules(lua_State *state)
Definition: bindings.cpp:176
static Common::UString getLuaType()
Definition: bindings.cpp:720
static Common::UString getLuaType()
Definition: bindings.cpp:955
static int luaGetDefs(lua_State *state)
Definition: bindings.cpp:190
static int luaToggleOff(lua_State *state)
Definition: bindings.cpp:471
static int luaGetDialogHorizontalOffset(lua_State *state)
Definition: bindings.cpp:288
static int luaGetLanguagesTable(lua_State *state)
Definition: bindings.cpp:795
static int luaConsole(lua_State *state)
Definition: bindings.cpp:242
static Common::UString getLuaType()
Definition: bindings.cpp:344
static int luaGetX(lua_State *state)
Definition: bindings.cpp:1196
static int luaGetFontMgr(lua_State *state)
Definition: bindings.cpp:661
static int luaRenderSceneViewFirst(lua_State *state)
Definition: bindings.cpp:466
static Common::UString getLuaType()
Definition: bindings.cpp:925
static Common::UString getLuaType()
Definition: bindings.cpp:1132
static int luaPlayAnimation(lua_State *state)
Definition: bindings.cpp:568