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

  1. //----------------------------------------------------------------
  2. // VehicleSpline.h
  3. //
  4. // Copyright 2002-2004 Raven Software
  5. //----------------------------------------------------------------
  6.  
  7. #ifndef __GAME_VEHICLESPLINECOUPLING_H__
  8. #define __GAME_VEHICLESPLINECOUPLING_H__
  9.  
  10. class rvVehicleSpline : public rvVehicle {
  11. public:
  12.     CLASS_PROTOTYPE( rvVehicleSpline );
  13.  
  14.                             rvVehicleSpline                    ( void );
  15.                             ~rvVehicleSpline                ( void );
  16.     
  17.     void                    Spawn                            ( void );
  18.     void                    Save                            ( idSaveGame *savefile ) const;
  19.     void                    Restore                            ( idRestoreGame *savefile );
  20.  
  21.     void                    Think                            ( void );
  22.  
  23.     void                    Event_PostSpawn                    ( void );
  24.     void                    Event_SetSpline                    ( idEntity * spline );
  25.     void                    Event_DoneMoving                ( void );
  26.  
  27. protected:
  28.     rvPhysics_Spline        physicsObj;
  29.     idMat3                    angleOffset;
  30.     float                    idealSpeed;
  31.     float                    accelWithStrafe;
  32. };
  33.  
  34. #endif // __GAME_VEHICLESPLINECOUPLING_H__
  35.