2016-04-19 21:25:26 +00:00
|
|
|
#ifndef __URDE_CSCRIPTIMER_HPP__
|
|
|
|
#define __URDE_CSCRIPTIMER_HPP__
|
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CScriptTimer : public CEntity
|
|
|
|
{
|
2016-12-19 19:19:13 +00:00
|
|
|
float x34_time;
|
|
|
|
float x38_startTime;
|
|
|
|
float x3c_maxRandDelay;
|
|
|
|
bool x40_loop;
|
|
|
|
bool x41_autoStart;
|
|
|
|
bool x42_isTiming;
|
2016-04-19 21:25:26 +00:00
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptTimer(TUniqueId, std::string_view name, const CEntityInfo& info,
|
2016-04-19 21:25:26 +00:00
|
|
|
float, float, bool, bool, bool);
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2016-12-19 18:27:58 +00:00
|
|
|
void Think(float, CStateManager &);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager &stateMgr);
|
2016-12-19 19:19:13 +00:00
|
|
|
bool IsTiming() const;
|
|
|
|
void StartTiming(bool isTiming);
|
2016-12-19 18:27:58 +00:00
|
|
|
void Reset(CStateManager&);
|
|
|
|
void ApplyTime(float, CStateManager&);
|
2016-04-19 21:25:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CSCRIPTIMER_HPP__
|