diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
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(); |