home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / Drone.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  1.0 KB  |  44 lines

  1. #ifndef __Drone_h__
  2. #define __Drone_h__
  3.  
  4. #include "Vehicle.h"
  5. #include "Animator.h"
  6.  
  7. typedef struct drone_dlpcCombo_s{
  8.     DynamicLightParticleCluster* dlpc;
  9.     GLfloat** jetsModel_colors;
  10.     GLfloat** bodyModel_colors;
  11.     GLfloat** weaponModel_colors[4];
  12. }drone_dlpcCombo_t;
  13.  
  14. class Drone: public Vehicle{
  15. public:
  16.     Drone(Client* client);
  17.     virtual ~Drone();
  18.  
  19.     Model* bodyModel;
  20.     Animator* bodyAnimator;
  21.     Model* jetsModel;
  22.     Animator* jetsAnimator;
  23.     float jetsFrame;
  24.  
  25.     void moveForward(float deltaT);
  26.     void moveBackward(float deltaT);
  27.     void moveLeft(float deltaT);
  28.     void moveRight(float deltaT);
  29.     void moveUp(float deltaT);
  30.     void moveDown(float deltaT);
  31.  
  32.     void move();
  33.  
  34.     vector<drone_dlpcCombo_t> dlpcs;
  35.     GLfloat** jetsModelSecondaryColors;
  36.     GLfloat** bodyModelSecondaryColors;
  37.     GLfloat** weaponModelSecondaryColors[4];
  38.     void addDynamicLightParticleCluster(DynamicLightParticleCluster* dlpc);
  39.     void removeDynamicLightParticleCluster(DynamicLightParticleCluster* dlpc);
  40.     void render();
  41. };
  42.  
  43. #endif    /* __Drone_h__ */
  44.