Changeset 3847 in orxonox.OLD for orxonox/trunk/src/animation_player.cc
- Timestamp:
- Apr 17, 2005, 2:01:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/animation_player.cc
r3833 r3847 28 28 this->setClassName ("AnimationPlayer"); 29 29 30 this->animationList = new tList<Anim >();30 this->animationList = new tList<Animation>(); 31 31 this->play(); 32 32 } … … 72 72 unadding it with animation->notHandled(); 73 73 */ 74 void AnimationPlayer::addAnimation(Anim * animation)74 void AnimationPlayer::addAnimation(Animation* animation) 75 75 { 76 76 this->animationList->add(animation); … … 81 81 \param animation the Anmination to remove from the List 82 82 */ 83 void AnimationPlayer::removeAnimation(Anim * animation)83 void AnimationPlayer::removeAnimation(Animation* animation) 84 84 { 85 85 this->animationList->remove(animation); … … 92 92 { 93 93 // deleting the Animation List AND all the elements of the List 94 tIterator<Anim >* animIt = this->animationList->getIterator();95 Anim * anim = animIt->nextElement();94 tIterator<Animation>* animIt = this->animationList->getIterator(); 95 Animation* anim = animIt->nextElement(); 96 96 while( anim != NULL) 97 97 { … … 103 103 104 104 delete this->animationList; 105 this->animationList = new tList<Anim >();105 this->animationList = new tList<Animation>(); 106 106 } 107 107 … … 115 115 { 116 116 // iterate through all the animations and tick them. 117 tIterator<Anim >* animIt = this->animationList->getIterator();118 Anim * anim = animIt->nextElement();117 tIterator<Animation>* animIt = this->animationList->getIterator(); 118 Animation* anim = animIt->nextElement(); 119 119 while( anim != NULL) 120 120 { … … 142 142 143 143 144 Anim * AnimationPlayer::getObjectFromBaseObject(const BaseObject* baseObject) const144 Animation* AnimationPlayer::getObjectFromBaseObject(const BaseObject* baseObject) const 145 145 { 146 tIterator<Anim >* animIt = this->animationList->getIterator();147 Anim * anim = animIt->nextElement();146 tIterator<Animation>* animIt = this->animationList->getIterator(); 147 Animation* anim = animIt->nextElement(); 148 148 while( anim != NULL) 149 149 { … … 173 173 PRINT(0)("-Animation Information---------------+\n"); 174 174 // Per ANIMATION DEBUG 175 tIterator<Anim >* animIt = this->animationList->getIterator();176 Anim * anim = animIt->nextElement();175 tIterator<Animation>* animIt = this->animationList->getIterator(); 176 Animation* anim = animIt->nextElement(); 177 177 while( anim != NULL) 178 178 {
Note: See TracChangeset
for help on using the changeset viewer.