mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 16:20:42 +02:00
37 lines
927 B
C++
37 lines
927 B
C++
#ifndef __HH_LIGHT_FIXTURE_H
|
|
#define __HH_LIGHT_FIXTURE_H
|
|
|
|
class hhLightFixture : public hhAFEntity {
|
|
CLASS_PROTOTYPE( hhLightFixture );
|
|
|
|
public:
|
|
~hhLightFixture();
|
|
|
|
void Spawn();
|
|
void Save( idSaveGame *savefile ) const;
|
|
void Restore( idRestoreGame *savefile );
|
|
|
|
virtual void Damage( idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location );
|
|
virtual void Killed( idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location );
|
|
virtual void Present( void );
|
|
|
|
protected:
|
|
void GetBoundLight();
|
|
idLight* SearchForBoundLight();
|
|
bool StillBound( const idLight* light );
|
|
void RemoveLight();
|
|
|
|
void PresentModelDefChange( void );
|
|
|
|
protected:
|
|
void Event_PostSpawn();
|
|
void Event_Hide();
|
|
void Event_Show();
|
|
|
|
protected:
|
|
jointHandle_t collisionBone;
|
|
|
|
idEntityPtr<idLight> boundLight;
|
|
};
|
|
|
|
#endif |