home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / Shot.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-24  |  779 b   |  36 lines

  1. #ifndef __Shot_h__
  2. #define __Shot_h__
  3.  
  4. #include "GameObject.h"
  5.  
  6. #include "PacketHandler.h"
  7. #include "Weapon.h"
  8.  
  9. class Shot: public GameObject{
  10. public:
  11.     //Weapon* weapon;
  12.     int type;
  13.     int clientId;
  14.     int weaponId;
  15.     unsigned int lifetimeMillis;
  16.     unsigned int spawntimeMillis;
  17.     float boundingSphereRadius;
  18.     int inflictedDamage;
  19.  
  20.     Shot(int clientId, int weaponId, unsigned int lifetimeMillis);
  21.     virtual ~Shot();
  22.  
  23.     virtual void leaveMuzzle();
  24.     virtual void move(float deltaT);
  25.     virtual void hitFace(Face* face, vec3_t hp);
  26.     virtual void hitVehicle(Vehicle* vehicle, vec3_t hp);
  27.  
  28.     virtual void render();
  29.  
  30.  
  31.     static Shot* createShotForShotSpawnPacket(shotSpawnPacket_t* ss);
  32.     static Shot* createShotForWeapon(Weapon* weapon);
  33. };
  34.  
  35. #endif    /* __Shot_h__ */
  36.