summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-08 14:40:04 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-08 14:43:51 -0700
commit8a31e96d8534d402db9cd48183c0b15732f7d95e (patch)
tree885d83febf301c1289c3bf7f83bf9dca89e0347c /src/player.h
parentbc5c031e43eff506c925682349dd2a52b89d6565 (diff)
downloadmana-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.gz
mana-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.bz2
mana-8a31e96d8534d402db9cd48183c0b15732f7d95e.tar.xz
mana-8a31e96d8534d402db9cd48183c0b15732f7d95e.zip
Merge PartyWindow and GuildWindow into SocialWindow
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/player.h b/src/player.h
index 2d46b4de..6e2566b8 100644
--- a/src/player.h
+++ b/src/player.h
@@ -25,8 +25,9 @@
#include "being.h"
class Graphics;
-class Map;
class Guild;
+class Map;
+class Party;
enum Gender
{
@@ -86,7 +87,7 @@ class Player : public Being
/**
* Adds a guild to the player.
*/
- Guild *addGuild(short guildId, short rights);
+ void addGuild(Guild *guild);
/**
* Removers a guild from the player.
@@ -106,16 +107,13 @@ class Player : public Being
/**
* Get number of guilds the player belongs to.
*/
- short getNumberOfGuilds();
+ short getNumberOfGuilds() const { return mGuilds.size(); }
- /**
- * Set whether the player in the LocalPlayer's party. Players that are
- * in the same party as the local player get their name displayed in
- * a different color.
- */
- void setInParty(bool inParty);
+ bool isInParty() const { return mParty != NULL; }
+
+ void setParty(Party *party);
- bool isInParty() const { return mInParty; }
+ Party *getParty() const { return mParty; }
/**
* Gets the way the character is blocked by other objects.
@@ -143,11 +141,9 @@ class Player : public Being
// Character guild information
std::map<int, Guild*> mGuilds;
+ Party *mParty;
bool mIsGM;
-
- private:
- bool mInParty;
};
#endif