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

  1. //----------------------------------------------------------------
  2. // ClientModel.h
  3. //
  4. // A non-interactive client-side model
  5. //
  6. // Copyright 2002-2004 Raven Software
  7. //----------------------------------------------------------------
  8.  
  9. #ifndef __GAME_CLIENT_MODEL_H__
  10. #define __GAME_CLIENT_MODEL_H__
  11.  
  12. class rvClientModel : public rvClientEntity {
  13. public:
  14.  
  15.     CLASS_PROTOTYPE( rvClientModel );
  16.  
  17.     rvClientModel ( void );
  18.     virtual ~rvClientModel ( void );
  19.     
  20.     virtual void            Spawn            ( const idDict* spawnArgs );
  21.     virtual void            Think            ( void );
  22.     
  23.     renderEntity_t*            GetRenderEntity    ( void );
  24.     const char*                GetClassname    ( void ) const;
  25.  
  26.     bool                    SetCustomShader    ( const char* shaderName );
  27.  
  28.     void                    Save            ( idSaveGame *savefile ) const;
  29.     void                    Restore            ( idRestoreGame *savefile );
  30.  
  31.     void                    FreeEntityDef    ( void );
  32.  
  33. protected:
  34.     void                    Present            ( void );
  35.  
  36.     renderEntity_t            renderEntity;
  37.     int                        entityDefHandle;
  38.  
  39.     idStr                    classname;
  40. };
  41.  
  42. ID_INLINE renderEntity_t* rvClientModel::GetRenderEntity ( void ) {
  43.     return &renderEntity;
  44. }
  45.  
  46. ID_INLINE const char* rvClientModel::GetClassname ( void ) const {
  47.     return classname.c_str();
  48. }
  49.  
  50.  
  51. #endif // __GAME_CLIENT_MODEL_H__
  52.