Changeset 4836 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.cc
r4746 r4836 21 21 22 22 /** 23 \briefcreates a new Animation23 * creates a new Animation 24 24 25 25 This also adds the Animation automatically to the AnimationPlayer's list … … 44 44 45 45 /** 46 \briefdestructs the Animation46 * destructs the Animation 47 47 48 48 this also takes the animation out of the AnimationPlayer's list (if it is there) … … 54 54 55 55 /** 56 \brieftells the AnimationPlayer, that we do not wish to handle this animation56 * tells the AnimationPlayer, that we do not wish to handle this animation 57 57 automatically. 58 58 … … 66 66 67 67 /** 68 \briefSets the infinitymode69 \param postInfinity How the Animation should advance after the last Keyframe68 * Sets the infinitymode 69 * @param postInfinity How the Animation should advance after the last Keyframe 70 70 */ 71 71 void Animation::setInfinity(ANIM_INFINITY postInfinity) … … 75 75 76 76 /** 77 \briefhandles the Animation if it gets out of boundraries eg. if animation is finished.77 * handles the Animation if it gets out of boundraries eg. if animation is finished. 78 78 */ 79 79 void Animation::handleInfinity() … … 99 99 100 100 /** 101 \briefplays the animation back from the current Time forward101 * plays the animation back from the current Time forward 102 102 */ 103 103 void Animation::play() … … 108 108 109 109 /** 110 \briefplays the Next n keyframes111 \param n the Count of keyFrames to play.110 * plays the Next n keyframes 111 * @param n the Count of keyFrames to play. 112 112 */ 113 113 void Animation::playNextKeyframes(int n) … … 118 118 119 119 /** 120 \briefStops the animation. eg. pause(); rewind();120 * Stops the animation. eg. pause(); rewind(); 121 121 */ 122 122 void Animation::stop() … … 130 130 131 131 /** 132 \briefPauses the animation. Stays at the current Time132 * Pauses the animation. Stays at the current Time 133 133 */ 134 134 void Animation::pause() … … 138 138 139 139 /** 140 \briefreplays the animation, eg. rewind();play();140 * replays the animation, eg. rewind();play(); 141 141 */ 142 142 void Animation::replay() -
orxonox/trunk/src/util/animation/animation.h
r4746 r4836 16 16 //! An enumerator of Functions to describe the flow of the Animation 17 17 /** 18 \todo check with Patrick it of18 @todo check with Patrick it of 19 19 20 20 description in speed to the next keyframe: … … 88 88 virtual void rewind() = 0; 89 89 90 /** \brief A virtual function that ticks the animation \param dt the time passed */90 /** \brief A virtual function that ticks the animation @param dt the time passed */ 91 91 virtual void tick(float dt) = 0; 92 92 93 /** \returns the BaseObject, this animation operates on */93 /** @returns the BaseObject, this animation operates on */ 94 94 BaseObject* getBaseObject() const { return this->baseObject; }; 95 95 96 /** \returns if the Animation should be deleted */96 /** @returns if the Animation should be deleted */ 97 97 inline bool ifDelete() { return bDelete; }; 98 98 … … 124 124 public: 125 125 inline aTest() { last = 0.0;} 126 /** \brief a little debug information to show the results of this class \param f new value */126 /** \brief a little debug information to show the results of this class @param f new value */ 127 127 inline void littleDebug(float f) { diff = f - last; printf("f=%f, diff=%f\n", f,diff); last = f;} 128 128 private: -
orxonox/trunk/src/util/animation/animation3d.cc
r4746 r4836 28 28 29 29 /** 30 \briefstandard constructor30 * standard constructor 31 31 */ 32 32 Animation3D::Animation3D(PNode* object) … … 50 50 51 51 /** 52 \briefstandard deconstructor52 * standard deconstructor 53 53 54 54 deletes all the Keyframes … … 69 69 70 70 /** 71 \briefrewinds the Animation to the beginning (first KeyFrame and time == 0)71 * rewinds the Animation to the beginning (first KeyFrame and time == 0) 72 72 */ 73 73 void Animation3D::rewind() … … 81 81 82 82 /** 83 \briefAppends a new Keyframe84 \param position The position of the new Keyframe85 \param direction The direction of the new Keyframe.86 \param duration The duration from the new KeyFrame to the next one87 \param animFuncMov The function to animate position between this keyFrame and the next one88 \param animFuncRot The function to animate rotation between this keyFrame and the next one83 * Appends a new Keyframe 84 * @param position The position of the new Keyframe 85 * @param direction The direction of the new Keyframe. 86 * @param duration The duration from the new KeyFrame to the next one 87 * @param animFuncMov The function to animate position between this keyFrame and the next one 88 * @param animFuncRot The function to animate rotation between this keyFrame and the next one 89 89 */ 90 90 void Animation3D::addKeyFrame(Vector position, Quaternion direction, float duration, … … 130 130 131 131 /** 132 \briefticks the Animation133 \param dt how much time to tick132 * ticks the Animation 133 * @param dt how much time to tick 134 134 */ 135 135 void Animation3D::tick(float dt) … … 167 167 168 168 /** 169 \briefSets The kind of movment Animation between this keyframe and the next one170 \param animFuncMov: The Type of Animation to set169 * Sets The kind of movment Animation between this keyframe and the next one 170 * @param animFuncMov: The Type of Animation to set 171 171 */ 172 172 void Animation3D::setAnimFuncMov(ANIM_FUNCTION animFuncMov) … … 216 216 217 217 /** 218 \briefstays at the value of the currentKeyFrame219 \param timePassed The time passed since this Keyframe began218 * stays at the value of the currentKeyFrame 219 * @param timePassed The time passed since this Keyframe began 220 220 */ 221 221 void Animation3D::mConstant(float timePassed) const … … 232 232 233 233 /** 234 \brieflinear interpolation between this keyframe and the next one235 \param timePassed The time passed since this Keyframe began236 237 \todo implement also do this for direction234 * linear interpolation between this keyframe and the next one 235 * @param timePassed The time passed since this Keyframe began 236 237 @todo implement also do this for direction 238 238 */ 239 239 void Animation3D::mLinear(float timePassed) const … … 245 245 246 246 /** 247 \briefa Sinusodial Interpolation between this keyframe and the next one248 \param timePassed The time passed since this Keyframe began249 250 \todo implement247 * a Sinusodial Interpolation between this keyframe and the next one 248 * @param timePassed The time passed since this Keyframe began 249 250 @todo implement 251 251 */ 252 252 void Animation3D::mSine(float timePassed) const … … 264 264 265 265 /** 266 \briefa cosine interpolation between this keyframe and the next one267 \param timePassed The time passed since this Keyframe began268 269 \todo implement266 * a cosine interpolation between this keyframe and the next one 267 * @param timePassed The time passed since this Keyframe began 268 269 @todo implement 270 270 */ 271 271 void Animation3D::mCosine(float timePassed) const … … 287 287 288 288 /** 289 \briefan exponential interpolation between this keyframe and the next one290 \param timePassed The time passed since this Keyframe began289 * an exponential interpolation between this keyframe and the next one 290 * @param timePassed The time passed since this Keyframe began 291 291 */ 292 292 void Animation3D::mExp(float timePassed) const … … 297 297 298 298 /** 299 \briefa negative exponential interpolation between this keyframe and the next one300 \param timePassed The time passed since this Keyframe began299 * a negative exponential interpolation between this keyframe and the next one 300 * @param timePassed The time passed since this Keyframe began 301 301 */ 302 302 void Animation3D::mNegExp(float timePassed) const … … 316 316 317 317 /** 318 \briefa quadratic interpolation between this keyframe and the next one319 \param timePassed The time passed since this Keyframe began320 321 \todo implement318 * a quadratic interpolation between this keyframe and the next one 319 * @param timePassed The time passed since this Keyframe began 320 321 @todo implement 322 322 */ 323 323 void Animation3D::mQuadratic(float timePassed) const … … 328 328 329 329 /** 330 \briefsome random animation (fluctuating)331 \param timePassed The time passed since this Keyframe began330 * some random animation (fluctuating) 331 * @param timePassed The time passed since this Keyframe began 332 332 */ 333 333 void Animation3D::mRandom(float timePassed) const … … 346 346 347 347 /** 348 \briefSets The kind of rotation Animation between this keyframe and the next one349 \param animFuncRot: The Type of Animation to set348 * Sets The kind of rotation Animation between this keyframe and the next one 349 * @param animFuncRot: The Type of Animation to set 350 350 */ 351 351 void Animation3D::setAnimFuncRot(ANIM_FUNCTION animFuncRot) … … 385 385 386 386 /** 387 \briefstays at the value of the currentKeyFrame388 \param timePassed The time passed since this Keyframe began387 * stays at the value of the currentKeyFrame 388 * @param timePassed The time passed since this Keyframe began 389 389 */ 390 390 void Animation3D::rConstant(float timePassed) const … … 394 394 395 395 /** 396 \brieflinear interpolation between this keyframe and the next one397 \param timePassed The time passed since this Keyframe began398 399 \todo implement also do this for direction396 * linear interpolation between this keyframe and the next one 397 * @param timePassed The time passed since this Keyframe began 398 399 @todo implement also do this for direction 400 400 */ 401 401 void Animation3D::rLinear(float timePassed) const … … 407 407 408 408 /** 409 \briefa Sinusodial Interpolation between this keyframe and the next one410 \param timePassed The time passed since this Keyframe began411 412 \todo implement409 * a Sinusodial Interpolation between this keyframe and the next one 410 * @param timePassed The time passed since this Keyframe began 411 412 @todo implement 413 413 */ 414 414 void Animation3D::rSine(float timePassed) const … … 427 427 428 428 /** 429 \briefa cosine interpolation between this keyframe and the next one430 \param timePassed The time passed since this Keyframe began431 432 \todo implement429 * a cosine interpolation between this keyframe and the next one 430 * @param timePassed The time passed since this Keyframe began 431 432 @todo implement 433 433 */ 434 434 void Animation3D::rCosine(float timePassed) const … … 443 443 444 444 /** 445 \briefan exponential interpolation between this keyframe and the next one446 \param timePassed The time passed since this Keyframe began445 * an exponential interpolation between this keyframe and the next one 446 * @param timePassed The time passed since this Keyframe began 447 447 */ 448 448 void Animation3D::rExp(float timePassed) const … … 452 452 453 453 /** 454 \briefa negative exponential interpolation between this keyframe and the next one455 \param timePassed The time passed since this Keyframe began454 * a negative exponential interpolation between this keyframe and the next one 455 * @param timePassed The time passed since this Keyframe began 456 456 */ 457 457 void Animation3D::rNegExp(float timePassed) const … … 465 465 466 466 /** 467 \briefa quadratic interpolation between this keyframe and the next one468 \param timePassed The time passed since this Keyframe began469 470 \todo implement467 * a quadratic interpolation between this keyframe and the next one 468 * @param timePassed The time passed since this Keyframe began 469 470 @todo implement 471 471 */ 472 472 void Animation3D::rQuadratic(float timePassed) const … … 476 476 477 477 /** 478 \briefsome random animation (fluctuating)479 \param timePassed The time passed since this Keyframe began478 * some random animation (fluctuating) 479 * @param timePassed The time passed since this Keyframe began 480 480 */ 481 481 void Animation3D::rRandom(float timePassed) const -
orxonox/trunk/src/util/animation/animation_player.cc
r4746 r4836 24 24 25 25 /** 26 \briefstandard constructor26 * standard constructor 27 27 */ 28 28 AnimationPlayer::AnimationPlayer () … … 36 36 37 37 /** 38 \briefthe singleton reference to this class38 * the singleton reference to this class 39 39 */ 40 40 AnimationPlayer* AnimationPlayer::singletonRef = NULL; 41 41 42 42 /** 43 \briefstandard deconstructor43 * standard deconstructor 44 44 45 45 !! DANGER !! when unloading the AnimationPlayer no other Function … … 58 58 59 59 /** 60 \briefadds an Animation to the AnimationList.61 \param animation the Animation to handle60 * adds an Animation to the AnimationList. 61 * @param animation the Animation to handle 62 62 63 63 when adding a Animation the Animation will too be deleted when … … 71 71 72 72 /** 73 \briefremoves an Animation from the Animation List, WITHOUT deleting it.74 \param animation the Anmination to remove from the List73 * removes an Animation from the Animation List, WITHOUT deleting it. 74 * @param animation the Anmination to remove from the List 75 75 */ 76 76 void AnimationPlayer::removeAnimation(Animation* animation) … … 80 80 81 81 /** 82 \briefempties the list AND deletes all the Animations82 * empties the list AND deletes all the Animations 83 83 */ 84 84 void AnimationPlayer::flush() … … 100 100 101 101 /** 102 \briefTicks all the animations in animationList103 \param timePassed the time passed since the last tick.102 * Ticks all the animations in animationList 103 * @param timePassed the time passed since the last tick. 104 104 */ 105 105 void AnimationPlayer::tick(float timePassed) … … 124 124 } 125 125 /** 126 \briefstarts playing the AnimationPlayer126 * starts playing the AnimationPlayer 127 127 */ 128 128 void AnimationPlayer::play() … … 132 132 133 133 /** 134 \briefpauses playing of the AnimationPlayer134 * pauses playing of the AnimationPlayer 135 135 */ 136 136 void AnimationPlayer::pause() … … 140 140 141 141 /** 142 \returns the animation from a certain baseobject142 * @returns the animation from a certain baseobject 143 143 if multiple are found, it just retruns the first one 144 144 if none is found it returns NULL … … 164 164 165 165 /** 166 \briefOutputs some nice debug-information166 * Outputs some nice debug-information 167 167 */ 168 168 void AnimationPlayer::debug() -
orxonox/trunk/src/util/animation/animation_player.h
r4746 r4836 29 29 30 30 public: 31 /** \returns a Pointer to the only object of this Class */31 /** @returns a Pointer to the only object of this Class */ 32 32 inline static AnimationPlayer* getInstance() { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; }; 33 33 -
orxonox/trunk/src/util/animation/t_animation.h
r4746 r4836 77 77 78 78 /** 79 \briefstandard constructor79 * standard constructor 80 80 */ 81 81 template<class T> … … 99 99 100 100 /** 101 \briefstandard deconstructor101 * standard deconstructor 102 102 103 103 deletes all the Keyframes … … 119 119 120 120 /** 121 \briefrewinds the Animation to the beginning (first KeyFrame and time == 0)121 * rewinds the Animation to the beginning (first KeyFrame and time == 0) 122 122 */ 123 123 template<class T> … … 131 131 132 132 /** 133 \briefsets the Function we want to animate134 \param object from what object do we want to animate135 \param funcToAnim which function133 * sets the Function we want to animate 134 * @param object from what object do we want to animate 135 * @param funcToAnim which function 136 136 */ 137 137 template<class T> … … 143 143 144 144 /** 145 \briefAppends a new Keyframe146 \param value the value of the new KeyFrame147 \param duration The duration from the new KeyFrame to the next one148 \param animFunc The function to animate between this keyFrame and the next one145 * Appends a new Keyframe 146 * @param value the value of the new KeyFrame 147 * @param duration The duration from the new KeyFrame to the next one 148 * @param animFunc The function to animate between this keyFrame and the next one 149 149 */ 150 150 template<class T> … … 181 181 182 182 /** 183 \briefticks the Animation184 \param dt how much time to tick183 * ticks the Animation 184 * @param dt how much time to tick 185 185 */ 186 186 template<class T> … … 217 217 218 218 /** 219 \briefSets The kind of Animation between this keyframe and the next one220 \param animFunc The Type of Animation to set219 * Sets The kind of Animation between this keyframe and the next one 220 * @param animFunc The Type of Animation to set 221 221 */ 222 222 template<class T> … … 259 259 // animation functions 260 260 /** 261 \briefstays at the value of the currentKeyFrame262 \param timePassed The time passed since this Keyframe began261 * stays at the value of the currentKeyFrame 262 * @param timePassed The time passed since this Keyframe began 263 263 */ 264 264 template<class T> … … 269 269 270 270 /** 271 \brieflinear interpolation between this keyframe and the next one272 \param timePassed The time passed since this Keyframe began271 * linear interpolation between this keyframe and the next one 272 * @param timePassed The time passed since this Keyframe began 273 273 */ 274 274 template<class T> … … 280 280 281 281 /** 282 \briefa Sinusodial Interpolation between this keyframe and the next one283 \param timePassed The time passed since this Keyframe began282 * a Sinusodial Interpolation between this keyframe and the next one 283 * @param timePassed The time passed since this Keyframe began 284 284 */ 285 285 template<class T> … … 299 299 300 300 /** 301 \briefa cosine interpolation between this keyframe and the next one302 \param timePassed The time passed since this Keyframe began301 * a cosine interpolation between this keyframe and the next one 302 * @param timePassed The time passed since this Keyframe began 303 303 */ 304 304 template<class T> … … 311 311 312 312 /** 313 \briefan exponential interpolation between this keyframe and the next one314 \param timePassed The time passed since this Keyframe began313 * an exponential interpolation between this keyframe and the next one 314 * @param timePassed The time passed since this Keyframe began 315 315 */ 316 316 template<class T> … … 322 322 323 323 /** 324 \briefa negative exponential interpolation between this keyframe and the next one325 \param timePassed The time passed since this Keyframe began324 * a negative exponential interpolation between this keyframe and the next one 325 * @param timePassed The time passed since this Keyframe began 326 326 */ 327 327 template<class T> … … 334 334 335 335 /** 336 \briefa quadratic interpolation between this keyframe and the next one337 \param timePassed The time passed since this Keyframe began336 * a quadratic interpolation between this keyframe and the next one 337 * @param timePassed The time passed since this Keyframe began 338 338 */ 339 339 template<class T> … … 344 344 345 345 /** 346 \briefsome random animation (fluctuating)347 \param timePassed The time passed since this Keyframe began346 * some random animation (fluctuating) 347 * @param timePassed The time passed since this Keyframe began 348 348 */ 349 349 template<class T> -
orxonox/trunk/src/util/garbage_collector.cc
r4652 r4836 31 31 32 32 /** 33 \briefstandard constructor33 * standard constructor 34 34 */ 35 35 GarbageCollector::GarbageCollector () … … 44 44 45 45 /** 46 \briefstandard deconstructor46 * standard deconstructor 47 47 */ 48 48 GarbageCollector::~GarbageCollector () … … 52 52 53 53 /** 54 \briefthis sets the collection delay55 \param delay: the delay54 * this sets the collection delay 55 * @param delay: the delay 56 56 57 57 after this delay, the garbage collector starts its work and begins to collect unused object … … 66 66 67 67 /** 68 \briefthis foreces a garbage collection68 * this foreces a garbage collection 69 69 70 70 if this function is called, the gc tries to initiate the garbage collection routines. actually … … 81 81 82 82 /** 83 \briefthis ticks the GarbageCollector to give it the time pulse84 \param time: the time passed since last tick83 * this ticks the GarbageCollector to give it the time pulse 84 * @param time: the time passed since last tick 85 85 86 86 like every other tick function eg. worldentity … … 93 93 94 94 /** 95 \briefthis updated the gargabe collection, if the time is ready95 * this updated the gargabe collection, if the time is ready 96 96 */ 97 97 void GarbageCollector::update() -
orxonox/trunk/src/util/garbage_collector.h
r4746 r4836 1 /*! 1 /*! 2 2 \file garbage_collector.h 3 \briefDefinition of the proto class template, used quickly start work4 \todo Example: this shows how to use simply add a Marker that here has to be done something.3 * Definition of the proto class template, used quickly start work 4 @todo Example: this shows how to use simply add a Marker that here has to be done something. 5 5 6 6 The Protoclass exists, to help you quikly getting the run for how to develop in orxonox. … … 16 16 //! this class maintains the garbage collection. 17 17 /** 18 the class is been ticked by the world.cc and goes through the 18 the class is been ticked by the world.cc and goes through the 19 19 world_entity list to clean out all unused entities. 20 20 */ … … 23 23 public: 24 24 virtual ~GarbageCollector(); 25 /** \returns a Pointer to the only object of this Class */25 /** @returns a Pointer to the only object of this Class */ 26 26 inline static GarbageCollector* getInstance() { if (!singletonRef) singletonRef = new GarbageCollector(); return singletonRef; }; 27 27 -
orxonox/trunk/src/util/loading/factory.cc
r4739 r4836 26 26 27 27 /** 28 \briefconstructor28 * constructor 29 29 30 30 set everything to zero and define factoryName … … 44 44 45 45 /** 46 \briefdestructor46 * destructor 47 47 48 48 clear the Q … … 58 58 59 59 /** 60 \briefadd a Factory to the Factory Queue61 \param factory a Factory to be registered60 * add a Factory to the Factory Queue 61 * @param factory a Factory to be registered 62 62 */ 63 63 void Factory::registerFactory( Factory* factory) -
orxonox/trunk/src/util/loading/factory.h
r4746 r4836 33 33 Creates a factory to a Loadable Class. 34 34 this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 35 \todo make factoryName a BaseObject-parameter. (else it would be redundant)35 @todo make factoryName a BaseObject-parameter. (else it would be redundant) 36 36 */ 37 37 #define CREATE_FACTORY(CLASS_NAME) tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) … … 48 48 49 49 static void registerFactory( Factory* factory); 50 /** \brief sets the Next factory in the list \param nextFactory the next factory */50 /** \brief sets the Next factory in the list @param nextFactory the next factory */ 51 51 inline void setNext( Factory* nextFactory) { this->next = nextFactory; }; 52 /** \returns the first factory */52 /** @returns the first factory */ 53 53 static Factory* getFirst() { return Factory::first; }; 54 /** \returns the next factory */54 /** @returns the next factory */ 55 55 Factory* getNext() const { return this->next; }; 56 56 … … 64 64 65 65 /** 66 \briefa factory that is able to load any kind of Object66 * a factory that is able to load any kind of Object 67 67 (this is a Functor) 68 68 */ … … 78 78 79 79 /** 80 \briefconstrunts a factory with81 \param factoryName the name of the factory80 * construnts a factory with 81 * @param factoryName the name of the factory 82 82 */ 83 83 template<class T> -
orxonox/trunk/src/util/loading/game_loader.cc
r4817 r4836 37 37 38 38 /** 39 \briefsimple constructor39 * simple constructor 40 40 */ 41 41 GameLoader::GameLoader () … … 47 47 48 48 /** 49 \briefsimple deconstructor49 * simple deconstructor 50 50 */ 51 51 GameLoader::~GameLoader () … … 59 59 60 60 /** 61 \briefthis class is a singleton class62 \returns an instance of itself61 * this class is a singleton class 62 * @returns an instance of itself 63 63 64 64 if you are unsure about singleton classes, check the theory out on the internet :) … … 72 72 73 73 /** 74 \briefinitializes the GameLoader74 * initializes the GameLoader 75 75 */ 76 76 ErrorMessage GameLoader::init() … … 88 88 89 89 /** 90 \briefreads a campaign definition file into a campaign class91 \param fileName to be loaded92 \returns the loaded campaign90 * reads a campaign definition file into a campaign class 91 * @param fileName to be loaded 92 * @returns the loaded campaign 93 93 94 94 this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns … … 109 109 110 110 /** 111 \briefloads a debug campaign for test purposes only.112 \param campaignID the identifier of the campaign.113 \returns error message if not able to do so.111 * loads a debug campaign for test purposes only. 112 * @param campaignID the identifier of the campaign. 113 * @returns error message if not able to do so. 114 114 */ 115 115 ErrorMessage GameLoader::loadDebugCampaign(Uint32 campaignID) … … 147 147 148 148 /** 149 \briefstarts the current entity150 \returns error code if this action has caused a error149 * starts the current entity 150 * @returns error code if this action has caused a error 151 151 */ 152 152 ErrorMessage GameLoader::start() … … 158 158 159 159 /** 160 \briefstops the current entity161 \returns error code if this action has caused a error160 * stops the current entity 161 * @returns error code if this action has caused a error 162 162 163 163 ATTENTION: this function shouldn't call other functions, or if so, they must return … … 175 175 176 176 /** 177 \briefpause the current entity178 \returns error code if this action has caused a error177 * pause the current entity 178 * @returns error code if this action has caused a error 179 179 180 180 this pauses the current entity or passes this call forth to the running entity. … … 189 189 190 190 /** 191 \briefresumes a pause192 \returns error code if this action has caused a error191 * resumes a pause 192 * @returns error code if this action has caused a error 193 193 194 194 this resumess the current entity or passes this call forth to the running entity. … … 203 203 204 204 /** 205 \briefrelease the mem ATTENTION: not implemented205 * release the mem ATTENTION: not implemented 206 206 */ 207 207 ErrorMessage GameLoader::destroy() … … 212 212 213 213 /** 214 \briefreads a campaign definition file into a campaign class215 \param fileName to be loaded216 \returns the loaded campaign214 * reads a campaign definition file into a campaign class 215 * @param fileName to be loaded 216 * @returns the loaded campaign 217 217 218 218 this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns … … 264 264 265 265 /** 266 \briefhandle keyboard commands267 \param event the event to handle266 * handle keyboard commands 267 * @param event the event to handle 268 268 */ 269 269 void GameLoader::process(const Event& event) … … 322 322 323 323 /** 324 \briefload a StoryEntity325 \param element a XMLElement containing all the needed info324 * load a StoryEntity 325 * @param element a XMLElement containing all the needed info 326 326 */ 327 327 BaseObject* GameLoader::fabricate(const TiXmlElement* element) -
orxonox/trunk/src/util/loading/game_loader.h
r4739 r4836 1 1 /*! 2 2 \file game_loader.h 3 \briefloads campaigns, worlds and all other story_entities3 * loads campaigns, worlds and all other story_entities 4 4 */ 5 5 … … 57 57 void previousLevel(); 58 58 59 /** \brief a world command to send to the GameLoader \param cmd the command */59 /** \brief a world command to send to the GameLoader @param cmd the command */ 60 60 bool worldCommand(Command* cmd); 61 61 ErrorMessage loadDebugCampaign(Uint32 campaignID); -
orxonox/trunk/src/util/loading/load_param.cc
r4746 r4836 22 22 23 23 /** 24 \param object The object this Parameter is loaded too.25 \param root: the XML-element to load this option from.26 \param paramName: The name of the parameter loaded.27 \param paramCount: how many parameters this loading-function takes28 \param multi: if false LoadParam assumes only one occurence of this parameter in root, if true it assumes multiple occurences.29 \param ...: the parameter information (1. Parameter, 2. Default Value for the Parameter, ...)24 * @param object The object this Parameter is loaded too. 25 * @param root: the XML-element to load this option from. 26 * @param paramName: The name of the parameter loaded. 27 * @param paramCount: how many parameters this loading-function takes 28 * @param multi: if false LoadParam assumes only one occurence of this parameter in root, if true it assumes multiple occurences. 29 * @param ...: the parameter information (1. Parameter, 2. Default Value for the Parameter, ...) 30 30 */ 31 31 BaseLoadParam::BaseLoadParam(const TiXmlElement* root, BaseObject* object, const char* paramName, … … 152 152 153 153 /** 154 \param descriptionText The text to set as a description for this Parameter155 \returns a pointer to itself.154 * @param descriptionText The text to set as a description for this Parameter 155 * @returns a pointer to itself. 156 156 */ 157 157 BaseLoadParam* BaseLoadParam::describe(const char* descriptionText) … … 165 165 166 166 /** 167 \param paramName the name of the parameter to load167 * @param paramName the name of the parameter to load 168 168 */ 169 169 LoadParamDescription::LoadParamDescription(const char* paramName) … … 177 177 178 178 /** 179 \briefremoves all the alocated memory179 * removes all the alocated memory 180 180 */ 181 181 LoadParamDescription::~LoadParamDescription() … … 197 197 198 198 /** 199 \param descriptionText The text to set as a description for this Parameter199 * @param descriptionText The text to set as a description for this Parameter 200 200 */ 201 201 void LoadParamDescription::setDescription(const char* descriptionText) … … 206 206 207 207 /** 208 \briefprints out this parameter, its input method and the description (if availiable)208 * prints out this parameter, its input method and the description (if availiable) 209 209 */ 210 210 void LoadParamDescription::print() const … … 243 243 244 244 /** 245 \briefA list, that holds all the classes that are loadable (classes not objects!!)245 * A list, that holds all the classes that are loadable (classes not objects!!) 246 246 */ 247 247 tList<LoadClassDescription>* LoadClassDescription::classList = new tList<LoadClassDescription>; 248 248 249 249 /** 250 \briefif the description of Parameters should be executed250 * if the description of Parameters should be executed 251 251 */ 252 252 bool LoadClassDescription::parametersDescription = true; 253 253 254 254 /** 255 \param className the name of the class to be loadable255 * @param className the name of the class to be loadable 256 256 */ 257 257 LoadClassDescription::LoadClassDescription(const char* className) … … 266 266 267 267 /** 268 \briefdeletes a classDescription (deletes all the parameterDescriptions as well268 * deletes a classDescription (deletes all the parameterDescriptions as well 269 269 */ 270 270 LoadClassDescription::~LoadClassDescription() … … 283 283 284 284 /** 285 \briefadds a class to the list of loadable classes286 \param className The name of the class to add285 * adds a class to the list of loadable classes 286 * @param className The name of the class to add 287 287 288 288 this function searches for the className string, and if found just returns the appropriate Class. … … 308 308 309 309 /** 310 \briefdoes the same as addClass(const char* className), but with params311 \param paramName the name of the parameter to add.310 * does the same as addClass(const char* className), but with params 311 * @param paramName the name of the parameter to add. 312 312 */ 313 313 LoadParamDescription* LoadClassDescription::addParam(const char* paramName) … … 331 331 332 332 /** 333 \briefprints out all loadable Classes, and their parameters333 * prints out all loadable Classes, and their parameters 334 334 */ 335 335 void LoadClassDescription::printAll(const char* fileName) … … 361 361 362 362 /** 363 \param root: The XML-element to grab a parameter from364 \param parameterName: the parameter to grab365 \returns the Value of the parameter if found, NULL otherwise363 * @param root: The XML-element to grab a parameter from 364 * @param parameterName: the parameter to grab 365 * @returns the Value of the parameter if found, NULL otherwise 366 366 */ 367 367 const char* grabParameter(const TiXmlElement* root, const char* parameterName) -
orxonox/trunk/src/util/loading/load_param.h
r4834 r4836 16 16 /*! 17 17 \file load_param.h 18 \briefA Class and macro-functions, that makes our lives easy to load-in parameters18 * A Class and macro-functions, that makes our lives easy to load-in parameters 19 19 */ 20 20 … … 111 111 // 1. TYPE 112 112 /** 113 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with 1 argument114 \param type1 The type of the first functionParameter113 * a Macro to easily implement many different Constructors for the LoadParam-Class with 1 argument 114 * @param type1 The type of the first functionParameter 115 115 */ 116 116 #define LoadParam1(type1) \ … … 128 128 // 2. TYPES 129 129 /** 130 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with 2 arguments131 \param type1 The type of the first functionParameter132 \param type2 The type of the second functionParameter130 * a Macro to easily implement many different Constructors for the LoadParam-Class with 2 arguments 131 * @param type1 The type of the first functionParameter 132 * @param type2 The type of the second functionParameter 133 133 */ 134 134 #define LoadParam2(type1, type2) \ … … 153 153 // 3. TYPES 154 154 /** 155 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with 3 arguments156 \param type1 The type of the first functionParameter157 \param type2 The type of the second functionParameter158 \param type3 The type of the third functionParameter155 * a Macro to easily implement many different Constructors for the LoadParam-Class with 3 arguments 156 * @param type1 The type of the first functionParameter 157 * @param type2 The type of the second functionParameter 158 * @param type3 The type of the third functionParameter 159 159 */ 160 160 #define LoadParam3(type1, type2, type3) \ … … 179 179 // 4. TYPES 180 180 /** 181 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with 4 arguments182 \param type1 The type of the first functionParameter183 \param type2 The type of the second functionParameter184 \param type3 The type of the third functionParameter185 \param type4 The type of the forth functionParameter181 * a Macro to easily implement many different Constructors for the LoadParam-Class with 4 arguments 182 * @param type1 The type of the first functionParameter 183 * @param type2 The type of the second functionParameter 184 * @param type3 The type of the third functionParameter 185 * @param type4 The type of the forth functionParameter 186 186 */ 187 187 #define LoadParam4(type1, type2, type3, type4) \ … … 208 208 // 5. TYPES 209 209 /** 210 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with 5 arguments211 \param type1 The type of the first functionParameter212 \param type2 The type of the second functionParameter213 \param type3 The type of the third functionParameter214 \param type4 The type of the forth functionParameter215 \param type5 The type of the fifth functionParameter210 * a Macro to easily implement many different Constructors for the LoadParam-Class with 5 arguments 211 * @param type1 The type of the first functionParameter 212 * @param type2 The type of the second functionParameter 213 * @param type3 The type of the third functionParameter 214 * @param type4 The type of the forth functionParameter 215 * @param type5 The type of the fifth functionParameter 216 216 */ 217 217 #define LoadParam5(type1, type2, type3, type4, type5) \ … … 238 238 // Pointer TYPE 239 239 /** 240 \briefa Macro to easily implement many different Constructors for the LoadParam-Class with one Pointer argument241 \param type1 The type of the Pointer240 * a Macro to easily implement many different Constructors for the LoadParam-Class with one Pointer argument 241 * @param type1 The type of the Pointer 242 242 */ 243 243 #define LoadParamPT(type1) \ … … 276 276 277 277 void setDescription(const char* descriptionText); 278 /** \returns the descriptionString */278 /** @returns the descriptionString */ 279 279 const char* getDescription() { return this->description; }; 280 280 -
orxonox/trunk/src/util/object_manager.cc
r4746 r4836 24 24 25 25 /** 26 \briefstandard constructor26 * standard constructor 27 27 */ 28 28 ObjectManager::ObjectManager () … … 40 40 41 41 /** 42 \briefthe singleton reference to this class42 * the singleton reference to this class 43 43 */ 44 44 ObjectManager* ObjectManager::singletonRef = NULL; 45 45 46 46 /** 47 \briefstandard deconstructor47 * standard deconstructor 48 48 */ 49 49 ObjectManager::~ObjectManager () … … 53 53 54 54 /** 55 \briefadds an element to the list of dead objects56 \param index: The type of object to add57 \param object: pointer to the object at hand55 * adds an element to the list of dead objects 56 * @param index: The type of object to add 57 * @param object: pointer to the object at hand 58 58 */ 59 59 void ObjectManager::addToDeadList(int index, BaseObject* object) … … 66 66 67 67 /** 68 \briefresurects an object69 \param index: the type of resource to load70 \param number: how many of them68 * resurects an object 69 * @param index: the type of resource to load 70 * @param number: how many of them 71 71 72 \todo if it is unable to get an object from the deadList, it should create it72 @todo if it is unable to get an object from the deadList, it should create it 73 73 */ 74 74 BaseObject* ObjectManager::getFromDeadList(int index, int number) … … 90 90 91 91 /** 92 \briefoutputs some simple debug information about the ObjectManage92 * outputs some simple debug information about the ObjectManage 93 93 */ 94 94 void ObjectManager::debug() const -
orxonox/trunk/src/util/object_manager.h
r4746 r4836 1 1 /*! 2 2 \file object_manager.h 3 \briefthis manager will ceep track of the objects in the world3 * this manager will ceep track of the objects in the world 4 4 5 5 This is specially designed to: … … 45 45 public: 46 46 virtual ~ObjectManager(); 47 /** \returns a Pointer to the only object of this Class */47 /** @returns a Pointer to the only object of this Class */ 48 48 inline static ObjectManager* getInstance() { if (!singletonRef) singletonRef = new ObjectManager(); return singletonRef; }; 49 49 -
orxonox/trunk/src/util/resource_manager.cc
r4746 r4836 47 47 48 48 /** 49 \briefstandard constructor49 * standard constructor 50 50 */ 51 51 ResourceManager::ResourceManager () … … 64 64 65 65 /** 66 \briefstandard destructor66 * standard destructor 67 67 */ 68 68 ResourceManager::~ResourceManager () … … 87 87 88 88 /** 89 \briefsets the data main directory90 \param dataDir the DataDirectory.89 * sets the data main directory 90 * @param dataDir the DataDirectory. 91 91 */ 92 92 bool ResourceManager::setDataDir(const char* dataDir) … … 110 110 111 111 /** 112 \briefchecks for the DataDirectory, by looking if113 \param fileInside is inisde??112 * checks for the DataDirectory, by looking if 113 * @param fileInside is inisde?? 114 114 */ 115 115 bool ResourceManager::checkDataDir(const char* fileInside) … … 131 131 #ifndef NO_TEXTURES 132 132 /** 133 \briefadds a new Path for Images134 \param imageDir The path to insert135 \returns true, if the Path was well and injected (or already existent within the list)133 * adds a new Path for Images 134 * @param imageDir The path to insert 135 * @returns true, if the Path was well and injected (or already existent within the list) 136 136 false otherwise 137 137 */ … … 171 171 172 172 /** 173 \briefloads resources174 \param fileName: The fileName of the resource to load175 \param prio: The ResourcePriority of this resource (will only be increased)176 \param param1: an additional option to parse (see the constuctors for more help)177 \param param2: an additional option to parse (see the constuctors for more help)178 \param param3: an additional option to parse (see the constuctors for more help)179 \returns a pointer to a desired Resource.173 * loads resources 174 * @param fileName: The fileName of the resource to load 175 * @param prio: The ResourcePriority of this resource (will only be increased) 176 * @param param1: an additional option to parse (see the constuctors for more help) 177 * @param param2: an additional option to parse (see the constuctors for more help) 178 * @param param3: an additional option to parse (see the constuctors for more help) 179 * @returns a pointer to a desired Resource. 180 180 */ 181 181 void* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3) … … 228 228 229 229 /** 230 \briefloads resources231 \param fileName: The fileName of the resource to load232 \param type: The Type of Resource to load (\see ResourceType)233 \param prio: The ResourcePriority of this resource (will only be increased)234 \param param1: an additional option to parse (see the constuctors for more help)235 \param param2: an additional option to parse (see the constuctors for more help)236 \param param3: an additional option to parse (see the constuctors for more help)237 \returns a pointer to a desired Resource.230 * loads resources 231 * @param fileName: The fileName of the resource to load 232 * @param type: The Type of Resource to load (\see ResourceType) 233 * @param prio: The ResourcePriority of this resource (will only be increased) 234 * @param param1: an additional option to parse (see the constuctors for more help) 235 * @param param2: an additional option to parse (see the constuctors for more help) 236 * @param param3: an additional option to parse (see the constuctors for more help) 237 * @returns a pointer to a desired Resource. 238 238 */ 239 239 void* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio, … … 400 400 401 401 /** 402 \briefunloads a Resource403 \param pointer: The pointer to free404 \param prio: the PriorityLevel to unload this resource405 \returns true if successful (pointer found, and deleted), false otherwise402 * unloads a Resource 403 * @param pointer: The pointer to free 404 * @param prio: the PriorityLevel to unload this resource 405 * @returns true if successful (pointer found, and deleted), false otherwise 406 406 */ 407 407 bool ResourceManager::unload(void* pointer, ResourcePriority prio) … … 419 419 420 420 /** 421 \briefunloads a Resource422 \param resource: The resource to unloade423 \param prio the PriorityLevel to unload this resource421 * unloads a Resource 422 * @param resource: The resource to unloade 423 * @param prio the PriorityLevel to unload this resource 424 424 */ 425 425 bool ResourceManager::unload(Resource* resource, ResourcePriority prio) … … 478 478 479 479 /** 480 \briefunloads all alocated Memory of Resources with a pririty lower than prio481 \param prio The priority to delete480 * unloads all alocated Memory of Resources with a pririty lower than prio 481 * @param prio The priority to delete 482 482 */ 483 483 bool ResourceManager::unloadAllByPriority(ResourcePriority prio) … … 500 500 501 501 /** 502 \briefSearches for a Resource by some information503 \param fileName: The name to look for504 \param type the Type of resource to locate.505 \param param1: an additional option to parse (see the constuctors for more help)506 \param param2: an additional option to parse (see the constuctors for more help)507 \param param3: an additional option to parse (see the constuctors for more help)508 \returns a Pointer to the Resource if found, NULL otherwise.502 * Searches for a Resource by some information 503 * @param fileName: The name to look for 504 * @param type the Type of resource to locate. 505 * @param param1: an additional option to parse (see the constuctors for more help) 506 * @param param2: an additional option to parse (see the constuctors for more help) 507 * @param param3: an additional option to parse (see the constuctors for more help) 508 * @returns a Pointer to the Resource if found, NULL otherwise. 509 509 */ 510 510 Resource* ResourceManager::locateResourceByInfo(const char* fileName, ResourceType type, … … 587 587 588 588 /** 589 \briefSearches for a Resource by Pointer590 \param pointer the Pointer to search for591 \returns a Pointer to the Resource if found, NULL otherwise.589 * Searches for a Resource by Pointer 590 * @param pointer the Pointer to search for 591 * @returns a Pointer to the Resource if found, NULL otherwise. 592 592 */ 593 593 Resource* ResourceManager::locateResourceByPointer(const void* pointer) … … 610 610 611 611 /** 612 \briefChecks if it is a Directory613 \param directoryName the Directory to check for614 \returns true if it is a directory/symlink false otherwise612 * Checks if it is a Directory 613 * @param directoryName the Directory to check for 614 * @returns true if it is a directory/symlink false otherwise 615 615 */ 616 616 bool ResourceManager::isDir(const char* directoryName) … … 657 657 658 658 /** 659 \briefChecks if the file is either a Regular file or a Symlink660 \param fileName the File to check for661 \returns true if it is a regular file/symlink, false otherwise659 * Checks if the file is either a Regular file or a Symlink 660 * @param fileName the File to check for 661 * @returns true if it is a regular file/symlink, false otherwise 662 662 */ 663 663 bool ResourceManager::isFile(const char* fileName) … … 693 693 694 694 /** 695 \brieftouches a File on the disk (thereby creating it)696 \param fileName The file to touch695 * touches a File on the disk (thereby creating it) 696 * @param fileName The file to touch 697 697 */ 698 698 bool ResourceManager::touchFile(const char* fileName) … … 713 713 714 714 /** 715 \briefdeletes a File from disk716 \param fileName the File to delete715 * deletes a File from disk 716 * @param fileName the File to delete 717 717 */ 718 718 bool ResourceManager::deleteFile(const char* fileName) … … 726 726 727 727 /** 728 \param name the Name of the file to check729 \returns The name of the file, including the HomeDir728 * @param name the Name of the file to check 729 * @returns The name of the file, including the HomeDir 730 730 IMPORTANT: this has to be deleted from the outside 731 731 */ … … 755 755 756 756 /** 757 \param fileName the Name of the File to check758 \returns The full name of the file, including the DataDir, and NULL if the file does not exist757 * @param fileName the Name of the File to check 758 * @returns The full name of the file, including the DataDir, and NULL if the file does not exist 759 759 IMPORTANT: this has to be deleted from the outside 760 760 */ … … 778 778 779 779 /** 780 \briefoutputs debug information about the ResourceManager780 * outputs debug information about the ResourceManager 781 781 */ 782 782 void ResourceManager::debug() const -
orxonox/trunk/src/util/resource_manager.h
r4746 r4836 1 1 /*! 2 2 \file resource_manager.h 3 \briefThe Resource Manager checks if a file/resource is loaded.3 * The Resource Manager checks if a file/resource is loaded. 4 4 5 5 If a file/resource was already loaded the resourceManager will … … 99 99 public: 100 100 virtual ~ResourceManager(); 101 /** \returns a Pointer to the only object of this Class */101 /** @returns a Pointer to the only object of this Class */ 102 102 inline static ResourceManager* getInstance() { if (!singletonRef) singletonRef = new ResourceManager(); return singletonRef; }; 103 103 104 104 bool setDataDir(const char* dataDir); 105 /** \returns the Name of the data directory */105 /** @returns the Name of the data directory */ 106 106 inline const char* getDataDir() const {return this->dataDir;} 107 107 -
orxonox/trunk/src/util/state.cc
r4827 r4836 32 32 33 33 /** 34 \briefsets camera and target of the current Camera34 * sets camera and target of the current Camera 35 35 */ 36 36 void State::setCamera(const PNode* camera, const PNode* cameraTarget) -
orxonox/trunk/src/util/state.h
r4827 r4836 1 1 /*! 2 2 \file state.h 3 \briefDefinition of the States-singleton Class3 * Definition of the States-singleton Class 4 4 */ 5 5 -
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.