src/StateBattle/Bullet.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * Bullet Header
00003  */
00004 
00005 #if !defined ( _BULLET_H_ )
00006 #define _BULLET_H_
00007 
00008 class Ship;
00009 
00010 class Bullet {
00011  public:
00012   Bullet(Ship *ship, float angleIn);
00013   ~Bullet();
00014 
00015   void Update(unsigned int ticks);
00016 
00017   bool CheckCollision(Ship *ship);
00018 
00019   void Draw();
00020 
00021   static void GenerateList();
00022   static void DeleteList();
00023 
00024   // Used to tell AI how fast a bullet is fired
00025   static float GetBulletSpeed();
00026 
00027   float m_location[3];
00028   float m_vector[3];
00029 
00030   Ship *m_owner;
00031 
00032  private:
00033   // Just used to draw the bullet (stored in degrees!)
00034   float m_angle;
00035 
00036   static GLuint s_bulletList;
00037 
00038   // Draws one cannon ball, used to generate list
00039   static void DrawBullet();
00040 };
00041 
00042 #endif

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7