Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / common / src / game_share / scores.h
blob1cde63af12f268ff41238983662282d791af5d5e
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/>.
19 #ifndef RY_SCORES_H
20 #define RY_SCORES_H
22 #include "nel/misc/types_nl.h"
24 #include <string>
26 namespace SCORES
28 enum TScores
30 hit_points = 0,
31 stamina,
32 sap,
33 focus,
35 NUM_SCORES,
36 unknown = NUM_SCORES
39 /**
40 * get the right score enum from the input string
41 * \param str the input string
42 * \return the TScores associated to this string (Unknown if the string cannot be interpreted)
44 TScores toScore( const std::string &str );
46 /**
47 * get the right score string from the gived enum
48 * \param s is the enum number
49 * \return the string associated to this enum number (Unknown if the enum number not exist)
51 const std::string& toString( TScores s );
52 const std::string& toString( uint s );
54 }; // SCORES
56 #endif // RY_SCORES_H
57 /* End of scores.h */