Last change
on this file since 6883 was
6600,
checked in by bensch, 19 years ago
|
TRUNK: merged the avi_play branche again
|
File size:
988 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 | |
---|
12 | class MoviePlayer; |
---|
13 | |
---|
14 | class MovieLoader : public StoryEntity |
---|
15 | { |
---|
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; |
---|
23 | |
---|
24 | public: |
---|
25 | MovieLoader(const TiXmlElement* root); |
---|
26 | virtual ~MovieLoader(); |
---|
27 | |
---|
28 | virtual void loadParams(const TiXmlElement* root); |
---|
29 | |
---|
30 | /* functions from story-entity */ |
---|
31 | virtual ErrorMessage init(); |
---|
32 | virtual ErrorMessage loadData(); |
---|
33 | virtual ErrorMessage unloadData(); |
---|
34 | |
---|
35 | virtual bool start(); |
---|
36 | virtual bool stop(); |
---|
37 | virtual bool pause(); |
---|
38 | virtual bool resume(); |
---|
39 | virtual void run(); |
---|
40 | |
---|
41 | private: |
---|
42 | void loadMovie(const char* filename); |
---|
43 | void tick(); |
---|
44 | void draw() const; |
---|
45 | |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _MOVIE_LOADER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.