Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/test/src/util/state.cc @ 10664

Last change on this file since 10664 was 9406, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

File size: 1.3 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
17
18#include "state.h"
19
20
21#include "camera.h"
22
23#ifndef NULL
24#define NULL 0
25#endif
26
27
28
29
30
31Camera* State::camera = NULL;
32CameraTarget* State::cameraTarget = NULL;
33
34PNode* State::cameraNode = NULL;
35PNode* State::cameraTargetNode = NULL;
36
37SkyBox* State::skyBox = NULL;
38
39ObjectManager* State::objectManager = NULL;
40ScriptManager* State::scriptManager = NULL;
41
42unsigned int State::resX = 1;
43unsigned int State::resY = 1;
44
45StoryEntity* State::storyEntity = NULL;
46GameRules* State::gameRules = NULL;
47
48Player* State::player = NULL;
49
50bool State::bOnline = false;
51
52int State::menuID = -1;
53
54
55/**
56 *  sets camera and target of the current Camera
57*/
58void State::setCamera(Camera* camera, CameraTarget* cameraTarget)
59{
60  State::camera = camera;
61  State::cameraTarget = cameraTarget;
62  State::cameraNode = camera;
63  State::cameraTargetNode = cameraTarget;
64}
Note: See TracBrowser for help on using the repository browser.