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