From 9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 12 Jun 2005 12:32:14 +0000 Subject: Some cleanups mostly in account class formatting. --- src/account.h | 51 ++++++++++++++++++++++++--------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) (limited to 'src/account.h') 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 +#include +#include #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 &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 beings; /**< Player data */ }; #endif -- cgit v1.2.3-60-g2f50