Last change
on this file since 10674 was
10618,
checked in by bknecht, 18 years ago
|
merged cleanup into trunk (only improvements)
|
File size:
879 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file movie_entity.h |
---|
3 | * Definition of a Movie Screen |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MOVIE_ENTITY_H |
---|
7 | #define _MOVIE_ENTITY_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | |
---|
11 | |
---|
12 | class MediaContainer; |
---|
13 | |
---|
14 | class MovieEntity : public WorldEntity |
---|
15 | { |
---|
16 | ObjectListDeclaration(MovieEntity); |
---|
17 | private: |
---|
18 | MediaContainer* media_container; |
---|
19 | |
---|
20 | int counter; |
---|
21 | float timer; |
---|
22 | float fps; |
---|
23 | |
---|
24 | float axis; |
---|
25 | float rotation; |
---|
26 | float height; |
---|
27 | float width; |
---|
28 | |
---|
29 | bool mediaLoaded; |
---|
30 | |
---|
31 | public: |
---|
32 | MovieEntity (const TiXmlElement* root = NULL); |
---|
33 | virtual ~MovieEntity (); |
---|
34 | |
---|
35 | virtual void draw () const; |
---|
36 | virtual void tick (float time); |
---|
37 | |
---|
38 | virtual void loadParams(const TiXmlElement* root); |
---|
39 | |
---|
40 | void loadMovie(const std::string& filename); |
---|
41 | void setAxis(float axis); |
---|
42 | void setRotation(float rotation); |
---|
43 | void setSize(float width, float height); |
---|
44 | void setFPS(float fps); |
---|
45 | |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _MOVIE_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.