EvEmu
0.8.4
11 September 2021
|
#include "timer.h"
Public Member Functions | |
Timer (uint32 time=0, bool useAcurateTiming=false) | |
Timer (uint32 startAt, uint32 time, bool useAcurateTiming=false) | |
~Timer () | |
void | Enable () |
void | Disable () |
const uint32 & | GetSetAtTrigger () |
bool | Enabled () const |
uint32 | GetStartTime () const |
uint32 | GetDuration () const |
void | Trigger () |
void | SetTimer (uint32 setTimerTime=0) |
void | Start (uint32 setTimerTime=0, bool changeResetTimer=true) |
void | SetAtTrigger (uint32 setAtTrigger, bool enableIfDisabled=false) |
bool | TimerFinished () |
bool | Check (bool reset=true) |
uint32 | GetRemainingTime () const |
uint32 | GetCurrentTime () |
Static Public Member Functions | |
static const void | SetCurrentTime () |
Private Attributes | |
bool | m_enabled |
bool | m_useAcurateTiming |
uint32 | m_duration |
uint32 | m_startTime |
uint32 | m_setAtTrigger |
Timer::Timer | ( | uint32 | time = 0 , |
bool | useAcurateTiming = false |
||
) |
Definition at line 37 of file timer.cpp.
References currentTime, m_duration, m_enabled, m_setAtTrigger, m_startTime, and m_useAcurateTiming.
Definition at line 49 of file timer.cpp.
References m_duration, m_enabled, m_setAtTrigger, m_startTime, and m_useAcurateTiming.
bool Timer::Check | ( | bool | reset = true | ) |
Definition at line 62 of file timer.cpp.
References currentTime, m_duration, m_enabled, m_setAtTrigger, m_startTime, and m_useAcurateTiming.
Referenced by SentryAI::Attack(), DroneAIMgr::Attack(), NPCAIMgr::Attack(), ConcordAI::Attack(), Client::IsJetcanAvalible(), SentryAI::Process(), ActiveModule::Process(), SpawnMgr::Process(), AnomalyMgr::Process(), WormholeMgr::Process(), BeltMgr::Process(), MarketBotMgr::Process(), Missile::Process(), Colony::Process(), BubbleManager::Process(), SystemBubble::Process(), NPCAIMgr::Process(), EntityList::Process(), AsteroidSE::Process(), ConcordAI::Process(), StructureSE::Process(), ContainerSE::Process(), WreckSE::Process(), ShipSE::Process(), Client::ProcessClient(), SystemManager::ProcessTic(), ProbeSE::ProcessTic(), and EVETCPConnection::RecvData().
|
inline |
Definition at line 39 of file timer.h.
References m_enabled.
Referenced by Colony::AbandonColony(), ActiveModule::AbortCycle(), ContainerSE::AnchorContainer(), AsteroidSE::AsteroidSE(), NPCAIMgr::Attack(), ActiveModule::Clear(), ConcordAI::ConcordAI(), CrimeWatch::CrimeWatch(), NPCAIMgr::DisableRepTimers(), ConcordAI::DisableRepTimers(), NPCAIMgr::DisableWarpOutTimer(), AsteroidSE::Grow(), Client::MoveToLocation(), ActiveModule::Process(), SpawnMgr::Process(), Missile::Process(), Colony::Process(), SystemBubble::Process(), NPCAIMgr::Process(), StructureSE::Process(), ContainerSE::Process(), WreckSE::Process(), Client::ProcessClient(), ProbeSE::ProcessTic(), SentryAI::SentryAI(), Client::SetBallPark(), Client::SetBallParkTimer(), NPCAIMgr::SetChasing(), Client::SetCloakTimer(), NPCAIMgr::SetEngaged(), NPCAIMgr::SetFleeing(), NPCAIMgr::SetFollowing(), SentryAI::SetIdle(), DroneAIMgr::SetIdle(), NPCAIMgr::SetIdle(), ConcordAI::SetIdle(), Client::SetInvulTimer(), NPCAIMgr::SetSignaling(), Client::SetStateTimer(), Client::SetUncloakTimer(), SpawnMgr::StopRatGroupTimer(), SpawnMgr::StopRatTimer(), ActiveModule::StopTimer(), StructureSE::StructureSE(), SentryAI::Target(), DroneAIMgr::Target(), NPCAIMgr::Target(), ConcordAI::Target(), SentryAI::Targeted(), NPCAIMgr::Targeted(), ConcordAI::Targeted(), NPCAIMgr::WarpOut(), NPCAIMgr::WarpOutComplete(), and DestinyManager::~DestinyManager().
|
inline |
Definition at line 38 of file timer.h.
References m_enabled.
Referenced by SetAtTrigger().
|
inline |
Definition at line 41 of file timer.h.
References m_enabled.
Referenced by ActiveModule::Activate(), SystemBubble::Add(), Client::CheckBallparkTimer(), SentryAI::CheckDistance(), DroneAIMgr::CheckDistance(), ConcordAI::CheckDistance(), Client::CynoJump(), TargetManager::TargetEntry::Dump(), Client::IsJetcanAvalible(), SpawnMgr::IsRatTimerStarted(), ActiveModule::LoadCharge(), Colony::LoadPlants(), SentryAI::Process(), ActiveModule::Process(), SpawnMgr::Process(), SystemBubble::Process(), NPCAIMgr::Process(), ConcordAI::Process(), Client::ProcessClient(), ProbeSE::ProcessTic(), SystemBubble::ResetBubbleRatSpawn(), Client::SetBallParkTimer(), Client::SetCloakTimer(), Client::SetInvulTimer(), Colony::SetProgramResults(), Colony::SetSchematic(), Client::SetStateTimer(), ActiveModule::SetTimer(), Client::SetUncloakTimer(), Client::StargateJump(), SpawnMgr::StartRatGroupTimer(), SpawnMgr::StartRatTimer(), NPCAIMgr::Target(), and NPCAIMgr::Targeted().
uint32 Timer::GetCurrentTime | ( | ) |
Definition at line 134 of file timer.cpp.
References currentTime.
Referenced by Client::ProcessClient(), Client::SetBallParkTimer(), Client::SetCloakTimer(), Client::SetInvulTimer(), Client::SetStateTimer(), and Client::SetUncloakTimer().
|
inline |
uint32 Timer::GetRemainingTime | ( | ) | const |
Definition at line 114 of file timer.cpp.
References currentTime, m_duration, m_enabled, and m_startTime.
Referenced by Client::CheckBallparkTimer(), TargetManager::TargetEntry::Dump(), ProbeSE::GetMoveTime(), ActiveModule::GetRemainingCycleTimeMS(), Client::GetSessionChangeTime(), Client::JetcanTime(), Client::SetBallParkTimer(), Client::SetCloakTimer(), Client::SetInvulTimer(), Client::SetStateTimer(), Client::SetUncloakTimer(), and SpawnMgr::StartRatGroupTimer().
|
inline |
|
inline |
void Timer::SetAtTrigger | ( | uint32 | setAtTrigger, |
bool | enableIfDisabled = false |
||
) |
Definition at line 122 of file timer.cpp.
References Enable(), m_enabled, and m_setAtTrigger.
|
static |
Definition at line 138 of file timer.cpp.
References currentTime, GetSteadyTime(), and lastTime.
Referenced by main().
void Timer::SetTimer | ( | uint32 | setTimerTime = 0 | ) |
Definition at line 102 of file timer.cpp.
References currentTime, m_duration, m_enabled, m_setAtTrigger, and m_startTime.
Referenced by StructureSE::Activate(), StructureSE::Deactivate(), StructureSE::PullAnchor(), StructureSE::SetAnchor(), and StructureSE::SetTimer().
void Timer::Start | ( | uint32 | setTimerTime = 0 , |
bool | changeResetTimer = true |
||
) |
Definition at line 81 of file timer.cpp.
References currentTime, m_duration, m_enabled, m_setAtTrigger, and m_startTime.
Referenced by SystemManager::BootSystem(), SentryAI::CheckDistance(), DroneAIMgr::CheckDistance(), ConcordAI::CheckDistance(), EVETCPConnection::ClearBuffers(), ConcordAI::ConcordAI(), ContainerSE::ContainerSE(), DroneAIMgr::DroneAIMgr(), AnomalyMgr::Init(), BeltMgr::Init(), WormholeMgr::Initialize(), BubbleManager::Initialize(), EntityList::Initialize(), ActiveModule::LoadCharge(), Colony::LoadPlants(), Missile::Missile(), Client::MoveToLocation(), ProbeSE::ProbeSE(), SentryAI::Process(), NPCAIMgr::Process(), EVETCPConnection::ProcessReceivedData(), ProbeSE::RecoverProbe(), SentryAI::SentryAI(), Client::SetBallPark(), Client::SetBallParkTimer(), Client::SetCloakTimer(), Missile::SetHitTimer(), NPCAIMgr::SetIdle(), Client::SetInvulTimer(), Colony::SetProgramResults(), Client::SetScanTimer(), Colony::SetSchematic(), Client::SetSessionTimer(), SystemBubble::SetSpawnTimer(), Client::SetStateTimer(), ActiveModule::SetTimer(), Client::SetUncloakTimer(), ShipSE::ShipSE(), Client::StartJetcanTimer(), SpawnMgr::StartRatGroupTimer(), SpawnMgr::StartRatTimer(), ProbeSE::StartStateTimer(), TargetManager::StartTargeting(), NPCAIMgr::Target(), NPCAIMgr::Targeted(), and ProbeSE::UpdateProbe().
bool Timer::TimerFinished | ( | ) |
void Timer::Trigger | ( | ) |
Definition at line 128 of file timer.cpp.
References currentTime, m_duration, m_enabled, m_setAtTrigger, and m_startTime.
|
private |
Definition at line 64 of file timer.h.
Referenced by Check(), GetDuration(), GetRemainingTime(), SetTimer(), Start(), Timer(), and Trigger().
|
private |
Definition at line 60 of file timer.h.
Referenced by Check(), Disable(), Enable(), Enabled(), GetRemainingTime(), SetAtTrigger(), SetTimer(), Start(), Timer(), and Trigger().
|
private |
Definition at line 66 of file timer.h.
Referenced by Check(), GetSetAtTrigger(), SetAtTrigger(), SetTimer(), Start(), Timer(), and Trigger().
|
private |
Definition at line 65 of file timer.h.
Referenced by Check(), GetRemainingTime(), GetStartTime(), SetTimer(), Start(), Timer(), and Trigger().
|
private |