-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathZBirdDummyAI.h
63 lines (49 loc) · 1.16 KB
/
ZBirdDummyAI.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
#ifndef _ZBIRDDUMMYAI_H
#define _ZBIRDDUMMYAI_H
#include "muid.h"
class ZBirdDummyClient;
class MCommand;
class ZBirdDummyAI
{
private:
protected:
ZBirdDummyClient* m_pClient;
int m_nKillCount;
unsigned long int m_nKillLastTime;
bool m_bInCombat;
int m_nID;
char m_szUserID[256];
bool m_bCreated;
enum _LobbyType { ZBDAI_MASTER = 0, ZBDAI_GUEST };
enum _MasterType { ZBDAI_STARTALONE = 0, ZBDAI_WAIT };
enum _GuestType { ZBDAI_READY = 0, ZBDAI_FORCEDENTRY };
_LobbyType m_nLobbyType;
_MasterType m_nMasterType;
_GuestType m_nGuestType;
unsigned long int m_nLastCommandTime;
virtual void OnRun() {}
public:
ZBirdDummyAI();
virtual ~ZBirdDummyAI();
void Create(ZBirdDummyClient* pClient);
virtual void OnCommand(MCommand* pCmd);
void Run();
};
class ZBirdDummyAIMakeRoomFlood : public ZBirdDummyAI
{
public:
virtual void OnRun();
virtual void OnCommand(MCommand* pCmd);
};
class ZBirdDummyAIJoinFlood : public ZBirdDummyAI
{
public:
ZBirdDummyAIJoinFlood();
MUID m_uidWantedRoom;
unsigned long m_nReservedTime;
bool m_bReserved;
char m_szLastStage[256];
virtual void OnCommand(MCommand* pCmd);
virtual void OnRun();
};
#endif