forked from derandark/PhatAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
81 lines (57 loc) · 1.71 KB
/
Player.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
69
70
71
72
73
74
75
76
77
78
#pragma once
class CClient;
class BinaryWriter;
class CBasePlayer : public CBaseMonster
{
public:
CBasePlayer(CClient *, DWORD dwGUID);
~CBasePlayer();
BOOL PlayerThink();
//base virtuals
virtual void Precache();
virtual void Save();
virtual void RemoveMe()
{
m_pClient = NULL;
CBaseMonster::RemoveMe();
}
//General Player Statistics.
virtual const char *GetGenderString();
virtual const char *GetRaceString();
virtual const char *GetTitleString();
virtual BinaryWriter *GetModelData();
virtual DWORD GiveAttributeXP(eAttribute index, DWORD dwXP);
virtual DWORD GiveVitalXP(eVital index, DWORD dwXP);
virtual DWORD GiveSkillXP(eSkill index, DWORD dwXP);
//Movement overrides
//...
//Animation overrides
//...
//Control events.
virtual void MakeAware(CPhysicsObj *);
virtual void ChangeVIS(DWORD);
void AddSpellByID(DWORD id);
//Network events.
virtual void SendNetMessage(void *_data, DWORD _len, WORD _group, BOOL _event = 0) override;
virtual void SendNetMessage(BinaryWriter *_food, WORD _group, BOOL _event = 0, BOOL del = 1) override;
virtual void EnterPortal();
virtual void ExitPortal();
virtual void LoginCharacter();
virtual void UpdateEntity(CPhysicsObj *);
virtual BOOL IsPlayer() { return TRUE; }
virtual DWORD GetObjectStat(eObjectStat index);
virtual DWORD SetObjectStat(eObjectStat index, DWORD value);
//cmoski -- remove last assessed item
void SetLastAssessed(DWORD guid);
std::string RemoveLastAssessed();
//
void EmitSoundUI(DWORD dwIndex, float fSpeed);
CClient *GetClient() { return m_pClient; }
void SpawnCows();
void SendText(const char* szText, long lColor);
BOOL IsHuman();
DWORD m_LastAssessed;
protected:
CClient *m_pClient;
BYTE m_bStatSequence;
};