From 66e3fa7041e3162e24632552bb1357bb69724c93 Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Wed, 20 Apr 2005 02:23:23 +0000 Subject: Updated account specification. --- src/account.h | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'src/account.h') diff --git a/src/account.h b/src/account.h index 5946791a..a57f8c78 100644 --- a/src/account.h +++ b/src/account.h @@ -21,6 +21,9 @@ * $Id$ */ +#ifndef ACCOUNT_H +#define ACCOUNT_H + #include #include "object.h" @@ -29,21 +32,28 @@ //Account definition class Account { - //Account name + //Account name (username) std::string name; //Account password (MD5 hash) std::string password; - - //Filename of this account - std::string filename; + //Account email adress + std::string email; //Player data Player player[ACC_MAX_CHARS]; public: - ~Account() { save(); } - //Load account from file - void load(const std::string&); - //Save account - void save(); + Account(); + ~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(); }; + +#endif -- cgit v1.2.3-60-g2f50