source:
orxonox.OLD/branches/presentation/src/world_entities/environments/rotor.h
Last change on this file was 10720, checked in by stefalie, 17 years ago | |
---|---|
File size: 797 bytes |
Rev | Line | |
---|---|---|
[10276] | 1 | /*! |
2 | * @file rotor.h | |
3 | * Rotor is a object which rotates around a given adress with a given speed | |
4 | */ | |
5 | ||
6 | #ifndef _ROTOR_H | |
7 | #define _ROTOR_H | |
8 | ||
9 | /* INCLUDES */ | |
10 | #include "world_entity.h" | |
11 | ||
12 | /* FORWARD DECLARATION */ | |
13 | ||
14 | //! A Class to handle a Building | |
15 | class Rotor : public WorldEntity | |
16 | { | |
17 | ObjectListDeclaration(Rotor); | |
18 | public: | |
[10720] | 19 | Rotor(const TiXmlElement* root = NULL); |
[10276] | 20 | |
21 | virtual ~Rotor(); | |
[10533] | 22 | |
[10276] | 23 | virtual void loadParams(const TiXmlElement* root); |
[10533] | 24 | |
[10276] | 25 | void initRotation(float x, float y, float z); |
[10533] | 26 | |
[10276] | 27 | virtual void tick(float time); |
[10533] | 28 | |
[10276] | 29 | private: |
30 | Vector rotation; //!< the rotation axis | |
[10553] | 31 | Quaternion mainDir; //!< the start direction |
[10533] | 32 | double totalTime; //!< total time |
[10276] | 33 | }; |
34 | ||
35 | #endif /* _ROTOR_H */ | |
36 | ||
37 | ||
38 |
Note: See TracBrowser
for help on using the repository browser.