prime/include/MetroidPrime/ScriptObjects/CScriptTimer.hpp

31 lines
755 B
C++
Raw Normal View History

#ifndef _CSCRIPTTIMER
#define _CSCRIPTTIMER
#include "MetroidPrime/CEntity.hpp"
class CScriptTimer : public CEntity {
float x34_time;
float x38_startTime;
float x3c_maxRandDelay;
uchar x40_loop;
bool x41_autoStart;
bool x42_isTiming;
public:
CScriptTimer(TUniqueId, const rstl::string&, const CEntityInfo&, float, float, bool, bool, bool);
~CScriptTimer();
void Reset(CStateManager&);
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
void ApplyTime(float, CStateManager&);
void Think(float, CStateManager&);
void Accept(IVisitor&);
bool IsTiming() const { return x42_isTiming; }
void StartTiming(bool isTiming) {
x42_isTiming = isTiming;
}
};
#endif // _CSCRIPTTIMER