| Line |   | 
|---|
| 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: | 
|---|
| 19 |     Rotor(const TiXmlElement* root); | 
|---|
| 20 |  | 
|---|
| 21 |     virtual ~Rotor(); | 
|---|
| 22 |  | 
|---|
| 23 |     virtual void loadParams(const TiXmlElement* root); | 
|---|
| 24 |  | 
|---|
| 25 |     void initRotation(float x, float y, float z); | 
|---|
| 26 |  | 
|---|
| 27 |     virtual void tick(float time); | 
|---|
| 28 |  | 
|---|
| 29 |   private: | 
|---|
| 30 |     Vector              rotation;         //!< the rotation axis | 
|---|
| 31 |     Quaternion          mainDir;          //!< the start direction | 
|---|
| 32 |     double              totalTime;        //!< total time | 
|---|
| 33 | }; | 
|---|
| 34 |  | 
|---|
| 35 | #endif  /* _ROTOR_H */ | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.