Changeset 3848 in orxonox.OLD for orxonox/trunk/src/simple_animation.cc
- Timestamp:
- Apr 17, 2005, 2:16:45 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/simple_animation.cc
r3847 r3848 26 26 27 27 28 Animation3D::Animation3D(void) 29 { 30 31 } 32 33 Animation3D::~Animation3D(void) 34 { 35 36 } 37 38 39 void Animation3D::rewind(void) 40 { 41 42 } 43 44 45 void Animation3D::tick(float timePassed) 46 { 47 48 } 49 50 51 52 53 54 28 55 29 56 SimpleAnimation* SimpleAnimation::singletonRef = 0; … … 45 72 { 46 73 this->setClassName ("SimpleAnimation"); 47 this->frames = new tList<KeyFrame >();74 this->frames = new tList<KeyFrame3D>(); 48 75 this->animators = new tList<Animation3D>(); 49 76 this->localTime = 0; … … 64 91 SimpleAnimation::~SimpleAnimation () 65 92 { 66 tIterator<KeyFrame >* iterator = this->frames->getIterator();67 KeyFrame * frame = iterator->nextElement();93 tIterator<KeyFrame3D>* iterator = this->frames->getIterator(); 94 KeyFrame3D* frame = iterator->nextElement(); 68 95 while( frame != NULL) 69 96 { … … 106 133 Vector* lastPosition; 107 134 Vector* tmpVect; 108 tList<KeyFrame >* frames;135 tList<KeyFrame3D>* frames; 109 136 animationMode animMode; 110 137 movementMode movMode; … … 126 153 anim->lastPosition = new Vector(); 127 154 anim->tmpVect = new Vector(); 128 anim->frames = new tList<KeyFrame >();155 anim->frames = new tList<KeyFrame3D>(); 129 156 anim->animMode = LOOP; 130 157 anim->bRunning = false; … … 150 177 return; 151 178 } 152 KeyFrame * frame = new KeyFrame;179 KeyFrame3D* frame = new KeyFrame3D; 153 180 frame->position = point; 154 181 frame->direction = direction; … … 174 201 return; 175 202 } 176 KeyFrame * frame = new KeyFrame;203 KeyFrame3D* frame = new KeyFrame3D; 177 204 frame->position = point; 178 205 frame->direction = direction; … … 187 214 \param the keyframe to add 188 215 */ 189 void SimpleAnimation::addKeyFrame(KeyFrame * frame)216 void SimpleAnimation::addKeyFrame(KeyFrame3D* frame) 190 217 { 191 218 if( !this->bDescriptive || this->workingAnimator == NULL) … … 215 242 { 216 243 /* 217 tIterator<KeyFrame >* iterator = this->frames->getIterator();218 KeyFrame * frame = iterator->nextElement();244 tIterator<KeyFrame3D>* iterator = this->frames->getIterator(); 245 KeyFrame3D* frame = iterator->nextElement(); 219 246 while( frame != NULL) 220 247 { … … 225 252 delete this->frames; 226 253 227 this->frames = new tList<KeyFrame >();254 this->frames = new tList<KeyFrame3D>(); 228 255 this->localTime = 0; 229 256 this->bRunning = false;
Note: See TracChangeset
for help on using the changeset viewer.