Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10379 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jan 26, 2007, 10:58:31 AM (18 years ago)
Author:
patrick
Message:

merged branche camera to trunk. resolved many conflicts as in the other projects too

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/state.cc

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

    r10368 r10379  
    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 cameraManagerager,*/
     51  static void setCameraman(CameraMan*);
     52  static inline CameraMan* getCameraman() { return State::cameraManager; };
     53
    4454
    4555  ////////////////
     
    123133  static Camera*                camera;             //!< The current Camera.
    124134  static CameraTarget*          cameraTarget;       //!< The Camera Target.
     135  static CameraMan*             cameraManager;
    125136  static PNode*                 cameraNode;         //!< A reference to the camera
    126137  static PNode*                 cameraTargetNode;   //!< A reference to the cameraTarget
Note: See TracChangeset for help on using the changeset viewer.