Files
DoomRTX/neo/prey/Prey/game_barrel.h
T
2026-05-05 15:01:01 -07:00

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