Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / common / src / game_share / pvp_mode.h
blob7960e203370164516c4e0cd354a95c8d6286136d
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef RY_PVP_MODE_H
18 #define RY_PVP_MODE_H
20 #include <string>
22 namespace PVP_MODE
24 enum TPVPMode
26 None = 0,
27 PvpDuel = 1,
28 PvpChallenge = 2,
29 PvpZoneFree = 4,
30 PvpZoneFaction = 8,
31 PvpZoneGuild = 16,
32 PvpZoneOutpost = 32,
33 PvpFaction = 64,
34 PvpFactionFlagged = 128,
35 PvpZoneSafe = 256,
36 PvpSafe = 512,
38 Unknown,
39 NbModes = Unknown,
40 NbBits = 10 // number of bits needed to store all valid values
44 TPVPMode fromString(const std::string & str);
45 const std::string & toString(TPVPMode pvpMode);
47 } // namespace PVP_MODE
49 #endif // RY_PVP_MODE_H