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

  1. //----------------------------------------------------------------
  2. // VehicleAnimated.h
  3. //
  4. // Copyright 2002-2004 Raven Software
  5. //----------------------------------------------------------------
  6.  
  7. #ifndef __GAME_VEHICLEANIMATED_H__
  8. #define __GAME_VEHICLEANIMATED_H__
  9.  
  10. #include "Vehicle.h"
  11. #include "../physics/Physics_Monster.h"
  12.  
  13. class rvVehicleAnimated : public rvVehicle {
  14. public:
  15.  
  16.     CLASS_PROTOTYPE( rvVehicleAnimated );
  17.  
  18.                             rvVehicleAnimated            ( void );
  19.                             ~rvVehicleAnimated            ( void );
  20.  
  21.     void                    Spawn                        ( void );
  22.     void                    Think                        ( void );    
  23.     void                    Save                        ( idSaveGame *savefile ) const;
  24.     void                    Restore                        ( idRestoreGame *savefile );
  25.  
  26.     virtual const idMat3&    GetAxis                        ( int id = 0 ) const;
  27.  
  28.     void                    ClientPredictionThink        ( void );
  29.     void                    WriteToSnapshot                ( idBitMsgDelta &msg ) const;
  30.     void                    ReadFromSnapshot            ( const idBitMsgDelta &msg );
  31.  
  32.     virtual bool            GetPhysicsToVisualTransform ( idVec3 &origin, idMat3 &axis );
  33.  
  34. protected:
  35.  
  36.     // twhitaker:
  37.     virtual void            RunPrePhysics            ( void );
  38.     virtual void            RunPostPhysics            ( void );
  39.     idVec3                    storedPosition;
  40.     // end twhitaker:
  41.  
  42.     idPhysics_Monster        physicsObj;
  43.  
  44.     idAngles                viewAngles;    
  45.     float                    turnRate;
  46.     idVec3                    additionalDelta;
  47. };
  48.  
  49. #endif // __GAME_VEHICLEANIMATED_H__
  50.