Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/avi_play/src/story_entities/movie_loader.h @ 6574

Last change on this file since 6574 was 6574, checked in by stefalie, 18 years ago

branches/avi_play: …

File size: 894 bytes
Line 
1/*!
2 * @file movie_loader.h
3 *  loads a movie
4 */
5
6#ifndef _MOVIE_LOADER_H
7#define _MOVIE_LOADER_H
8
9
10#include "story_entity.h"
11
12class MoviePlayer;
13
14class MovieLoader : public StoryEntity
15{
16
17  public:
18    MovieLoader();
19    virtual ~MovieLoader();
20
21    virtual void loadParams(const TiXmlElement* root);
22
23    /* functions from story-entity */
24    virtual ErrorMessage init();
25    virtual ErrorMessage loadData();
26    virtual ErrorMessage unloadData();
27
28    virtual bool start();
29    virtual bool stop();
30    virtual bool pause();
31    virtual bool resume();
32    virtual void run();
33
34  private:
35    void tick();
36
37    MoviePlayer*        movie_player;
38    Uint32              lastFrame;
39    Uint32              currentFrame;
40    Uint32              dt;                           // time needed to calculate this frame (in milliSeconds)
41    float               dts;
42};
43
44#endif /* _MOVIE_LOADER_H */
Note: See TracBrowser for help on using the repository browser.