Preparing game invitation.
This commit is contained in:
@@ -104,6 +104,12 @@ enum EndPetitionReason
|
|||||||
PETITION_END_TIMEOUT
|
PETITION_END_TIMEOUT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum DenyGameInvitationReason
|
||||||
|
{
|
||||||
|
DENY_GAME_INVITATION_NO = 0,
|
||||||
|
DENY_GAME_INVITATION_BUSY
|
||||||
|
};
|
||||||
|
|
||||||
enum Button {
|
enum Button {
|
||||||
BUTTON_NONE = 0,
|
BUTTON_NONE = 0,
|
||||||
BUTTON_DEALER,
|
BUTTON_DEALER,
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ public:
|
|||||||
virtual void SignalLobbyPlayerKicked(const std::string &nickName, const std::string &byWhom, const std::string &reason) = 0;
|
virtual void SignalLobbyPlayerKicked(const std::string &nickName, const std::string &byWhom, const std::string &reason) = 0;
|
||||||
virtual void SignalLobbyPlayerLeft(unsigned playerId) = 0;
|
virtual void SignalLobbyPlayerLeft(unsigned playerId) = 0;
|
||||||
|
|
||||||
|
virtual void SignalSelfGameInvitation(unsigned gameId, unsigned playerIdFrom) = 0;
|
||||||
|
virtual void SignalPlayerGameInvitation(unsigned gameId, unsigned playerIdWho, unsigned playerIdFrom) = 0;
|
||||||
|
virtual void SignalRejectedGameInvitation(unsigned gameId, unsigned playerIdWho, DenyGameInvitationReason reason) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -86,6 +86,10 @@ public:
|
|||||||
void selectServer(unsigned serverId);
|
void selectServer(unsigned serverId);
|
||||||
void setLogin(const std::string &userName, const std::string &password, bool isGuest);
|
void setLogin(const std::string &userName, const std::string &password, bool isGuest);
|
||||||
|
|
||||||
|
void invitePlayerToCurrentGame(unsigned playerId);
|
||||||
|
void acceptGameInvitation(unsigned gameId);
|
||||||
|
void rejectGameInvitation(unsigned gameId, DenyGameInvitationReason reason);
|
||||||
|
|
||||||
void resetNetworkTimeout();
|
void resetNetworkTimeout();
|
||||||
|
|
||||||
bool isNetworkClientRunning() const; // TODO hack
|
bool isNetworkClientRunning() const; // TODO hack
|
||||||
|
|||||||
Reference in New Issue
Block a user