mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* Initial int64 work * Hate 64 bit * Update special_attacks.cpp * Aggro / Damage / Hate int64 * NPC edit adjustments * Fix bot compile * More int64 adjustments * More int64 references * npcedit references * aggrozone * More int64 changes * More int64 changes for damage * Many more damage int64 references * More spell damage int64 conversions * HealDamage * Damage fully working * Remove debug * Add migration * More int64 adjustments * Much wow, many int64 * More int64 * PR adjustments
24 lines
508 B
C++
24 lines
508 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(int64 hp, int64 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
|