代码拉取完成,页面将自动刷新
同步操作将从 CL4G_TBC/CCM-TBC-Anticheat 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#pragma once
#include "Entities/Player.h"
#include <sstream>
// Move those please.
static const std::string MSG_COLOR_LIGHTRED = "|cffff6060";
static const std::string MSG_COLOR_LIGHTBLUE = "|cff00ccff";
static const std::string MSG_COLOR_ANN_GREEN = "|c1f40af20";
static const std::string MSG_COLOR_RED = "|cffff0000";
static const std::string MSG_COLOR_GOLD = "|cffffcc00";
static const std::string MSG_COLOR_SUBWHITE = "|cffbbbbbb";
static const std::string MSG_COLOR_MAGENTA = "|cffff00ff";
static const std::string MSG_COLOR_YELLOW = "|cffffff00";
static const std::string MSG_COLOR_CYAN = "|cff00ffff";
static const std::string MSG_COLOR_DARKBLUE = "|cff0000ff";
static const std::string MSG_COLOR_GREY = "|cff9d9d9d";
static const std::string MSG_COLOR_WHITE = "|cffffffff";
static const std::string MSG_COLOR_GREEN = "|cff1eff00";
static const std::string MSG_COLOR_BLUE = "|cff0080ff";
static const std::string MSG_COLOR_PURPLE = "|cffb048f8";
static const std::string MSG_COLOR_ORANGE = "|cffff8000";
static const std::string MSG_COLOR_DRUID = "|cffff7d0a";
static const std::string MSG_COLOR_HUNTER = "|cffabd473";
static const std::string MSG_COLOR_MAGE = "|cff69ccf0";
static const std::string MSG_COLOR_PALADIN = "|cfff58cba";
static const std::string MSG_COLOR_PRIEST = "|cffffffff";
static const std::string MSG_COLOR_ROGUE = "|cfffff569";
static const std::string MSG_COLOR_SHAMAN = "|cff0070de";
static const std::string MSG_COLOR_WARLOCK = "|cff9482c9";
static const std::string MSG_COLOR_WARRIOR = "|cffc79c6e";
enum MessageTypes
{
CHAT_BOX = 0x1,
CHAT_WIDE = 0x2
};
class AntiCheat;
class CPlayer : public Player
{
// Typedefs
public:
typedef std::vector<AntiCheat*> AntiCheatStorage;
// Constructor / destructor
public:
explicit CPlayer(WorldSession* session);
~CPlayer();
// Cast helper
public:
Player* ToPlayer() { return static_cast<Player*>(this); }
// AntiCheat
public:
virtual void DismountEvent() override;
bool HandleAntiCheat(MovementInfo& moveInfo, Opcodes opcode);
void HandleKnockBack(float angle, float horizontalSpeed, float verticalSpeed);
void HandleRelocate(float x, float y, float z, float o);
void HandleTeleport(uint32 map, float x, float y, float z, float o);
void HandleUpdate(uint32 update_diff/*, uint32 p_time*/);
void AddAntiCheatModule(AntiCheat* antiCheat);
void SetGMFly(bool value) { m_GMFly = value; }
bool GetGMFly() { return m_GMFly; }
private:
AntiCheatStorage m_AntiCheatStorage;
bool m_GMFly;
// Chat messages
public:
void SendSteamMessages(MessageTypes type, std::stringstream &ss);
std::stringstream BoxChat;
std::stringstream WideChat;
std::stringstream BothChat;
// Hooked Player functions
public:
void CUpdate(uint32 update_diff/*, uint32 p_time*/);
// Misc
bool AddAura(uint32 spellid);
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。