Changeset 3812 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Apr 13, 2005, 11:08:43 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3810 r3812 39 39 #include "garbage_collector.h" 40 40 #include "simple_animation.h" 41 #include "animation .h"41 #include "animation_player.h" 42 42 43 43 #include "command_node.h" … … 162 162 163 163 delete this->simpleAnimation; 164 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. 164 165 //delete garbagecollecor 165 166 //delete animator … … 184 185 this->debugWorldNr = worldID; 185 186 this->entities = new tList<WorldEntity>(); 187 AnimationPlayer::getInstance(); // initializes the animationPlayer 186 188 } 187 189 … … 374 376 testText->setBindNode(tn); 375 377 376 t estAnim = new tAnim<Text>(testText, &Text::setBlending);378 tAnim<Text>* testAnim = new tAnim<Text>(testText, &Text::setBlending); 377 379 testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR); 378 380 testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR); … … 944 946 this->garbageCollector->tick(seconds); 945 947 this->simpleAnimation->tick(seconds); 946 948 AnimationPlayer::getInstance()->tick(seconds); 947 949 //testAnim->tick(seconds); 948 950 … … 1055 1057 else if( !strcmp( cmd->cmd, "view4")) this->localCamera->setViewMode(VIEW_RIGHT); 1056 1058 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();1062 1059 1063 1060 return false; -
orxonox/trunk/src/story_entities/world.h
r3803 r3812 25 25 class GarbageCollector; 26 26 class SimpleAnimation; 27 template<class T> class tAnim;28 27 class Text; 29 28 … … 100 99 GLMenuImageScreen* glmis; //!< The Level-Loader Display 101 100 102 tAnim<Text>* testAnim;103 101 Text* testText; //!< A text to Test the TextEngine; 104 102
Note: See TracChangeset
for help on using the changeset viewer.