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