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 "debug.h"
25 
26 extern unsigned int tmwServerVersion;
27 
28 namespace TmwAthena
29 {
30 
33 {
34  serverFeatures = this;
35 }
36 
38 {
39  return tmwServerVersion >= 0x120b0b;
40 }
41 
43 {
44  return tmwServerVersion > 0x0f0513;
45 }
46 
48 {
49  return false;
50 }
51 
53 {
54  return tmwServerVersion <= 0x100209;
55 }
56 
58 {
59  return false;
60 }
61 
63 {
64  return false;
65 }
66 
68 {
69  return tmwServerVersion >= 0x0f0512 && tmwServerVersion <= 0xf0706;
70 }
71 
73 {
74  return tmwServerVersion >= 0x0f0513;
75 }
76 
78 {
79  return false;
80 }
81 
83 {
84  return false;
85 }
86 
88 {
89  return true;
90 }
91 
93 {
94  return false;
95 }
96 
98 {
99  return tmwServerVersion >= 0x0f0513;
100 }
101 
103 {
104  return false;
105 }
106 
108 {
109  return tmwServerVersion > 0x0f0b17;
110 }
111 
113 {
114  return true;
115 }
116 
118 {
119  return true;
120 }
121 
123 {
124  return false;
125 }
126 
128 {
129  return false;
130 }
131 
133 {
134  return false;
135 }
136 
138 {
139  return true;
140 }
141 
143 {
144  return false;
145 }
146 
148 {
149  return false;
150 }
151 
152 } // namespace TmwAthena
bool haveServerOnlineList() const A_CONST
bool haveEmailOnDelete() const A_CONST
bool haveJoinChannel() const A_CONST
bool haveMonsterAttackRange() const
bool haveServerVersion() const A_CONST
bool haveLookSelection() const A_CONST
bool haveMapServerVersion() const A_CONST
bool haveExtendedDropsPosition() const A_CONST
bool haveMoveWhileSit() const A_CONST
bool haveServerWarpNames() const A_CONST
bool haveKillerId() const A_CONST
bool havePincode() const A_CONST
bool haveRaceSelection() const A_CONST
bool haveIncompleteChatMessages() const
bool havePlayerStatusUpdate() const A_CONST
bool haveExtendedRiding() const A_CONST
bool haveEmailOnRegister() const A_CONST
bool haveMovePet() const A_CONST
bool haveTalkPet() const A_CONST
Net::ServerFeatures * serverFeatures
Definition: net.cpp:101
unsigned int tmwServerVersion
Definition: client.cpp:134