forked from H-uru/MoulKI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtGameClient.h
42 lines (34 loc) · 1.08 KB
/
qtGameClient.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
#ifndef QTGAMECLIENT_H
#define QTGAMECLIENT_H
#include <QObject>
#include <game/pnGameClient.h>
class qtVaultNode;
class MoulKI;
class qtGameClient : public QObject, public pnGameClient
{
Q_OBJECT
private:
uint32_t fMcpId;
hsTArray<unsigned int> fAgePlayers;
qtVaultNode* fPlayerNode;
qtVaultNode* fAgeInfoNode;
public:
qtGameClient(MoulKI* ki = 0);
~qtGameClient();
void setPlayer(qtVaultNode* player);
void setAgeInfo(qtVaultNode* ageInfo);
void joinAge(uint32_t serverAddr, uint32_t mcpId);
void onPropagateMessage(plCreatable *msg);
void onJoinAgeReply(uint32_t transId, ENetError result);
public slots:
void sendAgeChat(plString message);
void sendBroadcast(plString message, QList<uint32_t> targets, int type);
void sendPrivate(plString message, uint32_t target);
signals:
void receivedGameMsg(QString);
void setMeOnline(uint32_t player, plString ageFilename, plUuid ageUuid);
void addAgePlayer(uint32_t, plString);
void removeAgePlayer(uint32_t, plString);
void clearAgeList();
};
#endif // QTGAMECLIENT_H