home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shot_h__
- #define __Shot_h__
-
- #include "GameObject.h"
-
- #include "PacketHandler.h"
- #include "Weapon.h"
-
- class Shot: public GameObject{
- public:
- //Weapon* weapon;
- int type;
- int clientId;
- int weaponId;
- unsigned int lifetimeMillis;
- unsigned int spawntimeMillis;
- float boundingSphereRadius;
- int inflictedDamage;
-
- Shot(int clientId, int weaponId, unsigned int lifetimeMillis);
- virtual ~Shot();
-
- virtual void leaveMuzzle();
- virtual void move(float deltaT);
- virtual void hitFace(Face* face, vec3_t hp);
- virtual void hitVehicle(Vehicle* vehicle, vec3_t hp);
-
- virtual void render();
-
-
- static Shot* createShotForShotSpawnPacket(shotSpawnPacket_t* ss);
- static Shot* createShotForWeapon(Weapon* weapon);
- };
-
- #endif /* __Shot_h__ */
-