| [4597] | 1 | /* |
|---|
| [3655] | 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: |
|---|
| [4293] | 12 | main-programmer: Benjamin Grauer |
|---|
| [3655] | 13 | co-programmer: ... |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY |
|---|
| 17 | |
|---|
| [4293] | 18 | #include "state.h" |
|---|
| [3655] | 19 | |
|---|
| [7014] | 20 | |
|---|
| [10618] | 21 | #include "tools/camera.h" |
|---|
| 22 | #include "tools/cameraman.h" |
|---|
| [7014] | 23 | |
|---|
| [4381] | 24 | #ifndef NULL |
|---|
| 25 | #define NULL 0 |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| [3655] | 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| [9406] | 31 | |
|---|
| [7014] | 32 | Camera* State::camera = NULL; |
|---|
| 33 | CameraTarget* State::cameraTarget = NULL; |
|---|
| [3655] | 34 | |
|---|
| [10379] | 35 | CameraMan* State::cameraManager = NULL; |
|---|
| 36 | |
|---|
| [7014] | 37 | PNode* State::cameraNode = NULL; |
|---|
| 38 | PNode* State::cameraTargetNode = NULL; |
|---|
| 39 | |
|---|
| [6498] | 40 | SkyBox* State::skyBox = NULL; |
|---|
| [6468] | 41 | |
|---|
| [6142] | 42 | ObjectManager* State::objectManager = NULL; |
|---|
| [8271] | 43 | ScriptManager* State::scriptManager = NULL; |
|---|
| [3655] | 44 | |
|---|
| [6498] | 45 | unsigned int State::resX = 1; |
|---|
| 46 | unsigned int State::resY = 1; |
|---|
| 47 | |
|---|
| 48 | StoryEntity* State::storyEntity = NULL; |
|---|
| [7039] | 49 | GameRules* State::gameRules = NULL; |
|---|
| [6498] | 50 | |
|---|
| 51 | Player* State::player = NULL; |
|---|
| 52 | |
|---|
| [6695] | 53 | bool State::bOnline = false; |
|---|
| [10643] | 54 | bool State::bWireframe = false; |
|---|
| [6498] | 55 | |
|---|
| [7032] | 56 | int State::menuID = -1; |
|---|
| [6874] | 57 | |
|---|
| [10698] | 58 | ActionBox* State::actionBox = NULL; |
|---|
| [6874] | 59 | |
|---|
| [3655] | 60 | /** |
|---|
| [4836] | 61 | * sets camera and target of the current Camera |
|---|
| [4293] | 62 | */ |
|---|
| [7014] | 63 | void State::setCamera(Camera* camera, CameraTarget* cameraTarget) |
|---|
| [4293] | 64 | { |
|---|
| [4827] | 65 | State::camera = camera; |
|---|
| 66 | State::cameraTarget = cameraTarget; |
|---|
| [7014] | 67 | State::cameraNode = camera; |
|---|
| 68 | State::cameraTargetNode = cameraTarget; |
|---|
| [4293] | 69 | } |
|---|
| [10379] | 70 | |
|---|
| 71 | |
|---|
| 72 | void State::setCameraman(CameraMan* cm) |
|---|
| 73 | |
|---|
| 74 | { |
|---|
| 75 | State::cameraManager=cm; |
|---|
| 76 | } |
|---|