GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/tmwa/serverfeatures.cpp Lines: 0 49 0.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2011-2017  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
#include "net/tmwa/serverfeatures.h"
22
23
#include "debug.h"
24
25
extern unsigned int tmwServerVersion;
26
27
namespace TmwAthena
28
{
29
30
ServerFeatures::ServerFeatures() :
31
    Net::ServerFeatures()
32
{
33
    serverFeatures = this;
34
}
35
36
bool ServerFeatures::haveServerOnlineList() const
37
{
38
    return false;
39
}
40
41
bool ServerFeatures::haveServerHp() const
42
{
43
    return tmwServerVersion > 0x0f0513;
44
}
45
46
bool ServerFeatures::havePlayerStatusUpdate() const
47
{
48
    return false;
49
}
50
51
bool ServerFeatures::haveIncompleteChatMessages() const
52
{
53
    return tmwServerVersion <= 0x100209;
54
}
55
56
bool ServerFeatures::haveRaceSelection() const
57
{
58
    return false;
59
}
60
61
bool ServerFeatures::haveLookSelection() const
62
{
63
    return false;
64
}
65
66
bool ServerFeatures::haveMove3() const
67
{
68
    return tmwServerVersion >= 0x0f0512 && tmwServerVersion <= 0xf0706;
69
}
70
71
bool ServerFeatures::haveCharOtherGender() const
72
{
73
    return tmwServerVersion > 0x0f0b17;
74
}
75
76
bool ServerFeatures::haveMonsterAttackRange() const
77
{
78
    return tmwServerVersion >= 0x0f0513;
79
}
80
81
bool ServerFeatures::haveEmailOnRegister() const
82
{
83
    return false;
84
}
85
86
bool ServerFeatures::haveEmailOnDelete() const
87
{
88
    return false;
89
}
90
91
bool ServerFeatures::haveServerVersion() const
92
{
93
    return true;
94
}
95
96
bool ServerFeatures::haveMapServerVersion() const
97
{
98
    return false;
99
}
100
101
bool ServerFeatures::haveNpcGender() const
102
{
103
    return tmwServerVersion >= 0x0f0513;
104
}
105
106
bool ServerFeatures::haveJoinChannel() const
107
{
108
    return false;
109
}
110
111
bool ServerFeatures::haveCreateCharGender() const
112
{
113
    return tmwServerVersion > 0x0f0b17;
114
}
115
116
bool ServerFeatures::haveTalkPet() const
117
{
118
    return true;
119
}
120
121
bool ServerFeatures::haveMovePet() const
122
{
123
    return true;
124
}
125
126
bool ServerFeatures::haveServerWarpNames() const
127
{
128
    return false;
129
}
130
131
bool ServerFeatures::haveExtendedRiding() const
132
{
133
    return false;
134
}
135
136
bool ServerFeatures::haveExtendedDropsPosition() const
137
{
138
    return false;
139
}
140
141
bool ServerFeatures::haveMoveWhileSit() const
142
{
143
    return true;
144
}
145
146
bool ServerFeatures::haveKillerId() const
147
{
148
    return false;
149
}
150
151
}  // namespace TmwAthena