area51/Support/Trigger/trigger_volume.hpp
Andrew Sampson 431f72b93a source
2021-08-27 19:22:41 -07:00

40 lines
No EOL
981 B
C++

///////////////////////////////////////////////////////////////////////////////////////////////////
//
// trigger_volume.hpp
//
// trigger_volume adds volume functionality to triger. I seperated this class since it seemed
// the volume functionality would be used in at least a few other triggers but not in all of
// the triggers.
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef TRIGGER_VOLUME_HPP
#define TRIGGER_VOLUME_HPP
#include "object\spatial_volume.hpp"
class trigger_volume : public trigger
{
public:
trigger_volume(void);
virtual ~trigger_volume();
virtual void OnUpdate( f32 deltaTime );
virtual void SetPeriod(f32 newPeriod );
spatial_volume& GetVolume( void ) { return m_Volume; }
protected:
spatial_volume m_Volume;
};
#endif//TRIGGER_OBJECT_IN_VOLUME_HPP