9
3

races.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. EQ2Emulator: Everquest II Server Emulator
  3. Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
  4. This file is part of EQ2Emulator.
  5. EQ2Emulator is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. EQ2Emulator 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 General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with EQ2Emulator. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef RACES_H
  17. #define RACES_H
  18. #include "../common/types.h"
  19. #include <map>
  20. using namespace std;
  21. #define BARBARIAN 0
  22. #define DARK_ELF 1
  23. #define DWARF 2
  24. #define ERUDITE 3
  25. #define FROGLOK 4
  26. #define GNOME 5
  27. #define HALF_ELF 6
  28. #define HALFLING 7
  29. #define HIGH_ELF 8
  30. #define HUMAN 9
  31. #define IKSAR 10
  32. #define KERRA 11
  33. #define OGRE 12
  34. #define RATONGA 13
  35. #define TROLL 14
  36. #define WOOD_ELF 15
  37. #define FAE 16
  38. #define ARASAI 17
  39. #define SARNAK 18
  40. #define VAMPIRE 19
  41. #define AERAKYN 20
  42. class Races {
  43. public:
  44. Races();
  45. const char* GetRaceName(int8 race_id);
  46. const char* GetRaceNameCase(int8 race_id);
  47. int8 GetRaceNameGood();
  48. int8 GetRaceNameEvil();
  49. sint8 GetRaceID(const char* name);
  50. private:
  51. map<string, int8> race_map;
  52. map<int8, string> race_map_friendly;
  53. map<int8, string> race_map_good;
  54. map<int8, string> race_map_evil;
  55. };
  56. #endif