summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-22 15:19:03 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-22 15:19:03 +0000
commitee6cd05382e4933bac8a6d6c007f112ac37a9f36 (patch)
tree2610454f1be16dc9a5e5531d68c3deab2503705f /src/localplayer.cpp
parentb8b4a6346a5fe4a8e1719fc476ab6c6f714446a6 (diff)
downloadmana-client-ee6cd05382e4933bac8a6d6c007f112ac37a9f36.tar.gz
mana-client-ee6cd05382e4933bac8a6d6c007f112ac37a9f36.tar.bz2
mana-client-ee6cd05382e4933bac8a6d6c007f112ac37a9f36.tar.xz
mana-client-ee6cd05382e4933bac8a6d6c007f112ac37a9f36.zip
Added more support for parties
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 6f03a46d..1e61e59d 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -36,6 +36,7 @@
#include "net/gameserver/player.h"
#include "net/chatserver/guild.h"
+#include "net/chatserver/party.h"
#include "gui/gui.h"
@@ -132,7 +133,7 @@ bool LocalPlayer::checkInviteRights(const std::string &guildName)
return false;
}
-void LocalPlayer::invite(Being *being)
+void LocalPlayer::inviteToGuild(Being *being)
{
// TODO: Allow user to choose which guild to invite being to
// For now, just invite to the first guild you have permissions to invite with
@@ -148,6 +149,11 @@ void LocalPlayer::invite(Being *being)
}
}
+void LocalPlayer::inviteToParty(Being *being)
+{
+ Net::ChatServer::Party::invitePlayer(being->getName());
+}
+
void LocalPlayer::clearInventory()
{
mEquipment->clear();