Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/movie_loader.h @ 9643

Last change on this file since 9643 was 7221, checked in by bensch, 19 years ago

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

File size: 1.1 KB
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#include "event_listener.h"
12
13class MoviePlayer;
14
15class MovieLoader : public StoryEntity, virtual public EventListener
16{
17  private:
18    MoviePlayer* movie_player;
19
20    Uint32              lastFrame;
21    Uint32              currentFrame;
22    Uint32              dt;                           // time needed to calculate this frame (in milliSeconds)
23    float               dts;
24
25  public:
26    MovieLoader(const TiXmlElement* root);
27    virtual ~MovieLoader();
28
29    virtual void loadParams(const TiXmlElement* root);
30
31    /* functions from story-entity */
32    virtual ErrorMessage init();
33    virtual ErrorMessage loadData();
34    virtual ErrorMessage unloadData();
35
36    virtual bool start();
37    virtual bool stop();
38    virtual bool pause();
39    virtual bool resume();
40    virtual void run();
41
42    virtual void process(const Event &event);
43
44  private:
45    void loadMovie(const std::string& filename);
46    void setFPS(float fps);
47    void tick();
48    void draw() const;
49
50};
51
52#endif /* _MOVIE_LOADER_H */
Note: See TracBrowser for help on using the repository browser.