summaryrefslogtreecommitdiff
path: root/src/party.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-24 06:50:35 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-24 07:55:20 -0700
commitf6d50d0cbe12f8799e6fec844816defc8711df37 (patch)
tree344f28132bd3aa54ce058e92b4696d00f3a7bc0c /src/party.h
parent3adb0710b9b0262b7d7a03aa687e78c232f04d06 (diff)
downloadmana-client-f6d50d0cbe12f8799e6fec844816defc8711df37.tar.gz
mana-client-f6d50d0cbe12f8799e6fec844816defc8711df37.tar.bz2
mana-client-f6d50d0cbe12f8799e6fec844816defc8711df37.tar.xz
mana-client-f6d50d0cbe12f8799e6fec844816defc8711df37.zip
Add more to eAthena guild support
It's not complete yet, but it is closer. Also fix up handling of guild/party members. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/party.h')
-rw-r--r--src/party.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/party.h b/src/party.h
index e109d7b6..e723cf37 100644
--- a/src/party.h
+++ b/src/party.h
@@ -34,12 +34,6 @@ class Party;
class PartyMember : public Avatar
{
public:
- PartyMember(int partyId, int id, const std::string &name);
-
- PartyMember(int partyId, int id);
-
- PartyMember(int partyId, const std::string &name);
-
int getID() const { return mId; }
void setID(int id) { mId = id; }
@@ -53,6 +47,12 @@ public:
protected:
friend class Party;
+ PartyMember(Party *party, int id, const std::string &name);
+
+ PartyMember(Party *party, int id);
+
+ PartyMember(Party *party, const std::string &name);
+
int mId;
Party *mParty;
bool mLeader;
@@ -73,7 +73,17 @@ public:
/**
* Adds member to the list.
*/
- void addMember(PartyMember *member);
+ PartyMember *addMember(int id, const std::string &name);
+
+ /**
+ * Adds member to the list.
+ */
+ PartyMember *addMember(int id);
+
+ /**
+ * Adds member to the list.
+ */
+ PartyMember *addMember(const std::string &name);
/**
* Find a member by ID.