GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/serverfeatures.h Lines: 1 1 100.0 %
Date: 2021-03-17 Branches: 0 0 0.0 %

Line Branch Exec Source
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
22
#ifndef NET_SERVERFEATURES_H
23
#define NET_SERVERFEATURES_H
24
25
#include "localconsts.h"
26
27
namespace Net
28
{
29
class ServerFeatures notfinal
30
{
31
    public:
32
        ServerFeatures()
33
77
        { }
34
35
        A_DELETE_COPY(ServerFeatures)
36
37
        virtual ~ServerFeatures()
38
        { }
39
40
        virtual bool haveServerOnlineList() const = 0;
41
42
        virtual bool haveServerHp() const = 0;
43
44
        virtual bool havePlayerStatusUpdate() const = 0;
45
46
        virtual bool haveIncompleteChatMessages() const = 0;
47
48
        virtual bool haveRaceSelection() const = 0;
49
50
        virtual bool haveLookSelection() const = 0;
51
52
        virtual bool haveMove3() const = 0;
53
54
        virtual bool haveMonsterAttackRange() const = 0;
55
56
        virtual bool haveEmailOnRegister() const = 0;
57
58
        virtual bool haveEmailOnDelete() const = 0;
59
60
        virtual bool haveServerVersion() const = 0;
61
62
        virtual bool haveMapServerVersion() const = 0;
63
64
        virtual bool haveNpcGender() const = 0;
65
66
        virtual bool haveJoinChannel() const = 0;
67
68
        virtual bool haveCreateCharGender() const = 0;
69
70
        virtual bool haveTalkPet() const = 0;
71
72
        virtual bool haveMovePet() const = 0;
73
74
        virtual bool haveServerWarpNames() const = 0;
75
76
        virtual bool haveExtendedRiding() const = 0;
77
78
        virtual bool haveExtendedDropsPosition() const = 0;
79
80
        virtual bool haveMoveWhileSit() const = 0;
81
82
        virtual bool haveKillerId() const = 0;
83
84
        virtual bool havePincode() const = 0;
85
};
86
87
}  // namespace Net
88
89
extern Net::ServerFeatures *serverFeatures;
90
91
#endif  // NET_SERVERFEATURES_H