diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:13:02 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:23:24 +0300 |
commit | 04b5a62b8d9f5ff8240f25361046f2a5d58e8262 (patch) | |
tree | 98b126454cdf68d544e138d7e8b31d5fd45b72c2 /kue/global.h | |
parent | 83ba00b7e569587d50383ff06a70148042ca780e (diff) | |
download | tdegames-feat/kue.tar.gz tdegames-feat/kue.zip |
Add Kue billiards gamefeat/kue
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kue/global.h')
-rw-r--r-- | kue/global.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/kue/global.h b/kue/global.h new file mode 100644 index 00000000..0c0188c2 --- /dev/null +++ b/kue/global.h @@ -0,0 +1,41 @@ +#ifndef __GLOBAL_H_ +#define __GLOBAL_H_ + +#include <tqgl.h> +#include <tqptrvector.h> +#include "team.h" + +class MainWindow; +class GLUserInterface; +class KueRulesEngine; +class KuePhysics; + +class KueGlobal { + public: + // Get our version string + static const char *version() { return "1.0"; } + + // Exit menu, start the game + static void stopMenu(); + + // Member instances + static KueRulesEngine *rules(); + static KuePhysics *physics(); + + static GLUserInterface *glWidget(); + static MainWindow *mainWindow(); + static TQPtrVector<KueTeam> *teams(); + + private: + static KueRulesEngine *_rules; + static KuePhysics *_physics; + + static GLUserInterface *_glWidget; + static MainWindow *_mainWindow; + + static TQPtrVector<KueTeam> *_teams; + + friend class MainWindow; +}; + +#endif
\ No newline at end of file |