Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 15, 2007, 11:51:37 PM (17 years ago)
Author:
muellmic
Message:

changed camera handling for the vertical-scroller playmode. the top-down view in vertical scroller is now a proper camera-viewmode. also added a bool-state in the camera class to override the camera's event-listener and handle the camera-events (view buttons) in other classes. i used this to handle the camera parenting with the space-ship class, so other views as the top-down get useful and nice-looking again…. *taking-a-look-at-the-watch* oops damnit… i hope i won't forget the last tram ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/camera.h

    r9869 r10237  
    5858  inline float distance(const PNode* node) const { return distance(node->getAbsCoor()); }
    5959
     60  inline void setEventHandling(bool b) {this->eventHandling = b;}
     61  inline bool getEventHandling() {return this->eventHandling;}
     62
    6063  void tick(float dt);
    6164  void apply ();
     
    6669private:
    6770  CameraTarget*     target;          //!< The Target of the Camera (where this Camera Looks at)
     71
     72  bool              eventHandling;    //!< True, if the Camera handles the processing of events itself. Set false to overwrite the standard handling.
    6873
    6974  float             fovy;            //!< The field of view Angle (in degrees).
Note: See TracChangeset for help on using the changeset viewer.