Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3798 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Apr 13, 2005, 5:22:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: play/rewind and so on work perfectly. (you can try them out on [1-5] keys
1 play
2 stop
3 pause
4 replay
5 rewind

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

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

    r3797 r3798  
    4747{
    4848  this->rewind();
     49  this->bRunning = true;
     50  this->tick(0.0);
    4951  this->bRunning = false;
    5052}
  • orxonox/trunk/src/animation.h

    r3797 r3798  
    170170  this->currentKeyFrame = keyFrameList->firstElement();
    171171  this->nextKeyFrame = keyFrameList->nextElement(keyFrameList->firstElement());
     172  this->localTime = 0.0;
    172173}
    173174
  • orxonox/trunk/src/orxonox.conf

    r3643 r3798  
    18184=view3
    19195=view4
    20 5=view5
     206=view5
  • orxonox/trunk/src/story_entities/world.cc

    r3794 r3798  
    940940      this->simpleAnimation->tick(seconds);
    941941     
    942       //      testAnim->tick(seconds);
     942            testAnim->tick(seconds);
    943943
    944944    }
     
    10501050  else if( !strcmp( cmd->cmd, "view4")) this->localCamera->setViewMode(VIEW_RIGHT);
    10511051  else if( !strcmp( cmd->cmd, "view5")) this->localCamera->setViewMode(VIEW_TOP);
    1052  
     1052  if (!strcmp(cmd->cmd, "view0")) testAnim->play();
     1053  if (!strcmp(cmd->cmd, "view1")) testAnim->stop();
     1054  if (!strcmp(cmd->cmd, "view2")) testAnim->pause();
     1055  if (!strcmp(cmd->cmd, "view3")) testAnim->replay();
     1056  if (!strcmp(cmd->cmd, "view4")) testAnim->rewind();
     1057
    10531058  return false;
    10541059}
Note: See TracChangeset for help on using the changeset viewer.