Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3848 in orxonox.OLD for orxonox/trunk/src/simple_animation.cc


Ignore:
Timestamp:
Apr 17, 2005, 2:16:45 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: names of keyframes:
KeyFrame → KeyFrame3D
AnimKeyFrame → KeyFrameF (F for float)

also changed some stuff in the Animation3D-class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/simple_animation.cc

    r3847 r3848  
    2626
    2727
     28Animation3D::Animation3D(void)
     29{
     30
     31}
     32
     33Animation3D::~Animation3D(void)
     34{
     35
     36}
     37
     38
     39void Animation3D::rewind(void)
     40{
     41
     42}
     43
     44
     45void Animation3D::tick(float timePassed)
     46{
     47
     48}
     49
     50
     51
     52
     53
     54
    2855
    2956SimpleAnimation* SimpleAnimation::singletonRef = 0;
     
    4572{
    4673   this->setClassName ("SimpleAnimation");
    47    this->frames = new tList<KeyFrame>();
     74   this->frames = new tList<KeyFrame3D>();
    4875   this->animators = new tList<Animation3D>();
    4976   this->localTime = 0;
     
    6491SimpleAnimation::~SimpleAnimation ()
    6592{
    66   tIterator<KeyFrame>* iterator = this->frames->getIterator();
    67   KeyFrame* frame = iterator->nextElement();
     93  tIterator<KeyFrame3D>* iterator = this->frames->getIterator();
     94  KeyFrame3D* frame = iterator->nextElement();
    6895  while( frame != NULL)
    6996    {
     
    106133  Vector* lastPosition;
    107134  Vector* tmpVect;
    108   tList<KeyFrame>* frames;
     135  tList<KeyFrame3D>* frames;
    109136  animationMode animMode;
    110137  movementMode movMode;
     
    126153      anim->lastPosition = new Vector();
    127154      anim->tmpVect = new Vector();
    128       anim->frames = new tList<KeyFrame>();
     155      anim->frames = new tList<KeyFrame3D>();
    129156      anim->animMode = LOOP;
    130157      anim->bRunning = false;
     
    150177      return;
    151178    }
    152   KeyFrame* frame = new KeyFrame;
     179  KeyFrame3D* frame = new KeyFrame3D;
    153180  frame->position = point;
    154181  frame->direction = direction;
     
    174201      return;
    175202    }
    176   KeyFrame* frame = new KeyFrame;
     203  KeyFrame3D* frame = new KeyFrame3D;
    177204  frame->position = point;
    178205  frame->direction = direction;
     
    187214   \param the keyframe to add
    188215*/
    189 void SimpleAnimation::addKeyFrame(KeyFrame* frame)
     216void SimpleAnimation::addKeyFrame(KeyFrame3D* frame)
    190217{
    191218  if( !this->bDescriptive || this->workingAnimator == NULL)
     
    215242{
    216243  /*
    217   tIterator<KeyFrame>* iterator = this->frames->getIterator();
    218   KeyFrame* frame = iterator->nextElement();
     244  tIterator<KeyFrame3D>* iterator = this->frames->getIterator();
     245  KeyFrame3D* frame = iterator->nextElement();
    219246  while( frame != NULL)
    220247    {
     
    225252  delete this->frames;
    226253
    227   this->frames = new tList<KeyFrame>();
     254  this->frames = new tList<KeyFrame3D>();
    228255  this->localTime = 0;
    229256  this->bRunning = false;
Note: See TracChangeset for help on using the changeset viewer.