- Timestamp:
- Jun 3, 2005, 1:33:01 AM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/camera.cc
r4444 r4490 77 77 } 78 78 79 80 79 /** 81 80 \brief sets a new AspectRatio … … 107 106 } 108 107 108 /** 109 \brief sets the new VideoMode and initializes iteration to it. 110 \param mode the mode to change to. 111 */ 109 112 void Camera::setViewMode(ViewMode mode) 110 113 { … … 141 144 /** 142 145 \brief Updates the position of the camera. 143 \param dt The time that elapsed.146 \param dt: The time that elapsed. 144 147 */ 145 148 void Camera::tick(float dt) … … 191 194 } 192 195 193 196 /** 197 \brief processes an event 198 \param event: the event to process 199 */ 194 200 void Camera::process(const Event &event) 195 201 { -
orxonox/trunk/src/world_entities/camera.h
r4414 r4490 15 15 class Event; 16 16 17 enum ViewMode{VIEW_NORMAL, VIEW_BEHIND, VIEW_FRONT, VIEW_LEFT, VIEW_RIGHT, VIEW_TOP}; 17 //! an enumerator for different types of view 18 typedef enum ViewMode{ VIEW_NORMAL, 19 VIEW_BEHIND, 20 VIEW_FRONT, 21 VIEW_LEFT, 22 VIEW_RIGHT, 23 VIEW_TOP }; 18 24 19 25 //! Camera … … 23 29 class Camera : public PNode, public EventListener 24 30 { 25 private:26 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at)27 28 float fovy; //!< The field of view Angle (in degrees).29 float aspectRatio; //!< The aspect ratio (width / height).30 float nearClip; //!< The near clipping plane.31 float farClip; //!< The far clipping plane.32 33 Vector toRelCoor;34 float toFovy;35 36 31 public: 37 32 Camera(void); … … 50 45 51 46 void process(const Event &event); 47 48 private: 49 CameraTarget* target; //!< The Target of the Camera (where this Camera Looks at) 50 51 float fovy; //!< The field of view Angle (in degrees). 52 float aspectRatio; //!< The aspect ratio (width / height). 53 float nearClip; //!< The near clipping plane. 54 float farClip; //!< The far clipping plane. 55 56 Vector toRelCoor; //!< The relativeCoordinate to move the camera to. 57 float toFovy; //!< The fovy-mode to iterate to. 52 58 }; 53 59 -
orxonox/trunk/src/world_entities/environment.cc
r4094 r4490 26 26 27 27 28 28 /** 29 \brief creates an environment 30 */ 29 31 Environment::Environment () : WorldEntity() 30 32 { 31 this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL); 33 32 34 } 33 35 34 36 35 37 /** 38 \brief deletes an environment 39 */ 36 40 Environment::~Environment () 37 41 { … … 39 43 } 40 44 45 /** 46 \brief ticks the environment 47 \param time the time about which to tick 48 */ 41 49 void Environment::tick (float time) {} 42 50 51 /** 52 \brief if a hit occures 53 */ 43 54 void Environment::hit (WorldEntity* weapon, Vector* loc) {} 44 55 56 /** 57 \brief destroys an Environment 58 */ 45 59 void Environment::destroy () {} 46 60 61 /** 62 \brief a collision with some ship 63 */ 47 64 void Environment::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) {} 48 65 66 /** 67 \brief draws the Environment 68 */ 49 69 void Environment::draw () 50 70 { -
orxonox/trunk/src/world_entities/environment.h
r3578 r4490 1 /*! 2 \file environment.h 3 \brief This file handles the environment of the game 4 */ 5 1 6 #ifndef _ENVIRONEMENT_H 2 7 #define _ENVIRONEMENT_H … … 4 9 #include "world_entity.h" 5 10 6 11 //! environment of orxonox 12 /** 13 everything that does not interact with the player comes here 14 Environment is a container for all the worldEntities that are non-interactive 15 */ 7 16 class Environment : public WorldEntity 8 17 {
Note: See TracChangeset
for help on using the changeset viewer.