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 | #include "cameraman.h" |
---|
23 | |
---|
24 | #ifndef NULL |
---|
25 | #define NULL 0 |
---|
26 | #endif |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | Camera* State::camera = NULL; |
---|
33 | CameraTarget* State::cameraTarget = NULL; |
---|
34 | |
---|
35 | cameraman* State::CameraMan = NULL; |
---|
36 | |
---|
37 | PNode* State::cameraNode = NULL; |
---|
38 | PNode* State::cameraTargetNode = NULL; |
---|
39 | |
---|
40 | SkyBox* State::skyBox = NULL; |
---|
41 | |
---|
42 | ObjectManager* State::objectManager = NULL; |
---|
43 | ScriptManager* State::scriptManager = NULL; |
---|
44 | |
---|
45 | unsigned int State::resX = 1; |
---|
46 | unsigned int State::resY = 1; |
---|
47 | |
---|
48 | StoryEntity* State::storyEntity = NULL; |
---|
49 | GameRules* State::gameRules = NULL; |
---|
50 | |
---|
51 | Player* State::player = NULL; |
---|
52 | |
---|
53 | bool State::bOnline = false; |
---|
54 | |
---|
55 | int State::menuID = -1; |
---|
56 | |
---|
57 | |
---|
58 | /** |
---|
59 | * sets camera and target of the current Camera |
---|
60 | */ |
---|
61 | void State::setCamera(Camera* camera, CameraTarget* cameraTarget) |
---|
62 | { |
---|
63 | State::camera = camera; |
---|
64 | State::cameraTarget = cameraTarget; |
---|
65 | State::cameraNode = camera; |
---|
66 | State::cameraTargetNode = cameraTarget; |
---|
67 | } |
---|
68 | |
---|
69 | |
---|
70 | void State::setCameraman(cameraman* cm) |
---|
71 | |
---|
72 | { |
---|
73 | State::CameraMan=cm; |
---|
74 | } |
---|