1 |
|
|
/* |
2 |
|
|
* The ManaPlus Client |
3 |
|
|
* Copyright (C) 2018-2019 The ManaPlus Developers |
4 |
|
|
* |
5 |
|
|
* This file is part of The ManaPlus Client. |
6 |
|
|
* |
7 |
|
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
|
* it under the terms of the GNU General Public License as published by |
9 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
10 |
|
|
* any later version. |
11 |
|
|
* |
12 |
|
|
* This program is distributed in the hope that it will be useful, |
13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
|
* GNU General Public License for more details. |
16 |
|
|
* |
17 |
|
|
* You should have received a copy of the GNU General Public License |
18 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#ifndef BEING_LOCALCLAN_H |
22 |
|
|
#define BEING_LOCALCLAN_H |
23 |
|
|
|
24 |
|
|
#include "utils/vector.h" |
25 |
|
|
|
26 |
|
|
#include <string> |
27 |
|
|
|
28 |
|
|
#include "localconsts.h" |
29 |
|
|
|
30 |
|
4 |
struct LocalClan final |
31 |
|
|
{ |
32 |
|
1 |
LocalClan() : |
33 |
|
|
allyClans(), |
34 |
|
|
antagonistClans(), |
35 |
|
|
name(), |
36 |
|
|
masterName(), |
37 |
|
|
mapName(), |
38 |
|
|
stats(), |
39 |
|
|
id(0), |
40 |
|
|
onlineMembers(0), |
41 |
|
7 |
totalMembers(0) |
42 |
|
|
{ |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
A_DELETE_COPY(LocalClan) |
46 |
|
|
|
47 |
|
|
void clear() |
48 |
|
|
{ |
49 |
|
|
allyClans.clear(); |
50 |
|
|
antagonistClans.clear(); |
51 |
|
|
name.clear(); |
52 |
|
|
masterName.clear(); |
53 |
|
|
mapName.clear(); |
54 |
|
|
stats.clear(); |
55 |
|
|
id = 0; |
56 |
|
|
onlineMembers = 0; |
57 |
|
|
totalMembers = 0; |
58 |
|
|
} |
59 |
|
|
|
60 |
|
|
STD_VECTOR<std::string> allyClans; |
61 |
|
|
STD_VECTOR<std::string> antagonistClans; |
62 |
|
|
std::string name; |
63 |
|
|
std::string masterName; |
64 |
|
|
std::string mapName; |
65 |
|
|
STD_VECTOR<std::string> stats; |
66 |
|
|
int id; |
67 |
|
|
int onlineMembers; |
68 |
|
|
int totalMembers; |
69 |
|
|
}; |
70 |
|
|
|
71 |
|
|
extern LocalClan localClan; |
72 |
|
|
|
73 |
|
|
#endif // BEING_LOCALCLAN_H |