- Timestamp:
- Feb 3, 2006, 5:17:21 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 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 -
trunk/src/story_entities/movie_loader.h
r7010 r7022 9 9 10 10 #include "story_entity.h" 11 #include "event_listener.h" 11 12 12 13 class MoviePlayer; 13 14 14 class MovieLoader : public StoryEntity 15 class MovieLoader : public StoryEntity, virtual public EventListener 15 16 { 16 17 private: … … 39 40 virtual void run(); 40 41 42 virtual void process(const Event &event); 43 41 44 private: 42 45 void loadMovie(const char* filename);
Note: See TracChangeset
for help on using the changeset viewer.