Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7014 in orxonox.OLD for trunk/src/util/state.h


Ignore:
Timestamp:
Feb 3, 2006, 2:14:22 PM (18 years ago)
Author:
bensch
Message:

trunk: new algorithm for the Camera-Distance

File:
1 edited

Legend:

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

    r6874 r7014  
    1010// FORWARD DECLARATION
    1111class PNode;
     12class Camera;
     13class CameraTarget;
    1214class WorldEntity;
    1315class Player;
     
    3032   //////////////
    3133  /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */
    32   static void setCamera(PNode* camera, PNode* cameraTarget);
     34  static void setCamera(Camera* camera, CameraTarget* cameraTarget);
     35  static inline Camera* getCamera() { return State::camera; };
     36  static inline CameraTarget* getCameraTarget() { return State::cameraTarget; };
    3337  /** @returns a Pointer to the PNode of the Camera */
    34   static inline PNode* getCamera() { return State::camera; };
     38  static inline PNode* getCameraNode() { return State::cameraNode; };
    3539  /** @returns a Pointer to the CameraTarget */
    36   static inline PNode* getCameraTarget() { return State::cameraTarget; };
     40  static inline PNode* getCameraTargetNode() { return State::cameraTargetNode; };
    3741
    3842  ////////////////
     
    9599  State();
    96100
    97   static PNode*                 camera;             //!< A reference to the camera
    98   static PNode*                 cameraTarget;       //!< A reference to the cameraTarget
     101  static Camera*                camera;             //!< The current Camera.
     102  static CameraTarget*          cameraTarget;       //!< The Camera Target.
     103  static PNode*                 cameraNode;         //!< A reference to the camera
     104  static PNode*                 cameraTargetNode;   //!< A reference to the cameraTarget
    99105  static PNode*                 nullParent;         //!< A reference to the Null-PNode.
    100106  static ObjectManager*         objectManager;      //!< A reference to the current ObjectManager
Note: See TracChangeset for help on using the changeset viewer.