diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 12:32:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 12:32:14 +0000 |
commit | 9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432 (patch) | |
tree | 5a766717b6af2be67b1475ae2b520e1918599dc1 /src/account.h | |
parent | 7a8b2b11e989e474dceb30330852174d877b1601 (diff) | |
download | manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.gz manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.bz2 manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.xz manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.zip |
Some cleanups mostly in account class formatting.
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/src/account.h b/src/account.h index 564da11a..cedc1bcc 100644 --- a/src/account.h +++ b/src/account.h @@ -24,39 +24,36 @@ #ifndef ACCOUNT_H #define ACCOUNT_H -#include <iostream> +#include <string> +#include <vector> #include "object.h" #define ACC_MAX_CHARS 4 -//Account definition +/** + * A player account. + */ class Account { - //Account name (username) - std::string name; - //Account password (MD5 hash) - std::string password; - //Account email adress - std::string email; - - //Player data - Being player[ACC_MAX_CHARS]; - - - public: - Account() { }; - Account(const std::string &aName, const std::string aPassword, - const std::string &email, Being aPlayer[ACC_MAX_CHARS]); - ~Account(); - - void setName(const std::string&); - const std::string& getName(); - - void setPassword(const std::string&); - const std::string& getPassword(); - - void setEmail(const std::string&); - const std::string& getEmail(); + public: + Account(); + Account(const std::string &name, const std::string &password, + const std::string &email, const std::vector<Being*> &beings); + ~Account(); + + void setName(const std::string &name); + void setPassword(const std::string &password); + void setEmail(const std::string &email); + + const std::string& getEmail(); + const std::string& getPassword(); + const std::string& getName(); + + private: + std::string name; /**< Username */ + std::string password; /**< Password (md5 hash) */ + std::string email; /**< Email address */ + std::vector<Being*> beings; /**< Player data */ }; #endif |