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.cpp | |
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.cpp')
-rw-r--r-- | kue/global.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kue/global.cpp b/kue/global.cpp new file mode 100644 index 00000000..99c90eea --- /dev/null +++ b/kue/global.cpp @@ -0,0 +1,39 @@ +#include "rules.h" +#include "physics.h" +#include "global.h" +#include "main.h" + +KueRulesEngine* KueGlobal::_rules = nullptr; +KuePhysics* KueGlobal::_physics = nullptr; +GLUserInterface* KueGlobal::_glWidget = nullptr; +MainWindow* KueGlobal::_mainWindow = nullptr; +TQPtrVector<KueTeam>* KueGlobal::_teams = nullptr; + +KueRulesEngine* KueGlobal::rules() +{ + return _rules; +} + +KuePhysics* KueGlobal::physics() +{ + return _physics; +} + +GLUserInterface *KueGlobal::glWidget() +{ + return _glWidget; +} + +MainWindow *KueGlobal::mainWindow() +{ + return _mainWindow; +} + +TQPtrVector<KueTeam> *KueGlobal::teams() +{ + if (!_teams) + { + _teams = new TQPtrVector<KueTeam>; + } + return _teams; +}
\ No newline at end of file |