Making the network part compile.

This commit is contained in:
lotodore
2010-03-29 12:33:12 +00:00
parent c761d10684
commit 866e9b9e48
3 changed files with 38 additions and 0 deletions
+24
View File
@@ -432,6 +432,30 @@ Session::setLogin(const std::string &userName, const std::string &password, bool
myNetClient->SetLogin(userName, password, isGuest);
}
void
Session::invitePlayerToCurrentGame(unsigned playerId)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendInvitePlayerToCurrentGame(playerId);
}
void
Session::acceptGameInvitation(unsigned gameId)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendJoinGame(gameId, "");
}
void
Session::rejectGameInvitation(unsigned gameId, DenyGameInvitationReason reason)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendRejectGameInvitation(gameId, reason);
}
void Session::voteKick(bool doKick)
{
if (!myNetClient)