mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
24 lines
504 B
C++
24 lines
504 B
C++
#ifndef EQEMU_COMBAT_RECORD_H
|
|
#define EQEMU_COMBAT_RECORD_H
|
|
|
|
#include <ctime>
|
|
#include <string>
|
|
#include "../common/types.h"
|
|
|
|
class CombatRecord {
|
|
public:
|
|
void Start(std::string in_mob_name);
|
|
void Stop();
|
|
bool InCombat();
|
|
void ProcessHPEvent(int hp, int current_hp);
|
|
double TimeInCombat() const;
|
|
private:
|
|
std::string mob_name;
|
|
time_t start_time = 0;
|
|
time_t end_time = 0;
|
|
int64 damage_received = 0;
|
|
int64 heal_received = 0;
|
|
};
|
|
|
|
#endif //EQEMU_COMBAT_RECORD_H
|