Changeset 3450 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Mar 2, 2005, 4:10:19 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/base_entity.h
r3224 r3450 1 /*! 2 \file base_entity.h 3 \brief This includes the default values every entity should have. \ 4 */ 1 5 2 6 #ifndef _BASE_ENTITY_H … … 5 9 #include "stdincl.h" 6 10 7 11 //! The Base of each entity-Class 8 12 class BaseEntity { 9 13 -
orxonox/trunk/src/p_node.cc
r3433 r3450 45 45 /** 46 46 \brief constructor with coodinates 47 \param absCoordinate the Absolute coordinate of the Object 48 \param parent The parent-node of this node. 47 49 */ 48 50 PNode::PNode (Vector* absCoordinate, PNode* parent ) … … 111 113 /** 112 114 \brief set relative coordinates 113 \param rel ative coordinates to its parent115 \param relCoord relative coordinates to its parent 114 116 115 117 it is very importand, that you use this function, if you want to update the … … 135 137 136 138 /** 137 \brief get relative coordinates 138 \returns relative coordinates to its parent 139 \param absCoord set absolute coordinate 139 140 140 141 it is very importand, that you use this function, if you want to update the … … 196 197 /** 197 198 \brief set relative direction 198 \param rel ative directionto its parent199 \param relDir to its parent 199 200 200 201 it is very importand, that you use this function, if you want to update the … … 221 222 /** 222 223 \brief sets the absolute direction (0,0,1) 223 \param abs olute coordinates224 \param absDir absolute coordinates 224 225 225 226 it is very importand, that you use this function, if you want to update the … … 253 254 yea right... shorter... 254 255 256 \todo implement this 255 257 */ 256 258 void PNode::shiftDir (Quaternion* shift) … … 261 263 /** 262 264 \brief adds a child and makes this node to a parent 263 \param child reference265 \param pNode child reference 264 266 265 267 use this to add a child to this node. … … 273 275 /** 274 276 \brief adds a child and makes this node to a parent 275 \param child reference276 \param on which changes the child should also change ist state277 \param pNode child reference 278 \param mode on which changes the child should also change ist state 277 279 278 280 use this to add a child to this node. … … 287 289 288 290 /** 289 /brief removes a child from the node 291 \brief removes a child from the node 292 \param pNode the child to remove from this pNode. 290 293 */ 291 294 void PNode::removeChild (PNode* pNode) … … 297 300 /** 298 301 \brief sets the parent of this PNode 302 \param parent the Parent to set 299 303 */ 300 304 void PNode::setParent (PNode* parent) … … 305 309 /** 306 310 \brief set the mode of this parent manualy 311 \param mode the mode of the bind-type. 307 312 */ 308 313 void PNode::setMode (parentingMode mode) … … 337 342 /** 338 343 \brief updates the absCoordinate/absDirection 344 \param timeStamp The timestanp used for to look if calculations should be done 339 345 340 346 this is used to go through the parent-tree to update all the absolute coordinates … … 400 406 401 407 402 /* 408 /** 403 409 \brief tick 410 \param dt time to tick 404 411 */ 405 412 void PNode::processTick (float dt) … … 414 421 } 415 422 416 423 /** 424 \param dt time to tick 425 */ 417 426 void PNode::tick (float dt) 418 427 {} 419 428 420 429 /** 430 \brief displays some information about this pNode 431 */ 421 432 void PNode::debug() 422 433 { … … 428 439 429 440 430 /* 441 /** 431 442 \brief set the name of the node 432 443 … … 439 450 440 451 441 /* 452 /** 442 453 \brief gets the name of the node 443 454 */ -
orxonox/trunk/src/p_node.h
r3365 r3450 26 26 class PNode; /* forward decleration, so that parentEntry has access to PNode */ 27 27 28 //! enumeration for the different translation-binding-types 28 29 typedef enum parentingMode {MOVEMENT = 0, ROTATION, ALL}; 30 //! The default mode of the translation-binding. 29 31 #define DEFAULT_MODE ALL 30 32 33 //! Patent Node is a Engine to calculate the position of an Object in respect to the position of its parent. 31 34 class PNode : public BaseObject { 32 35 … … 38 41 void destroy (); 39 42 40 PNode* parent; //!a pointer to the parent node41 tList<PNode>* children; //!list of the children43 PNode* parent; //!< a pointer to the parent node 44 tList<PNode>* children; //!< list of the children 42 45 43 parentingMode mode; 46 parentingMode mode; //!< the mode of the binding 44 47 45 48 Vector getRelCoor (); … … 76 79 void debug (); 77 80 78 float timeStamp; //!this the timeStamp of when the abs{Coordinat, Direction} has been calculated79 char* objectName; 80 bool bAbsCoorChanged; 81 bool bRelCoorChanged; 82 bool b RelDirChanged;83 bool b AbsDirChanged;81 float timeStamp; //!< this the timeStamp of when the abs{Coordinat, Direction} has been calculated 82 char* objectName; //!< The name of the Object 83 bool bAbsCoorChanged; //!< If Absolute Coordinate has changed since last time we checked 84 bool bRelCoorChanged; //!< If Relative Coordinate has changed since last time we checked 85 bool bAbsDirChanged; //!< If Absolute Direction has changed since last time we checked 86 bool bRelDirChanged; //!< If Relative Direction has changed since last time we checked 84 87 85 Vector relCoordinate; //!coordinates relative to the parent86 Vector absCoordinate; //!absolute coordinates in the world ( from (0,0,0) )87 Quaternion relDirection; //! direction relative to the parent88 Quaternion absDirection; //! absolute direvtion in the world ( from (0,0,1) )88 Vector relCoordinate; //!< coordinates relative to the parent 89 Vector absCoordinate; //!< absolute coordinates in the world ( from (0,0,0) ) 90 Quaternion relDirection; //!< direction relative to the parent 91 Quaternion absDirection; //!< absolute direvtion in the world ( from (0,0,1) ) 89 92 90 93 }; -
orxonox/trunk/src/player.cc
r3396 r3450 23 23 using namespace std; 24 24 25 25 /** 26 \brief creates a new Player 27 \param isFree if the player is free 28 */ 26 29 Player::Player(bool isFree) : WorldEntity(isFree) 27 30 { … … 55 58 } 56 59 60 /** 61 \brief destructs the player 62 */ 57 63 Player::~Player () 58 64 { … … 60 66 } 61 67 68 /** 69 \brief effect that occurs after the player is spawned 70 */ 62 71 void Player::postSpawn () 63 72 { … … 70 79 } 71 80 81 /** 82 \brief the function called for each passing timeSnap 83 \param time The timespan passed since last update 84 */ 72 85 void Player::tick (float time) 73 86 { … … 76 89 } 77 90 91 /** 92 \brief if the player is hit, call this function 93 \param weapon hit by this weapon 94 \param loc ?? 95 */ 78 96 void Player::hit (WorldEntity* weapon, Vector loc) 79 97 { 80 98 } 81 99 100 /** 101 \brief action that happens when the player is destroyed. 102 */ 82 103 void Player::destroy () 83 104 { 84 105 } 85 106 107 /** 108 \brief Collision with another Entity has this effect 109 \param other the other colider 110 \param ownhitflags ?? 111 \param otherhitflags ?? 112 */ 86 113 void Player::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) 87 114 { 88 115 } 89 116 117 /** 118 \brief The connection to the command node 119 \param cmd the Command unit from witch to map 120 121 here the commands are mapped to the players movement/weaponary 122 */ 90 123 void Player::command (Command* cmd) 91 124 { … … 98 131 } 99 132 133 /** 134 \brief draws the player after transforming him. 135 */ 100 136 void Player::draw () 101 137 { … … 119 155 120 156 /*PN 121 void Player::getLookat(Location* locbuf)122 {157 void Player::getLookat(Location* locbuf) 158 { 123 159 *locbuf = *getLocation(); 124 160 //locbuf->dist += 5.0; 125 } 126 */ 127 161 } 162 */ 163 164 /** 165 \brief the action occuring if the player left the game 166 */ 128 167 void Player::leftWorld () 129 168 { 130 169 } 131 170 171 /** 172 \brief action if player moves 173 \param time the timeslice since the last frame 174 */ 132 175 void Player::move (float time) 133 176 { -
orxonox/trunk/src/player.h
r3396 r3450 33 33 34 34 private: 35 bool bUp, bDown, bLeft, bRight, bAscend, bDescend; 36 bool bFire; 37 Vector velocity; 38 float travelSpeed; 39 float acceleration; 40 GLuint objectList; 35 bool bUp; //!< up button pressed. 36 bool bDown; //!< down button pressed. 37 bool bLeft; //!< left button pressed. 38 bool bRight; //!< right button pressed. 39 bool bAscend; //!< ascend button pressed. 40 bool bDescend; //!< descend button presses. 41 bool bFire; //!< fire button pressed. 42 43 Vector velocity; //!< the velocity of the player. 44 float travelSpeed; //!< the current speed of the player (to make soft movement) 45 float acceleration; //!< the acceleration of the player. 41 46 42 47 void move(float time); -
orxonox/trunk/src/skysphere.cc
r3429 r3450 95 95 /** 96 96 \brief updates the position of the Skysphere 97 \param x the x-coordinate of the Center of the Sphere 98 \param y the y-coordinate of the Center of the Sphere 99 \param z the z-coordinate of the Center of the Sphere 97 \param sphereCenter The coordinate of the Center of the Sphere 100 98 101 99 This is normally done in the update-phase of world, so the Skysphere is always centered at the Camera.
Note: See TracChangeset
for help on using the changeset viewer.