Changeset 3847 in orxonox.OLD for orxonox/trunk/src/simple_animation.cc
- Timestamp:
- Apr 17, 2005, 2:01:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/simple_animation.cc
r3832 r3847 46 46 this->setClassName ("SimpleAnimation"); 47 47 this->frames = new tList<KeyFrame>(); 48 this->animators = new tList<Animation >();48 this->animators = new tList<Animation3D>(); 49 49 this->localTime = 0; 50 50 this->bRunning = false; … … 119 119 void SimpleAnimation::selectObject(WorldEntity* entity) 120 120 { 121 Animation * anim = getAnimationFromWorldEntity(entity);121 Animation3D* anim = getAnimationFromWorldEntity(entity); 122 122 if( anim == NULL) 123 123 { 124 anim = new Animation ;124 anim = new Animation3D; 125 125 anim->object = entity; 126 126 anim->lastPosition = new Vector(); … … 310 310 void SimpleAnimation::tick(float time) 311 311 { 312 tIterator<Animation >* iterator = this->animators->getIterator();313 Animation * anim = iterator->nextElement();312 tIterator<Animation3D>* iterator = this->animators->getIterator(); 313 Animation3D* anim = iterator->nextElement(); 314 314 while( anim != NULL) 315 315 { … … 383 383 384 384 385 Animation * SimpleAnimation::getAnimationFromWorldEntity(WorldEntity* entity)386 { 387 tIterator<Animation >* iterator = this->animators->getIterator();388 Animation * anim = iterator->nextElement();385 Animation3D* SimpleAnimation::getAnimationFromWorldEntity(WorldEntity* entity) 386 { 387 tIterator<Animation3D>* iterator = this->animators->getIterator(); 388 Animation3D* anim = iterator->nextElement(); 389 389 while( anim != NULL) 390 390 {
Note: See TracChangeset
for help on using the changeset viewer.