home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 March
/
Gamestar_82_2006-03_dvd.iso
/
DVDStar
/
Editace
/
quake4_sdkv10.exe
/
source
/
game
/
vehicle
/
VehicleMonster.h
< prev
next >
Wrap
C/C++ Source or Header
|
2005-11-14
|
1KB
|
44 lines
//----------------------------------------------------------------
// VehicleMonster.h
//
// Copyright 2002-2004 Raven Software
//----------------------------------------------------------------
#ifndef __GAME_VEHICLEMONSTER_H__
#define __GAME_VEHICLEMONSTER_H__
#ifndef __GAME_VEHICLE_H__
#include "Vehicle.h"
#endif
class rvVehicleMonster : public rvVehicle {
friend class rvVehicleAI;
public:
CLASS_PROTOTYPE( rvVehicleMonster );
rvVehicleMonster ( void );
~rvVehicleMonster ( void );
void Spawn ( void );
void Think ( void );
void Save ( idSaveGame *savefile ) const;
void Restore ( idRestoreGame *savefile );
bool SkipImpulse ( idEntity* ent, int id );
protected:
void SetClipModel ( idPhysics & physicsObj );
const idVec3 & GetTargetOrigin ( void );
idVec3 GetVectorToTarget ( void );
const idVec3 & GetEnemyOrigin ( void );
idVec3 GetVectorToEnemy ( void );
void LookAtEntity ( idEntity *ent, float duration );
idEntityPtr<rvVehicleAI> driver;
};
#endif // __GAME_VEHICLEMONSTER_H__