Preparing game invitation.
This commit is contained in:
@@ -104,6 +104,12 @@ enum EndPetitionReason
|
||||
PETITION_END_TIMEOUT
|
||||
};
|
||||
|
||||
enum DenyGameInvitationReason
|
||||
{
|
||||
DENY_GAME_INVITATION_NO = 0,
|
||||
DENY_GAME_INVITATION_BUSY
|
||||
};
|
||||
|
||||
enum Button {
|
||||
BUTTON_NONE = 0,
|
||||
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 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
|
||||
|
||||
+5
-1
@@ -85,7 +85,11 @@ public:
|
||||
void voteKick(bool doKick);
|
||||
void selectServer(unsigned serverId);
|
||||
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();
|
||||
|
||||
bool isNetworkClientRunning() const; // TODO hack
|
||||
|
||||
Reference in New Issue
Block a user