-
Notifications
You must be signed in to change notification settings - Fork 22
/
ClientEvents.h
71 lines (56 loc) · 1.76 KB
/
ClientEvents.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include "BinaryReader.h"
class CBasePlayer;
const float sidestep_factor = 0.5f;
const float backwards_factor = 0.64999998f;
const float run_turn_factor = 1.5f;
const float run_anim_speed = 4.0f;
const float walk_anim_speed = 3.1199999f;
const float sidestep_anim_speed = 1.25f;
const float max_sidestep_anim_rate = 3.0f;
// Client/World interaction
class CClientEvents
{
public:
CClientEvents(CClient *);
~CClientEvents();
void Think();
void DetachPlayer();
DWORD GetPlayerID();
CBasePlayer* GetPlayer();
void LoginError(int iError);
void LoginCharacter(DWORD dwGUID, const char *szAccount);
void BeginLogout();
void ExitWorld();
void ActionComplete();
void SendText(const char *szText, long lColor);
void UpdateBurdenUI();
// Network events
void ActionText(char* szText);
void Attack(DWORD dwTarget, DWORD dwHeight, float flPower);
void ChangeCombatStance(DWORD dwStance);
void ChannelText(DWORD dwChannel, const char* szText);
void ClientText(char* szText);
void DropItem(DWORD dwGUID);
void EmoteText(char* szText);
void EquipItem(DWORD dwItemID, DWORD dwCoverage);
void ExitPortal();
void Identify(DWORD dwObjectID);
void LifestoneRecall();
void MarketplaceRecall();
void Ping();
void RequestHealthUpdate(DWORD dwGUID);
void SendTellByGUID(const char* szText, DWORD dwGUID);
void SendTellByName(const char* szText, const char* szName);
void SpendAttributeXP(DWORD dwAttribute, DWORD dwXP);
void SpendVitalXP(DWORD dwVital, DWORD dwXP);
void SpendSkillXP(DWORD dwSkill, DWORD dwXP);
void StoreItem(DWORD dwItemID, DWORD dwContainer, char cSlot);
void UseItemEx(DWORD dwSourceID, DWORD dwDestID);
void UseObject(DWORD dwEID);
void ProcessEvent(BinaryReader *);
private:
CClient *m_pClient;
CBasePlayer *m_pPlayer;
double m_fLogout;
};