Changeset 7022 in orxonox.OLD for trunk/src/story_entities/movie_loader.cc
- Timestamp:
- Feb 3, 2006, 5:17:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/movie_loader.cc
r7010 r7022 18 18 #include "movie_player.h" 19 19 #include "factory.h" 20 #include "event_handler.h" 20 21 #include "graphics_engine.h" 21 22 #include "load_param.h" … … 67 68 68 69 69 ErrorMessage MovieLoader::unloadData() {} 70 ErrorMessage MovieLoader::unloadData() 71 { 72 EventHandler::getInstance()->unsubscribe(this, ES_GAME); 73 } 70 74 71 75 bool MovieLoader::start() 72 76 { 77 EventHandler::getInstance()->pushState(ES_GAME); 78 73 79 this->movie_player->start(0); 74 80 … … 79 85 bool MovieLoader::stop() 80 86 { 87 EventHandler::getInstance()->popState(); 88 81 89 this->isRunning = false; 82 90 } … … 92 100 while( this->isRunning) 93 101 { 102 EventHandler::getInstance()->process(); 94 103 this->tick(); 95 104 this->draw(); 96 105 } 97 106 } 107 108 void MovieLoader::process(const Event &event) {} 98 109 99 110 void MovieLoader::draw() const
Note: See TracChangeset
for help on using the changeset viewer.