home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 March / Gamestar_82_2006-03_dvd.iso / DVDStar / Editace / quake4_sdkv10.exe / source / game / vehicle / VehicleRigid.h < prev    next >
C/C++ Source or Header  |  2005-11-14  |  1KB  |  46 lines

  1. //----------------------------------------------------------------
  2. // VehicleRigid.h
  3. //
  4. // Copyright 2002-2004 Raven Software
  5. //----------------------------------------------------------------
  6.  
  7. #ifndef __GAME_VEHICLERIGID_H__
  8. #define __GAME_VEHICLERIGID_H__
  9.  
  10. #ifndef __GAME_VEHICLE_H__
  11. #include "Vehicle.h"
  12. #endif
  13.  
  14. class rvVehicleRigid : public rvVehicle
  15. {
  16. public:
  17.  
  18.     CLASS_PROTOTYPE( rvVehicleRigid );
  19.  
  20.                             rvVehicleRigid        ( void );
  21.                             ~rvVehicleRigid        ( void );
  22.  
  23.     void                    Spawn                ( void );
  24.     void                    Save                ( idSaveGame *savefile ) const;
  25.     void                    Restore                ( idRestoreGame *savefile );
  26.  
  27.     void                    WriteToSnapshot        ( idBitMsgDelta &msg ) const;
  28.     void                    ReadFromSnapshot    ( const idBitMsgDelta &msg );
  29.  
  30.     bool                    SkipImpulse            ( idEntity* ent, int id );
  31.  
  32. protected:
  33.     
  34.     void                    SetClipModel    ( void );
  35.     
  36.     // twhitaker:
  37.     virtual void            RunPrePhysics            ( void );
  38.     virtual void            RunPostPhysics            ( void );
  39.     idVec3                    storedVelocity;
  40.     // end twhitaker:
  41.  
  42.     idPhysics_RigidBody        physicsObj;                // physics object
  43. };
  44.  
  45. #endif // __GAME_VEHICLERIGID_H__
  46.