summaryrefslogtreecommitdiffstats
path: root/kue/global.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kue/global.cpp')
-rw-r--r--kue/global.cpp39
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