FF7Character.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include "FF7Character.h"
  16. Character::Character(){}
  17. Character::~Character(){}
  18. Character::CharacterIdLookupMap Character::CreateLookupMap(){
  19. CharacterIdLookupMap lookup;
  20. lookup["Cloud"] = CLOUD;
  21. lookup["cloud"] = CLOUD;
  22. lookup["CLOUD"] = CLOUD;
  23. lookup["AAAA"] = CLOUD;
  24. lookup["n_cloud"] = CLOUD;
  25. lookup["Tifa"] = TIFA;
  26. lookup["tifa"] = TIFA;
  27. lookup["TIFA"] = TIFA;
  28. lookup["AAGB"] = TIFA;
  29. lookup["n_tifa"] = TIFA;
  30. lookup["Aeris"] = AERIS;
  31. lookup["AERIS"] = AERIS;
  32. lookup["aerit"] = AERIS;
  33. lookup["AUFF"] = AERIS;
  34. lookup["CAHC"] = AERIS;
  35. lookup["n_erith"] = AERIS;
  36. lookup["earithf"] = AERIS;
  37. lookup["Barret"] = BARRET;
  38. lookup["barret"] = BARRET;
  39. lookup["BARRET"] = BARRET;
  40. lookup["ACGD"] = BARRET;
  41. lookup["ballet"] = BARRET;
  42. lookup["Red"] = RED;
  43. lookup["red"] = RED;
  44. lookup["RED"] = RED;
  45. lookup["Red XIII"] = RED;
  46. lookup["RedXIII"] = RED;
  47. lookup["ADDA"] = RED;
  48. lookup["red"] = RED;
  49. lookup["Cid"] = CID;
  50. lookup["CID"] = CID;
  51. lookup["cid"] = CID;
  52. lookup["ABDA"] = CID;
  53. lookup["AEHD"] = VINCENT;
  54. lookup["Vincent"] = VINCENT;
  55. lookup["VINCENT"] = VINCENT;
  56. lookup["vincent"] = VINCENT;
  57. lookup["Yuffie"] = YUVI;
  58. lookup["yuffie"] = YUVI;
  59. lookup["YUFFIE"] = YUVI;
  60. lookup["ABJB"] = YUVI;
  61. lookup["yufi"] = YUVI;
  62. lookup["Cait Sith"] = KETCY;
  63. lookup["Cait sith"] = KETCY;
  64. lookup["CAIT SITH"] = KETCY;
  65. lookup["CaitSith"] = KETCY;
  66. lookup["Caitsith"] = KETCY;
  67. lookup["CAITSITH"] = KETCY;
  68. lookup["AEBC"] = KETCY;
  69. lookup["ketcy"] = KETCY;
  70. return lookup;
  71. }
  72. const Character::CharacterIdLookupMap Character::character_id_lookup_(Character::CreateLookupMap());
  73. Character::CharacterId Character::GetIdByName(const VGears::String& name){
  74. CharacterIdLookupMap::const_iterator entry;
  75. entry = character_id_lookup_.find(name);
  76. if (entry != character_id_lookup_.end()) return entry->second;
  77. return UNKNOWN;
  78. }