forked from tanglewoodforest/src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.h
More file actions
73 lines (52 loc) · 1.46 KB
/
account.h
File metadata and controls
73 lines (52 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef twf_account_h
#define twf_account_h
/*
* ACCOUNT CLASS
*/
class account_data
{
public:
account_data* next;
const char *name;
const char *email;
const char *pwd;
const char *confirm;
const char *new_email;
const char *notes;
const char *timezone;
int last_login;
int balance;
int banned;
int no_players;
account_data( );
~account_data( );
bool Seen( char_data* ) const;
friend const char *name( account_data* account ) {
return account->name;
}
};
extern int max_account;
extern account_data** account_list;
/*
* BAN ROUTINES
*/
void load_badname ( );
void save_badname ( );
void load_banned ( );
void save_banned ( );
void load_remort ( );
void save_remort ( );
extern const char** badname_array;
extern int max_badname;
extern const char** remort_array;
extern int max_remort;
/*
* GLOBAL ROUTINES
*/
void load_accounts ();
void save_accounts ();
void display_account ( char_data*, account_data*, bool& );
void extract ( account_data* );
account_data* find_account ( const char *, bool = false );
account_data* account_arg ( const char *& );
#endif // twf_account_h