Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7022 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Feb 3, 2006, 5:17:21 PM (19 years ago)
Author:
bensch
Message:

merge

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/movie_loader.cc

    r7010 r7022  
    1818#include "movie_player.h"
    1919#include "factory.h"
     20#include "event_handler.h"
    2021#include "graphics_engine.h"
    2122#include "load_param.h"
     
    6768
    6869
    69 ErrorMessage MovieLoader::unloadData() {}
     70ErrorMessage MovieLoader::unloadData()
     71{
     72  EventHandler::getInstance()->unsubscribe(this, ES_GAME);
     73}
    7074
    7175bool MovieLoader::start()
    7276{
     77  EventHandler::getInstance()->pushState(ES_GAME);
     78
    7379  this->movie_player->start(0);
    7480 
     
    7985bool MovieLoader::stop()
    8086{
     87  EventHandler::getInstance()->popState();
     88
    8189  this->isRunning = false;
    8290}
     
    92100  while( this->isRunning)
    93101  {
     102    EventHandler::getInstance()->process();
    94103    this->tick();
    95104    this->draw();
    96105  }
    97106}
     107
     108void MovieLoader::process(const Event &event) {}
    98109
    99110void MovieLoader::draw() const
  • trunk/src/story_entities/movie_loader.h

    r7010 r7022  
    99
    1010#include "story_entity.h"
     11#include "event_listener.h"
    1112
    1213class MoviePlayer;
    1314
    14 class MovieLoader : public StoryEntity
     15class MovieLoader : public StoryEntity, virtual public EventListener
    1516{
    1617  private:
     
    3940    virtual void run();
    4041
     42    virtual void process(const Event &event);
     43
    4144  private:
    4245    void loadMovie(const char* filename);
Note: See TracChangeset for help on using the changeset viewer.