Changeset 4836 in orxonox.OLD for orxonox/trunk/src/util/track
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- Location:
- orxonox/trunk/src/util/track
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/track/pilot_node.cc
r4597 r4836 26 26 27 27 /** 28 \briefstandard constructor28 * standard constructor 29 29 */ 30 30 PilotNode::PilotNode () … … 39 39 40 40 /** 41 \briefstandard deconstructor41 * standard deconstructor 42 42 */ 43 43 PilotNode::~PilotNode () … … 47 47 48 48 /** 49 \briefticks the node50 \param time the time about whitch to tick \49 * ticks the node 50 * @param time the time about whitch to tick \ 51 51 */ 52 52 void PilotNode::tick(float time) … … 57 57 58 58 /** 59 \briefaction if player moves60 \param time the timeslice since the last frame59 * action if player moves 60 * @param time the timeslice since the last frame 61 61 */ 62 62 void PilotNode::move (float time) … … 98 98 99 99 /** 100 \briefhandles events101 \param event the event that occured100 * handles events 101 * @param event the event that occured 102 102 */ 103 103 void PilotNode::process( const Event &event) -
orxonox/trunk/src/util/track/pilot_node.h
r4597 r4836 1 1 /*! 2 2 \file pilot_node.h 3 \briefDefinition of a PilotNode3 * Definition of a PilotNode 4 4 */ 5 5 -
orxonox/trunk/src/util/track/track_manager.cc
r4834 r4836 36 36 37 37 /** 38 \briefinitializes a TrackElement (sets the default values)38 * initializes a TrackElement (sets the default values) 39 39 */ 40 40 TrackElement::TrackElement() … … 66 66 67 67 /** 68 \briefdestroys all alocated memory)69 \todo eventually when deleting a TrackElement you would not like to delete all its preceding TrackElements68 * destroys all alocated memory) 69 @todo eventually when deleting a TrackElement you would not like to delete all its preceding TrackElements 70 70 */ 71 71 TrackElement::~TrackElement() … … 91 91 92 92 /** 93 \briefSearches through all the TrackElements for trackID.94 \param trackID The ID to search for.95 \returns The TrackElement if Found, NULL otherwise.93 * Searches through all the TrackElements for trackID. 94 * @param trackID The ID to search for. 95 * @returns The TrackElement if Found, NULL otherwise. 96 96 */ 97 97 TrackElement* TrackElement::findByID(unsigned int trackID) … … 120 120 121 121 /** 122 \briefSearches through all the TrackElements for a trackName123 \param trackName The name to search for.124 \returns The TrackElement if Found, NULL otherwise.122 * Searches through all the TrackElements for a trackName 123 * @param trackName The name to search for. 124 * @returns The TrackElement if Found, NULL otherwise. 125 125 */ 126 126 TrackElement* TrackElement::findByName(const char* trackName) … … 148 148 149 149 /** 150 \briefchecks if there are any BackLoops in the Track151 \returns true if NO loop was found, false Otherwise150 * checks if there are any BackLoops in the Track 151 * @returns true if NO loop was found, false Otherwise 152 152 You actually have to act on false!! 153 153 */ … … 164 164 165 165 /** 166 \briefchecks if there are any BackLoops in the Track.167 \param trackList A list of stored tracks, to search in.168 \returns true if NO loop was found, false Otherwise166 * checks if there are any BackLoops in the Track. 167 * @param trackList A list of stored tracks, to search in. 168 * @returns true if NO loop was found, false Otherwise 169 169 You actually have to act on false!! 170 170 */ … … 192 192 193 193 /** 194 \param childCount which child to return195 \returns the n-the children (starting at 0).194 * @param childCount which child to return 195 * @returns the n-the children (starting at 0). 196 196 Be aware, that when the trackElement has no Children, NULL will be returned 197 197 */ … … 214 214 215 215 /** 216 \briefprints out debug information about this TrackElement216 * prints out debug information about this TrackElement 217 217 */ 218 218 void TrackElement::debug() const … … 260 260 261 261 /** 262 \briefCONDITION that chooses the first child for the decision (static)263 \param nothing Nothing in this function264 \returns the chosen child262 * CONDITION that chooses the first child for the decision (static) 263 * @param nothing Nothing in this function 264 * @returns the chosen child 265 265 */ 266 266 int TrackElement::lowest(const void* nothing) const … … 270 270 271 271 /** 272 \briefCONDITION that chooses the last child for the decision (static)273 \param nothing Nothing in this function274 \returns the chosen child272 * CONDITION that chooses the last child for the decision (static) 273 * @param nothing Nothing in this function 274 * @returns the chosen child 275 275 */ 276 276 int TrackElement::highest(const void* nothing) const … … 280 280 281 281 /** 282 \briefCONDITION that chooses a random child for the decision (static)283 \param nothing Nothing in this function284 \returns the chosen child282 * CONDITION that chooses a random child for the decision (static) 283 * @param nothing Nothing in this function 284 * @returns the chosen child 285 285 */ 286 286 int TrackElement::random(const void* nothing) const … … 294 294 295 295 /** 296 \briefCONDITION that chooses child 0, if the node(probably Player)296 * CONDITION that chooses child 0, if the node(probably Player) 297 297 is left of its parent (z<0)) and 1/right otherwise. 298 \param node The node to act upon.299 \returns the chosen child298 * @param node The node to act upon. 299 * @returns the chosen child 300 300 */ 301 301 int TrackElement::leftRight(const void* node) const … … 311 311 312 312 /** 313 \briefCONDITION that chooses the child, that has the nearest distance to the node (probably player).314 \param node The node to act upon.315 \returns the chosen child313 * CONDITION that chooses the child, that has the nearest distance to the node (probably player). 314 * @param node The node to act upon. 315 * @returns the chosen child 316 316 317 317 This is rather dangerous, because one must carefully set the points on the curve. … … 354 354 //////////////////////// 355 355 /** 356 \briefstandard constructor356 * standard constructor 357 357 358 358 */ … … 391 391 392 392 /** 393 \briefloads a trackElement from a TiXmlElement394 \param root the TiXmlElement to load the Data from393 * loads a trackElement from a TiXmlElement 394 * @param root the TiXmlElement to load the Data from 395 395 */ 396 396 bool TrackManager::loadParams(const TiXmlElement* root) … … 449 449 450 450 /** 451 \briefstandard destructor451 * standard destructor 452 452 */ 453 453 TrackManager::~TrackManager() … … 469 469 // INITIALIZE // 470 470 /** 471 \briefreserves Space for childCount children472 \param childCount The Count of children to make space for.473 \param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement)471 * reserves Space for childCount children 472 * @param childCount The Count of children to make space for. 473 * @param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement) 474 474 */ 475 475 void TrackManager::initChildren(unsigned int childCount, TrackElement* trackElem) … … 513 513 514 514 /** 515 \briefSets the trackID we are working on.516 \param trackID the trackID we are working on515 * Sets the trackID we are working on. 516 * @param trackID the trackID we are working on 517 517 */ 518 518 void TrackManager::workOn(unsigned int trackID) … … 527 527 528 528 /** 529 \briefSets the TrackElement to work on530 \param trackName the Name of the Track to work on529 * Sets the TrackElement to work on 530 * @param trackName the Name of the Track to work on 531 531 */ 532 532 void TrackManager::workOnS(const char* trackName) … … 541 541 542 542 /** 543 \briefSets the Type of the Curve544 \param curveType The Type to set545 \param trackElem the TrackElement that should get a new Curve.546 547 \briefthis will possibly get obsolete during the process.543 * Sets the Type of the Curve 544 * @param curveType The Type to set 545 * @param trackElem the TrackElement that should get a new Curve. 546 547 * this will possibly get obsolete during the process. 548 548 */ 549 549 void TrackManager::setCurveType(CurveType curveType, TrackElement* trackElem) … … 564 564 565 565 /** 566 \param duration the duration of the TrackElement566 * @param duration the duration of the TrackElement 567 567 \see void TrackManager::setDuration(float duration, TrackElement* trackElem) 568 568 */ … … 573 573 574 574 /** 575 \briefSets the duration of the current path in seconds.576 \param duration The duration in seconds.577 \param trackElem The TrackElement to apply this to.575 * Sets the duration of the current path in seconds. 576 * @param duration The duration in seconds. 577 * @param trackElem The TrackElement to apply this to. 578 578 */ 579 579 void TrackManager::setDuration(float duration, TrackElement* trackElem) … … 587 587 588 588 /** 589 \briefadds a point to trackElem590 \param x x coord591 \param y y coord592 \param z z coord593 \param trackElem The TrackElement to add the Point to589 * adds a point to trackElem 590 * @param x x coord 591 * @param y y coord 592 * @param z z coord 593 * @param trackElem The TrackElement to add the Point to 594 594 */ 595 595 void TrackManager::addPoint(float x, float y, float z) … … 599 599 600 600 /** 601 \briefadds a point to trackElem602 \param newPoint The point to add.603 \param trackElem The TrackElement to add the Point to601 * adds a point to trackElem 602 * @param newPoint The point to add. 603 * @param trackElem The TrackElement to add the Point to 604 604 */ 605 605 void TrackManager::addPointV(Vector newPoint, TrackElement* trackElem) … … 618 618 619 619 /** 620 \briefadds a new Hot Point621 \param x: the x coordinate of the hotpoint622 \param y: the y coordinate of the hotpoint623 \param z: the z coordinate of the hotpoint620 * adds a new Hot Point 621 * @param x: the x coordinate of the hotpoint 622 * @param y: the y coordinate of the hotpoint 623 * @param z: the z coordinate of the hotpoint 624 624 \see int TrackManager::addHotPointV(Vector newPoint, TrackElement* trackElem) 625 625 */ … … 630 630 631 631 /** 632 \briefadds save/splitpoint.633 \param newPoint The point to add.634 \param trackElem if supplied it will add a hotpoint on this TrackElement635 \returns A Pointer to a newly appended Curve632 * adds save/splitpoint. 633 * @param newPoint The point to add. 634 * @param trackElem if supplied it will add a hotpoint on this TrackElement 635 * @returns A Pointer to a newly appended Curve 636 636 */ 637 637 int TrackManager::addHotPointV(Vector newPoint, TrackElement* trackElem) … … 646 646 } 647 647 648 // \todo HotPoint Handling.648 // @todo HotPoint Handling. 649 649 trackElem->curve->addNode(newPoint); 650 650 trackElem->nodeCount++; … … 653 653 654 654 /** 655 \todo this must be better655 @todo this must be better 656 656 */ 657 657 void TrackManager::setSavePointS(const char* nextElementName) … … 663 663 664 664 /** 665 \briefSets the last HotPoint into a savePoint.666 \param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement)667 \returns A Pointer to a newly appended Curve665 * Sets the last HotPoint into a savePoint. 666 * @param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement) 667 * @returns A Pointer to a newly appended Curve 668 668 669 669 If no HotPoint was defined the last added Point will be rendered into a savePoint. \n … … 688 688 689 689 /** 690 \briefadds some interessting non-linear movments through the level.691 \param count The Count of children the fork will produce690 * adds some interessting non-linear movments through the level. 691 * @param count The Count of children the fork will produce 692 692 693 693 If no HotPoint was defined the last added Point will be rendered into a fork. \n … … 709 709 710 710 /** 711 \param count how many children to produce712 \param ... the information on the children (these are the Stings of their names711 * @param count how many children to produce 712 * @param ... the information on the children (these are the Stings of their names 713 713 \see TrackManager::fork(unsigned int count, ...) 714 714 … … 747 747 748 748 /** 749 \briefadds some interessting non-linear movments through the level.750 \param count The Count of childrens the current HotPoint will have.751 \param trackIDs A Pointer to an Array of ints which will hold the trackID's (the user will have to reserve space for this).752 \param trackNames the names for the tracks as a char-arrey-array753 \param trackElem The TrackElement to appy this to. (if NULL choose this->currentTrackElement)749 * adds some interessting non-linear movments through the level. 750 * @param count The Count of childrens the current HotPoint will have. 751 * @param trackIDs A Pointer to an Array of ints which will hold the trackID's (the user will have to reserve space for this). 752 * @param trackNames the names for the tracks as a char-arrey-array 753 * @param trackElem The TrackElement to appy this to. (if NULL choose this->currentTrackElement) 754 754 \see TrackManager::fork(unsigned int count, ...) 755 755 */ … … 770 770 771 771 /** 772 \briefdecides under what condition a certain Path will be chosen.773 \param trackID the trackID to apply this to.774 \param cond the CONDITION of the decision775 \param subject the Subject that will be decided upon with CONDITION cond.772 * decides under what condition a certain Path will be chosen. 773 * @param trackID the trackID to apply this to. 774 * @param cond the CONDITION of the decision 775 * @param subject the Subject that will be decided upon with CONDITION cond. 776 776 */ 777 777 void TrackManager::condition(unsigned int trackID, CONDITION cond, void* subject) … … 781 781 782 782 /** 783 \briefdecides under what condition a certain Path will be chosen.784 \param cond the CONDITION of the decision785 \param subject the Subject that will be decided upon with CONDITION cond.786 \param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement)783 * decides under what condition a certain Path will be chosen. 784 * @param cond the CONDITION of the decision 785 * @param subject the Subject that will be decided upon with CONDITION cond. 786 * @param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement) 787 787 */ 788 788 void TrackManager::condition(CONDITION cond, void* subject, TrackElement* trackElem) … … 823 823 824 824 /** 825 \briefjoins some tracks together again.826 \param count The count of Paths to join.825 * joins some tracks together again. 826 * @param count The count of Paths to join. 827 827 828 828 Join will set the localTime to the longest time a Path has to get to this Point. \n … … 844 844 845 845 /** 846 \briefJoins some Tracks together again.847 \param count The count of trackElements to join846 * Joins some Tracks together again. 847 * @param count The count of trackElements to join 848 848 \see void TrackManager::join(unsigned int count, ...) 849 849 … … 894 894 895 895 /** 896 \briefjoins some tracks together again.897 \param count The count of Paths to join.898 \param trackIDs an Array with the trackID's to join896 * joins some tracks together again. 897 * @param count The count of Paths to join. 898 * @param trackIDs an Array with the trackID's to join 899 899 900 900 \see void TrackManager::join(unsigned int count, ...) … … 988 988 989 989 /** 990 \brieffinalizes the TrackSystem. after this it will not be editable anymore991 992 \todo check for any inconsistencies, output errors990 * finalizes the TrackSystem. after this it will not be editable anymore 991 992 @todo check for any inconsistencies, output errors 993 993 */ 994 994 void TrackManager::finalize() … … 1036 1036 1037 1037 /** 1038 \briefcalculates the Position for the localTime of the Track.1039 \returns the calculated Position1038 * calculates the Position for the localTime of the Track. 1039 * @returns the calculated Position 1040 1040 */ 1041 1041 Vector TrackManager::calcPos() const … … 1045 1045 1046 1046 /** 1047 \briefcalculates the Rotation for the localTime of the Track.1048 \returns the calculated Rotation1047 * calculates the Rotation for the localTime of the Track. 1048 * @returns the calculated Rotation 1049 1049 */ 1050 1050 Vector TrackManager::calcDir() const … … 1054 1054 1055 1055 /** 1056 \returns the current Width of the track1056 * @returns the current Width of the track 1057 1057 */ 1058 1058 float TrackManager::getWidth() const … … 1062 1062 1063 1063 /** 1064 \briefAdvances the local-time of the Track around dt1065 \param dt The time about which to advance.1064 * Advances the local-time of the Track around dt 1065 * @param dt The time about which to advance. 1066 1066 1067 1067 This function also checks, if the TrackElement has to be changed. … … 1104 1104 1105 1105 /** 1106 \briefJumps to a certain point on the Track.1107 \param time The time on the Track to jump to.1106 * Jumps to a certain point on the Track. 1107 * @param time The time on the Track to jump to. 1108 1108 1109 1109 This should be used to Jump backwards on a Track, because moving forward means to change between the Path. (it then tries to choose the default.) … … 1125 1125 1126 1126 /** 1127 \briefa Function that decides which Path we should follow.1128 \param trackElem The Path to choose.1127 * a Function that decides which Path we should follow. 1128 * @param trackElem The Path to choose. 1129 1129 1130 1130 */ … … 1135 1135 1136 1136 /** 1137 \briefSets the PNode, that should be moved along the Tack1138 \param bindSlave the PNode to set1137 * Sets the PNode, that should be moved along the Tack 1138 * @param bindSlave the PNode to set 1139 1139 */ 1140 1140 void TrackManager::setBindSlave(PNode* bindSlave) … … 1144 1144 1145 1145 /** 1146 \returns the main TrackNode1146 * @returns the main TrackNode 1147 1147 */ 1148 1148 PNode* TrackManager::getTrackNode() … … 1154 1154 1155 1155 /** 1156 \briefImports a model of the Graph into the OpenGL-environment.1157 \param dt The Iterator used in seconds for Painting the Graph.1156 * Imports a model of the Graph into the OpenGL-environment. 1157 * @param dt The Iterator used in seconds for Painting the Graph. 1158 1158 1159 1159 This is for testing facility only. Do this if you want to see the Path inside the Level. … … 1178 1178 1179 1179 /** 1180 \briefoutputs debug information about the trackManager1181 \param level how much debug1180 * outputs debug information about the trackManager 1181 * @param level how much debug 1182 1182 */ 1183 1183 void TrackManager::debug(unsigned int level) const -
orxonox/trunk/src/util/track/track_manager.h
r4834 r4836 1 1 /*! 2 2 \file track_manager.h 3 \briefmanages all tracks defined in the world and the path the player takes3 * manages all tracks defined in the world and the path the player takes 4 4 5 5 it is a container for all tracks and all track-nodes. it manages the movement of … … 136 136 public: 137 137 virtual ~TrackManager(); 138 /** \returns a Pointer to the only object of this Class */138 /** @returns a Pointer to the only object of this Class */ 139 139 inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; }; 140 140 … … 145 145 void workOnS(const char* trackName); 146 146 147 /** \see setCurveType(CurveType curveType, TrackElement* trackElem); \param curveType the type of the Curve */147 /** \see setCurveType(CurveType curveType, TrackElement* trackElem); @param curveType the type of the Curve */ 148 148 inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);}; 149 149 void setCurveType(CurveType curveType, TrackElement* trackElem); -
orxonox/trunk/src/util/track/track_node.cc
r4597 r4836 26 26 27 27 /** 28 \briefstandard constructor28 * standard constructor 29 29 */ 30 30 TrackNode::TrackNode () … … 39 39 40 40 /** 41 \briefstandard deconstructor41 * standard deconstructor 42 42 */ 43 43 TrackNode::~TrackNode () -
orxonox/trunk/src/util/track/track_node.h
r4489 r4836 1 1 /*! 2 2 \file track_node.h 3 \briefDefinition of the TrackNode are located here3 * Definition of the TrackNode are located here 4 4 5 5 the TrackNode is the node, that follows the Track (and the TrackManager)
Note: See TracChangeset
for help on using the changeset viewer.