Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3812 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Apr 13, 2005, 11:08:43 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: animation-player added

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3810 r3812  
    3939#include "garbage_collector.h"
    4040#include "simple_animation.h"
    41 #include "animation.h"
     41#include "animation_player.h"
    4242
    4343#include "command_node.h"
     
    162162
    163163  delete this->simpleAnimation;
     164  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    164165  //delete garbagecollecor
    165166  //delete animator
     
    184185  this->debugWorldNr = worldID;
    185186  this->entities = new tList<WorldEntity>();
     187  AnimationPlayer::getInstance(); // initializes the animationPlayer
    186188}
    187189
     
    374376            testText->setBindNode(tn);
    375377
    376             testAnim = new tAnim<Text>(testText, &Text::setBlending);
     378            tAnim<Text>* testAnim = new tAnim<Text>(testText, &Text::setBlending);
    377379            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    378380            testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     
    944946      this->garbageCollector->tick(seconds);
    945947      this->simpleAnimation->tick(seconds);
    946      
     948      AnimationPlayer::getInstance()->tick(seconds);
    947949      //testAnim->tick(seconds);
    948950
     
    10551057  else if( !strcmp( cmd->cmd, "view4")) this->localCamera->setViewMode(VIEW_RIGHT);
    10561058  else if( !strcmp( cmd->cmd, "view5")) this->localCamera->setViewMode(VIEW_TOP);
    1057   if (!strcmp(cmd->cmd, "view0")) testAnim->play();
    1058   if (!strcmp(cmd->cmd, "view1")) testAnim->stop();
    1059   if (!strcmp(cmd->cmd, "view2")) testAnim->pause();
    1060   if (!strcmp(cmd->cmd, "view3")) testAnim->replay();
    1061   if (!strcmp(cmd->cmd, "view4")) testAnim->rewind();
    10621059
    10631060  return false;
  • orxonox/trunk/src/story_entities/world.h

    r3803 r3812  
    2525class GarbageCollector;
    2626class SimpleAnimation;
    27 template<class T> class tAnim;
    2827class Text;
    2928
     
    10099  GLMenuImageScreen* glmis;           //!< The Level-Loader Display
    101100
    102   tAnim<Text>* testAnim;
    103101  Text* testText;                     //!< A text to Test the TextEngine;
    104102
Note: See TracChangeset for help on using the changeset viewer.