mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 09:07:22 +00:00
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#ifndef SC_ACDATA_H
|
|
#define SC_ACDATA_H
|
|
|
|
#include "AnticheatMgr.h"
|
|
|
|
#define MAX_REPORT_TYPES 11
|
|
|
|
class AnticheatData
|
|
{
|
|
public:
|
|
AnticheatData();
|
|
~AnticheatData();
|
|
|
|
void SetLastOpcode(uint32 opcode);
|
|
uint32 GetLastOpcode() const;
|
|
|
|
const MovementInfo& GetLastMovementInfo() const;
|
|
void SetLastMovementInfo(MovementInfo& moveInfo);
|
|
|
|
void SetPosition(float x, float y, float z, float o);
|
|
|
|
uint32 GetTotalReports() const;
|
|
void SetTotalReports(uint32 _totalReports);
|
|
|
|
uint32 GetTypeReports(uint32 type) const;
|
|
void SetTypeReports(uint32 type, uint32 amount);
|
|
|
|
float GetAverage() const;
|
|
void SetAverage(float _average);
|
|
|
|
uint32 GetCreationTime() const;
|
|
void SetCreationTime(uint32 creationTime);
|
|
|
|
void SetTempReports(uint32 amount, uint8 type);
|
|
uint32 GetTempReports(uint8 type);
|
|
|
|
void SetTempReportsTimer(uint32 time, uint8 type);
|
|
uint32 GetTempReportsTimer(uint8 type);
|
|
|
|
void SetDailyReportState(bool b);
|
|
bool GetDailyReportState();
|
|
private:
|
|
uint32 lastOpcode;
|
|
MovementInfo lastMovementInfo;
|
|
uint32 totalReports;
|
|
uint32 typeReports[MAX_REPORT_TYPES];
|
|
float average;
|
|
uint32 creationTime;
|
|
uint32 tempReports[MAX_REPORT_TYPES];
|
|
uint32 tempReportsTimer[MAX_REPORT_TYPES];
|
|
bool hasDailyReport;
|
|
};
|
|
|
|
#endif
|