summaryrefslogtreecommitdiffstats
path: root/kue/global.h
blob: 0c0188c2c4836a82637980dbd7a202bd5f681e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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