summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-04-20 02:23:23 +0000
committerAaron Marks <nymacro@gmail.com>2005-04-20 02:23:23 +0000
commit66e3fa7041e3162e24632552bb1357bb69724c93 (patch)
tree5aa05d9d9d69208037d51b529bb69979729d499b /src/account.h
parentf0be0aade98cb0a67bb81fadf19f3c642d34a854 (diff)
downloadmanaserv-66e3fa7041e3162e24632552bb1357bb69724c93.tar.gz
manaserv-66e3fa7041e3162e24632552bb1357bb69724c93.tar.bz2
manaserv-66e3fa7041e3162e24632552bb1357bb69724c93.tar.xz
manaserv-66e3fa7041e3162e24632552bb1357bb69724c93.zip
Updated account specification.
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h28
1 files changed, 19 insertions, 9 deletions
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 <iostream>
#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