Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6576 in orxonox.OLD


Ignore:
Timestamp:
Jan 18, 2006, 3:46:40 PM (18 years ago)
Author:
hdavid
Message:

branches/avi_play

Location:
branches/avi_play/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/story_entities/movie_loader.cc

    r6574 r6576  
    1515
    1616#include "movie_loader.h"
     17
    1718#include "movie_player.h"
     19#include "load_param.h"
    1820#include "resource_manager.h"
     21
    1922
    2023using namespace std;
    2124
    2225
    23 MovieLoader::MovieLoader()
     26MovieLoader::MovieLoader(const TiXmlElement* root)
    2427{
    2528  this->setClassID(CL_MOVIE_LOADER, "MovieLoader");
     29
     30  movie_player = new MoviePlayer();
     31  this->loadParams(root);
    2632}
    2733
     
    3541void MovieLoader::loadParams(const TiXmlElement* root)
    3642{
     43  StoryEntity::loadParams(root);
    3744
     45  LoadParam(root, "name", this, MovieLoader, loadMovie);
     46}
     47
     48void MovieLoader::loadMovie(const char* filename)
     49{
     50  movie_player->loadMovie(filename);
     51
     52  PRINTF(0)("loaded Movie %s", filename);
    3853}
    3954
     
    8196    this->tick();
    8297
    83     movie_player->draw();
     98    //movie_player->draw();
    8499  }
    85100}
  • branches/avi_play/src/story_entities/movie_loader.h

    r6574 r6576  
    1414class MovieLoader : public StoryEntity
    1515{
     16  private:
     17    MoviePlayer* movie_player;
     18
     19    Uint32              lastFrame;
     20    Uint32              currentFrame;
     21    Uint32              dt;                           // time needed to calculate this frame (in milliSeconds)
     22    float               dts;
    1623
    1724  public:
    18     MovieLoader();
     25    MovieLoader(const TiXmlElement* root);
    1926    virtual ~MovieLoader();
    2027
     
    3340
    3441  private:
     42    void loadMovie(const char* filename);
    3543    void tick();
    3644
    37     MoviePlayer*        movie_player;
    38     Uint32              lastFrame;
    39     Uint32              currentFrame;
    40     Uint32              dt;                           // time needed to calculate this frame (in milliSeconds)
    41     float               dts;
    4245};
    4346
Note: See TracChangeset for help on using the changeset viewer.