mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 20:56:37 +00:00
[Combat] Basic Combat Recording (#2090)
* Basic combat recording * Update combat_record.h
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user