mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-16 22:38:42 +00:00
286 lines
3.9 KiB
C++
286 lines
3.9 KiB
C++
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#ifndef RY_SKILLS_H
|
|
#define RY_SKILLS_H
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
|
|
#include <string.h>
|
|
|
|
// NbSkills in enum : 225 Report this in database.xls
|
|
// BRIANCODE - adding an "any" enum AFTER NUM_SKILLS so I can check if "any" skill is level X or higher (for example)
|
|
|
|
namespace SKILLS
|
|
{
|
|
enum ESkills
|
|
{
|
|
SC = 0,
|
|
SCA,
|
|
SCAH,
|
|
SCAHB,
|
|
SCAHBE,
|
|
SCAHBEM,
|
|
SCAHG,
|
|
SCAHGE,
|
|
SCAHGEM,
|
|
SCAHH,
|
|
SCAHHE,
|
|
SCAHHEM,
|
|
SCAHP,
|
|
SCAHPE,
|
|
SCAHPEM,
|
|
SCAHS,
|
|
SCAHSE,
|
|
SCAHSEM,
|
|
SCAHV,
|
|
SCAHVE,
|
|
SCAHVEM,
|
|
SCAL,
|
|
SCALB,
|
|
SCALBE,
|
|
SCALBEM,
|
|
SCALG,
|
|
SCALGE,
|
|
SCALGEM,
|
|
SCALP,
|
|
SCALPE,
|
|
SCALPEM,
|
|
SCALS,
|
|
SCALSE,
|
|
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|
SMDAAEM,
|
|
SMDH,
|
|
SMDHA,
|
|
SMDHAE,
|
|
SMDHAEM,
|
|
SMO,
|
|
SMOA,
|
|
SMOAA,
|
|
SMOAAE,
|
|
SMOAAEM,
|
|
SMOE,
|
|
SMOEA,
|
|
SMOEAE,
|
|
SMOEAEM,
|
|
|
|
NUM_SKILLS,
|
|
unknown,
|
|
any,
|
|
};
|
|
|
|
/**
|
|
* get the right skill enum from the input string
|
|
* \param str the input string
|
|
* \return the ESkills associated to this string (Unknown if the string cannot be interpreted)
|
|
*/
|
|
ESkills toSkill ( const std::string &str );
|
|
|
|
/**
|
|
* get the right skill string from the gived enum
|
|
* \param skill the skill to convert
|
|
* \return the string associated to this enum number (Unknown if the enum number not exist)
|
|
*/
|
|
const std::string& toString( uint16 skill );
|
|
|
|
/**
|
|
* get the skill category name
|
|
* \param s is the enum number
|
|
* \return the string name of skill type (Unknown if the enum number not exist)
|
|
*/
|
|
const std::string& getSkillCategoryName( uint16 s );
|
|
|
|
}; // SKILLS
|
|
|
|
#endif // RY_SKILLS_H
|
|
/* End of skills.h */
|