mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
30 lines
883 B
C++
30 lines
883 B
C++
#ifndef __HH_BARREL_H
|
|
#define __HH_BARREL_H
|
|
|
|
class hhBarrel : public hhMoveable {
|
|
|
|
public:
|
|
CLASS_PROTOTYPE( hhBarrel );
|
|
hhBarrel();
|
|
|
|
void Spawn( void );
|
|
|
|
void Save( idSaveGame *savefile ) const;
|
|
void Restore( idRestoreGame *savefile );
|
|
|
|
void BarrelThink( void );
|
|
virtual void Think( void );
|
|
virtual bool GetPhysicsToVisualTransform( idVec3 &origin, idMat3 &axis );
|
|
virtual void ClientPredictionThink( void );
|
|
|
|
private:
|
|
float radius; // radius of barrel
|
|
int barrelAxis; // one of the coordinate axes the barrel cylinder is parallel to
|
|
idVec3 lastOrigin; // origin of the barrel the last think frame
|
|
idMat3 lastAxis; // axis of the barrel the last think frame
|
|
float additionalRotation; // additional rotation of the barrel about it's axis
|
|
idMat3 additionalAxis; // additional rotation axis
|
|
};
|
|
|
|
|
|
#endif |