EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TargetManager::TargetEntry Class Reference

#include "TargetManager.h"

Collaboration diagram for TargetManager::TargetEntry:

Public Member Functions

 TargetEntry ()
 
void Dump (SystemEntity *pSE) const
 

Public Attributes

uint8 state
 
Timer timer
 

Detailed Description

Definition at line 167 of file TargetManager.h.

Constructor & Destructor Documentation

TargetManager::TargetEntry::TargetEntry ( )
inline

Member Function Documentation

void TargetManager::TargetEntry::Dump ( SystemEntity pSE) const

Definition at line 778 of file TargetManager.cpp.

References _log, Timer::Enabled(), SystemEntity::GetID(), SystemEntity::GetName(), Timer::GetRemainingTime(), TargetManager::GetStateName(), state, and timer.

778  {
779  if (timer.Enabled()) {
780  _log(TARGET__DUMP, " Targeting %s(%u): %s - Timer Running with %ums remaining.", \
782  } else {
783  _log(TARGET__DUMP, " Targeting %s(%u): %s", pSE->GetName(), pSE->GetID(), TargetManager::GetStateName(state));
784  }
785 }
#define _log(type, fmt,...)
Definition: logsys.h:124
static const char * GetStateName(uint8 state)
uint32 GetRemainingTime() const
Definition: timer.cpp:114
bool Enabled() const
Definition: timer.h:41
uint32 GetID()
Definition: SystemEntity.h:207
const char * GetName() const
Definition: SystemEntity.h:210

Here is the call graph for this function:

Member Data Documentation

uint8 TargetManager::TargetEntry::state

Definition at line 174 of file TargetManager.h.

Referenced by Dump(), and TargetManager::StartTargeting().

Timer TargetManager::TargetEntry::timer

Definition at line 176 of file TargetManager.h.

Referenced by Dump(), and TargetManager::StartTargeting().


The documentation for this class was generated from the following files: