Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/ODE/src/story_entities/movie_loader.h @ 10089

Last change on this file since 10089 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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