Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10272 in orxonox.OLD for branches/camera/src/util


Ignore:
Timestamp:
Jan 17, 2007, 6:16:08 PM (18 years ago)
Author:
gfilip
Message:

evrything finally solved

Location:
branches/camera/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/util/state.cc

    r9406 r10272  
    2020
    2121#include "camera.h"
     22#include "cameraman.h"
    2223
    2324#ifndef NULL
     
    3132Camera* State::camera = NULL;
    3233CameraTarget* State::cameraTarget = NULL;
     34
     35cameraman* State::CameraMan = NULL;
    3336
    3437PNode* State::cameraNode = NULL;
     
    6366  State::cameraTargetNode = cameraTarget;
    6467}
     68
     69
     70void State::setCameraman(cameraman* cm)
     71
     72{
     73  State::CameraMan=cm;
     74}
  • branches/camera/src/util/state.h

    r8408 r10272  
    1818class ObjectManager;
    1919class GameRules;
    20 
     20class cameraman;
    2121class ScriptManager;
    2222
     
    4242  /** @returns a Pointer to the CameraTarget */
    4343  static inline PNode* getCameraTargetNode() { return State::cameraTargetNode; };
     44
     45
     46
     47  /////////////////////
     48  /// CAMERAMANAGER ///
     49  /////////////////////
     50  /** @param cameraman the PNode to the CameraManager,*/
     51  static void setCameraman(cameraman*);
     52  static inline cameraman* getCameraman() { return State::CameraMan; };
     53
    4454
    4555  ////////////////
     
    116126  static Camera*                camera;             //!< The current Camera.
    117127  static CameraTarget*          cameraTarget;       //!< The Camera Target.
     128  static cameraman*             CameraMan;
    118129  static PNode*                 cameraNode;         //!< A reference to the camera
    119130  static PNode*                 cameraTargetNode;   //!< A reference to the cameraTarget
Note: See TracChangeset for help on using the changeset viewer.