summaryrefslogtreecommitdiff
path: root/src/net/ea/partyhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-07 21:16:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-07 21:23:27 -0600
commit73c773adfb8b65e1305242ab55607882a46e71c3 (patch)
tree5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/net/ea/partyhandler.cpp
parentaefbc69aac9f7c793725153eefce2631555bfd1f (diff)
downloadmana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r--src/net/ea/partyhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 863765d5..f76bd7d8 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -219,10 +219,10 @@ void PartyHandler::join(int partyId)
{
}
-void PartyHandler::invite(int playerId)
+void PartyHandler::invite(Player *player)
{
MessageOut outMsg(CMSG_PARTY_INVITE);
- outMsg.writeInt32(playerId);
+ outMsg.writeInt32(player->getId());
}
void PartyHandler::invite(const std::string &name)
@@ -230,7 +230,7 @@ void PartyHandler::invite(const std::string &name)
// TODO
}
-void PartyHandler::inviteResponse(bool accept)
+void PartyHandler::inviteResponse(const std::string &inviter, bool accept)
{
MessageOut outMsg(CMSG_PARTY_INVITED);
outMsg.writeInt32(player_node->getId());