Line | |
---|
1 | /*! |
---|
2 | * @file model_entity.h |
---|
3 | * Definition of the ModelEntity, that handles the Display of an atmosphere for orxonox. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MODEL_ENTITY_H |
---|
7 | #define _MODEL_ENTITY_H |
---|
8 | |
---|
9 | /* INCLUDES */ |
---|
10 | #include "world_entity.h" |
---|
11 | |
---|
12 | /* FORWARD DECLARATION */ |
---|
13 | |
---|
14 | //! A Class to handle a ModelEntity |
---|
15 | class ModelEntity : public WorldEntity |
---|
16 | { |
---|
17 | ObjectListDeclaration(ModelEntity); |
---|
18 | public: |
---|
19 | ModelEntity(const TiXmlElement* root); |
---|
20 | |
---|
21 | virtual ~ModelEntity(); |
---|
22 | |
---|
23 | virtual void loadParams(const TiXmlElement* root); |
---|
24 | |
---|
25 | void setSpeed(float x, float y, float z); |
---|
26 | void setMomentum (float angle, float x, float y, float z); |
---|
27 | |
---|
28 | virtual void tick(float dt); |
---|
29 | |
---|
30 | private: |
---|
31 | Vector* speed; |
---|
32 | Quaternion* momentum; |
---|
33 | }; |
---|
34 | |
---|
35 | #endif /* _MODEL_ENTITY_H */ |
---|
36 | |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.