ManaPlus
serverfeatures.cpp
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
23 
24 #include "net/net.h"
25 
26 #include "debug.h"
27 
28 extern int serverVersion;
29 
30 namespace EAthena
31 {
32 
35 {
36  serverFeatures = this;
37 }
38 
40 {
41  return serverVersion > 0;
42 }
43 
45 {
46  return true;
47 }
48 
50 {
51  return serverVersion > 0;
52 }
53 
55 {
56  return false;
57 }
58 
60 {
61  return serverVersion > 0;
62 }
63 
65 {
66  return serverVersion > 0;
67 }
68 
70 {
71  return serverVersion > 0;
72 }
73 
75 {
76  return false;
77 }
78 
80 {
81  return serverVersion > 0;
82 }
83 
85 {
86  return serverVersion > 0;
87 }
88 
90 {
92 }
93 
95 {
96  return serverVersion > 0;
97 }
98 
100 {
101  return serverVersion > 0;
102 }
103 
105 {
106  return serverVersion > 0;
107 }
108 
110 {
111  return serverVersion > 0;
112 }
113 
115 {
116  return serverVersion > 0;
117 }
118 
120 {
121  return serverVersion > 0;
122 }
123 
125 {
126  return serverVersion == 0;
127 }
128 
130 {
131  return serverVersion > 0;
132 }
133 
135 {
136  return serverVersion > 0;
137 }
138 
140 {
141  return serverVersion > 0;
142 }
143 
145 {
146  return serverVersion > 0;
147 }
148 
150 {
151  return true;
152 }
153 
154 } // namespace EAthena
bool haveServerVersion() const
bool haveEmailOnDelete() const
bool haveServerWarpNames() const
bool haveCreateCharGender() const
bool haveLookSelection() const
bool haveMapServerVersion() const
bool haveEmailOnRegister() const
bool haveServerOnlineList() const
bool havePlayerStatusUpdate() const
bool haveServerHp() const A_CONST
bool haveRaceSelection() const
bool haveExtendedDropsPosition() const
bool haveMonsterAttackRange() const A_CONST
bool haveIncompleteChatMessages() const A_CONST
int serverVersion
Definition: client.cpp:124
ServerTypeT getNetworkType()
Definition: net.cpp:189
Net::ServerFeatures * serverFeatures
Definition: net.cpp:101