summaryrefslogtreecommitdiffstats
path: root/kue/global.cpp
blob: 99c90eea6fb15c27d423e922f5ca9f03395416ca (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
#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;
}