Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 19, 2006, 12:35:05 AM (19 years ago)
Author:
hdavid
Message:

some cleanup and fixes

File:
1 edited

Legend:

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

    r6604 r6611  
    2020#include "graphics_engine.h"
    2121#include "load_param.h"
    22 #include "resource_manager.h"
    2322#include "state.h"
    2423
     
    3635}
    3736
    38 MovieLoader::~MovieLoader()
     37MovieLoader::~MovieLoader() 
    3938{
    40   PRINTF(4)("Deleted MoviePlayer\n");
     39  delete this->movie_player;
    4140}
    4241
     
    5352{
    5453  movie_player->loadMovie(filename);
    55 
    56   PRINTF(0)("\nloaded Movie %s\n\n", filename);
    5754}
    5855
    5956
    60 ErrorMessage MovieLoader::init()
    61 {
    62 
    63 }
     57ErrorMessage MovieLoader::init() {}
    6458
    6559
    66 ErrorMessage MovieLoader::loadData()
    67 {
    68 
    69 }
     60ErrorMessage MovieLoader::loadData() {}
    7061
    7162
    72 ErrorMessage MovieLoader::unloadData()
    73 {
    74 
    75 }
     63ErrorMessage MovieLoader::unloadData() {}
    7664
    7765bool MovieLoader::start()
    7866{
    79   PRINTF(0)("\nMovieLoader INFO:\n");
    80   movie_player->printInformation();
    81   PRINTF(0)("\n");
    82 
     67  this->movie_player->start(0);
     68 
    8369  this->isRunning = true;
    84 
    8570  this->run();
    8671}
     
    9883  // first timestamp for t = 0
    9984  this->lastFrame = SDL_GetTicks ();
    100   this->movie_player->start(0);
    10185
    10286  while( this->isRunning)
    10387  {
    104 
    10588    this->tick();
    10689    this->draw();
    107 
    10890  }
    10991}
Note: See TracChangeset for help on using the changeset viewer.