Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 17.67 KB | None | 0 0
  1. /*
  2.  
  3. Copyright (C) 2007 <SWGEmu>
  4.  
  5.  
  6.  
  7. This File is part of Core3.
  8.  
  9.  
  10.  
  11. This program is free software; you can redistribute
  12.  
  13. it and/or modify it under the terms of the GNU Lesser
  14.  
  15. General Public License as published by the Free Software
  16.  
  17. Foundation; either version 2 of the License,
  18.  
  19. or (at your option) any later version.
  20.  
  21.  
  22.  
  23. This program is distributed in the hope that it will be useful,
  24.  
  25. but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  
  27. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  28.  
  29. See the GNU Lesser General Public License for
  30.  
  31. more details.
  32.  
  33.  
  34.  
  35. You should have received a copy of the GNU Lesser General
  36.  
  37. Public License along with this program; if not, write to
  38.  
  39. the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  40.  
  41.  
  42.  
  43. Linking Engine3 statically or dynamically with other modules
  44.  
  45. is making a combined work based on Engine3.
  46.  
  47. Thus, the terms and conditions of the GNU Lesser General Public License
  48.  
  49. cover the whole combination.
  50.  
  51.  
  52.  
  53. In addition, as a special exception, the copyright holders of Engine3
  54.  
  55. give you permission to combine Engine3 program with free software
  56.  
  57. programs or libraries that are released under the GNU LGPL and with
  58.  
  59. code included in the standard release of Core3 under the GNU LGPL
  60.  
  61. license (or modified versions of such code, with unchanged license).
  62.  
  63. You may copy and distribute such a system following the terms of the
  64.  
  65. GNU LGPL for Engine3 and the licenses of the other code concerned,
  66.  
  67. provided that you include the source code of that other code when
  68.  
  69. and as the GNU LGPL requires distribution of source code.
  70.  
  71.  
  72.  
  73. Note that people who make modified versions of Engine3 are not obligated
  74.  
  75. to grant this special exception for their modified versions;
  76.  
  77. it is their choice whether to do so. The GNU Lesser General Public License
  78.  
  79. gives permission to release a modified version without this exception;
  80.  
  81. this exception also makes it possible to release a modified version
  82.  
  83. which carries forward this exception.
  84.  
  85. */
  86.  
  87.  
  88.  
  89. #ifndef RACES_H_
  90.  
  91. #define RACES_H_
  92.  
  93.  
  94.  
  95. #include "system/lang.h"
  96.  
  97.  
  98.  
  99. const static char* Species[] = {
  100.  
  101.     "human", // human male
  102.  
  103.     "trandoshan", // trandoshan male
  104.  
  105.     "twilek", // twilek male
  106.  
  107.     "bothan", // bothan male
  108.  
  109.     "zabrak", // zabrak male
  110.  
  111.     "rodian", // rodian male
  112.  
  113.     "moncal", // moncal male
  114.  
  115.     "wookiee", // wookiee male
  116.  
  117.     "sullustan", // sullustan male
  118.  
  119.     "ithorian", // ithorian male
  120.  
  121.     "nautolan", // nautolan male
  122.  
  123.     "bith", // bith male
  124.  
  125.     "aqualish", // aqualish male
  126.  
  127.     "nikto", // nikto male
  128.  
  129.     "selonian", // selonian male
  130.  
  131.     "human", // human female
  132.  
  133.     "trandoshan", // trandoshan female
  134.  
  135.     "twilek", // twilek female
  136.  
  137.     "bothan", // bothan female
  138.  
  139.     "zabrak", // zabrak female
  140.  
  141.     "rodian", // rodian female
  142.  
  143.     "moncal", // moncal female
  144.  
  145.     "wookiee", // wookiee female
  146.  
  147.     "sullustan", // sullustan female
  148.  
  149.     "ithorian",  // DA E7   -   ithorian female
  150.  
  151.     "nautolan", // nautolan female
  152.  
  153.     "bith", // bith female
  154.  
  155.     "aqualish", // aqualish female
  156.  
  157.     "nikto", // nikto female
  158.  
  159.     "selonian" // selonian female
  160.  
  161. };
  162.  
  163. const static int TemplateSpecies[] = {
  164.         0,
  165.         2,
  166.         6,
  167.         5,
  168.         7,
  169.         1,
  170.         3,
  171.         4,
  172.         0x31,
  173.         0x21,
  174.         0,
  175.         2,
  176.         6,
  177.         5,
  178.         7,
  179.         1,
  180.         3,
  181.         4,
  182.         0x31,
  183.         0x21
  184.  
  185. };
  186.  
  187. const static char* Gender[] = {
  188.  
  189.     "male", // human male
  190.  
  191.     "male", // trandoshan male
  192.  
  193.     "male", // twilek male
  194.  
  195.     "male", // bothan male
  196.  
  197.     "male", // zabrak male
  198.  
  199.     "male", // rodian male
  200.  
  201.     "male", // moncal male
  202.  
  203.     "male", // wookiee male
  204.  
  205.     "male", // sullustan male
  206.  
  207.     "male", // ithorian male
  208.  
  209.     "male", // nautolan male
  210.  
  211.     "male", // bith male
  212.  
  213.     "male", // aqualish male
  214.  
  215.     "male", // nikto male
  216.  
  217.     "male", // selonian male
  218.  
  219.     "female", // human female
  220.  
  221.     "female", // trandoshan female
  222.  
  223.     "female", // twilek female
  224.  
  225.     "female", // bothan female
  226.  
  227.     "female", // zabrak female
  228.  
  229.     "female", // rodian female
  230.  
  231.     "female", // moncal female
  232.  
  233.     "female", // wookiee female
  234.  
  235.     "female", // sullustan female
  236.  
  237.     "female", // DA E7   -   ithorian female
  238.  
  239.     "female", // nautolan female
  240.  
  241.     "male", // bith female
  242.  
  243.     "male", // aqualish female
  244.  
  245.     "male", // nikto female
  246.  
  247.     "male" // selonian female
  248.  
  249. };
  250.  
  251.  
  252.  
  253. const static char* RaceStrs[] = {
  254.  
  255.     "object/creature/player/shared_human_male.iff", // human male
  256.  
  257.     "object/creature/player/shared_trandoshan_male.iff", // trandoshan male
  258.  
  259.     "object/creature/player/shared_twilek_male.iff", // twilek male
  260.  
  261.     "object/creature/player/shared_bothan_male.iff", // bothan male
  262.  
  263.     "object/creature/player/shared_zabrak_male.iff", // zabrak male
  264.  
  265.     "object/creature/player/shared_rodian_male.iff", // rodian male
  266.  
  267.     "object/creature/player/shared_moncal_male.iff", // moncal male
  268.  
  269.     "object/creature/player/shared_wookiee_male.iff", // wookiee male
  270.  
  271.     "object/creature/player/shared_sullustan_male.iff", // sullustan male
  272.  
  273.     "object/creature/player/shared_ithorian_male.iff", // ithorian male
  274.  
  275.     "object/mobile/shared_nautolan.iff", // nautolan male
  276.  
  277.     "object/mobile/shared_bith_male.iff", // bith male
  278.  
  279.     "object/mobile/shared_aqualish_male.iff", // aqualish male
  280.  
  281.     "object/mobile/shared_nikto_male.iff", // nikto male
  282.  
  283.     "object/mobile/shared_selonian_male.iff", // selonian male
  284.  
  285.     "object/creature/player/shared_human_female.iff", // human female
  286.  
  287.     "object/creature/player/shared_trandoshan_female.iff", // trandoshan female
  288.  
  289.     "object/creature/player/shared_twilek_female.iff", // twilek female
  290.  
  291.     "object/creature/player/shared_bothan_female.iff", // bothan female
  292.  
  293.     "object/creature/player/shared_zabrak_female.iff", // zabrak female
  294.  
  295.     "object/creature/player/shared_rodian_female.iff", // rodian female
  296.  
  297.     "object/creature/player/shared_moncal_female.iff", // moncal female
  298.  
  299.     "object/creature/player/shared_wookiee_female.iff", // wookiee female
  300.  
  301.     "object/creature/player/shared_sullustan_female.iff", // sullustan female
  302.  
  303.     "object/creature/player/shared_ithorian_female.iff",  // DA E7   -   ithorian female
  304.  
  305.     "object/mobile/shared_nautolan.iff", // nautolan female
  306.  
  307.     "object/mobile/shared_bith_female.iff", // bith female
  308.  
  309.     "object/mobile/shared_aqualish_female.iff", // aqualish female
  310.  
  311.     "object/mobile/shared_nikto_male.iff", // nikto female
  312.  
  313.     "object/mobile/shared_selonian_female.iff", // selonian female
  314.  
  315. };
  316.  
  317.  
  318.  
  319. const static char* CCRaceStrs[] = {
  320.  
  321.     "object/creature/player/human_male.iff", // human male
  322.  
  323.     "object/creature/player/trandoshan_male.iff", // trandoshan male
  324.  
  325.     "object/creature/player/twilek_male.iff", // twilek male
  326.  
  327.     "object/creature/player/bothan_male.iff", // bothan male
  328.  
  329.     "object/creature/player/zabrak_male.iff", // zabrak male
  330.  
  331.     "object/creature/player/rodian_male.iff", // rodian male
  332.  
  333.     "object/creature/player/moncal_male.iff", // moncal male
  334.  
  335.     "object/creature/player/wookiee_male.iff", // wookiee male
  336.  
  337.     "object/creature/player/sullustan_male.iff", // sullustan male
  338.  
  339.     "object/creature/player/ithorian_male.iff", // ithorian male
  340.  
  341.     "object/mobile/nautolan.iff", // nautolan male
  342.  
  343.     "object/mobile/bith_male.iff", // bith male
  344.  
  345.     "object/mobile/aqualish_male.iff", // aqualish male
  346.  
  347.     "object/mobile/nikto_male.iff", // nikto male
  348.  
  349.     "object/mobile/selonian_male.iff", // selonian male
  350.  
  351.     "object/creature/player/human_female.iff", // human female
  352.  
  353.     "object/creature/player/trandoshan_female.iff", // trandoshan female
  354.  
  355.     "object/creature/player/twilek_female.iff", // twilek female
  356.  
  357.     "object/creature/player/bothan_female.iff", // bothan female
  358.  
  359.     "object/creature/player/zabrak_female.iff", // zabrak female
  360.  
  361.     "object/creature/player/rodian_female.iff", // rodian female
  362.  
  363.     "object/creature/player/moncal_female.iff", // moncal female
  364.  
  365.     "object/creature/player/wookiee_female.iff", // wookiee female
  366.  
  367.     "object/creature/player/sullustan_female.iff", // sullustan female
  368.  
  369.     "object/creature/player/ithorian_female.iff",  // DA E7   -   ithorian female
  370.  
  371.     "object/mobile/nautolan.iff", // nautolan female
  372.  
  373.     "object/mobile/bith_male.iff", // bith female
  374.  
  375.     "object/mobile/aqualish_male.iff", // aqualish female
  376.  
  377.     "object/mobile/nikto_male.iff", // nikto female
  378.  
  379.     "object/mobile/selonian_male.iff", // selonian female
  380.  
  381. };
  382.  
  383.  
  384.  
  385. static uint32 SharedRace[] = {
  386.  
  387.     0xAF1DC1A1,
  388.  
  389.     0x50C45B8F,
  390.  
  391.     0xF280E27B,
  392.  
  393.     0x5BF77F33,
  394.  
  395.     0xE204A556,
  396.  
  397.     0x0BF9CD9C,
  398.  
  399.     0xB9C855A8,
  400.  
  401.     0x0564791D,
  402.  
  403.     0x0B9399A4,
  404.  
  405.     0x38BAC7C4,
  406.  
  407.     0xDE04C6AA,
  408.  
  409.     0x30BDA46C,
  410.  
  411.     0xD53C5202,
  412.  
  413.     0x141F7625,
  414.  
  415.     0x2DF14B0D,
  416.  
  417.     0xFFFFBBE9,
  418.  
  419.     0x183C24C6,
  420.  
  421.     0x849752DC,
  422.  
  423.     0x1D52730E,
  424.  
  425.     0xA9E35FFD,
  426.  
  427.     0xC264245B,
  428.  
  429.     0x982FBFDE,
  430.  
  431.     0x0DAB65E2,
  432.  
  433.     0x1573341A,
  434.  
  435.     0xB3E08013,
  436.  
  437.     0xDE04C6AA,
  438.  
  439.     0x44479344,
  440.  
  441.     0xABB00C9A,
  442.  
  443.     0x141F7625,
  444.  
  445.     0xA7884063
  446.  
  447. };
  448.  
  449.  
  450.  
  451. const static char* MoodStr[][2]= {
  452.  
  453.     {"none", "neutral"},
  454.  
  455.     {"absentminded", "neutral"},
  456.  
  457.     {"amazed", "neutral"},
  458.  
  459.     {"amused", "happy"},
  460.  
  461.     {"angry", "angry"},
  462.  
  463.     {"approving", "neutral"},
  464.  
  465.     {"bitter", "neutral"},
  466.  
  467.     {"bloodthirsty", "neutral"},
  468.  
  469.     {"brave", "neutral"},
  470.  
  471.     {"callous", "neutral"},
  472.  
  473.     {"careful", "neutral"},
  474.  
  475.     {"careless", "neutral"},
  476.  
  477.     {"casual", "neutral"},
  478.  
  479.     {"clinical", "neutral"},
  480.  
  481.     {"cocky", "neutral"},
  482.  
  483.     {"cold", "neutral"},
  484.  
  485.     {"compassionate", "neutral"},
  486.  
  487.     {"condescending", "neutral"},
  488.  
  489.     {"confident", "neutral"},
  490.  
  491.     {"confused", "neutral"},
  492.  
  493.     {"content", "happy"},
  494.  
  495.     {"courtly", "neutral"},
  496.  
  497.     {"coy", "neutral"},
  498.  
  499.     {"crude", "neutral"},
  500.  
  501.     {"cruel", "neutral"},
  502.  
  503.     {"curious", "neutral"},
  504.  
  505.     {"cynical", "neutral"},
  506.  
  507.     {"defensive", "neutral"},
  508.  
  509.     {"depressed", "unhappy"},
  510.  
  511.     {"devious", "neutral"},
  512.  
  513.     {"dimwitted", "neutral"},
  514.  
  515.     {"disappointed", "unhappy"},
  516.  
  517.     {"discreet", "neutral"},
  518.  
  519.     {"disgruntled", "disgruntled"},
  520.  
  521.     {"disgusted", "neutral"},
  522.  
  523.     {"dismayed", "unhappy"},
  524.  
  525.     {"disoriented", "neutral"},
  526.  
  527.     {"distracted", "neutral"},
  528.  
  529.     {"doubtful", "neutral"},
  530.  
  531.     {"dramatic", "neutral"},
  532.  
  533.     {"dreamy", "neutral"},
  534.  
  535.     {"drunk", "neutral"},
  536.  
  537.     {"earnest", "neutral"},
  538.  
  539.     {"ecstatic", "happy"},
  540.  
  541.     {"embarrassed", "neutral"},
  542.  
  543.     {"emphatic", "neutral"},
  544.  
  545.     {"encouraging", "neutral"},
  546.  
  547.     {"enthusiastic", "neutral"},
  548.  
  549.     {"evil", "neutral"},
  550.  
  551.     {"exasperated", "disgruntled"},
  552.  
  553.     {"exuberant", "happy"},
  554.  
  555.     {"fanatical", "neutral"},
  556.  
  557.     { "forgive", "neutral"},
  558.  
  559.     {"frustrated", "neutral"},
  560.  
  561.     {"guilty", "neutral"},
  562.  
  563.     {"happy", "happy"},
  564.  
  565.     {"honest", "neutral"},
  566.  
  567.     {"hopeful", "neutral"},
  568.  
  569.     {"hopeless", "neutral"},
  570.  
  571.     {"humble", "neutral"},
  572.  
  573.     {"hysterical", "neutral"},
  574.  
  575.     {"imploring", "neutral"},
  576.  
  577.     {"indifferent", "neutral"},
  578.  
  579.     {"indignant", "angry"},
  580.  
  581.     {"interested", "neutral"},
  582.  
  583.     {"jealous", "neutral"},
  584.  
  585.     {"joyful", "happy"},
  586.  
  587.     {"lofty", "neutral"},
  588.  
  589.     {"loud", "neutral"},
  590.  
  591.     {"loving", "neutral"},
  592.  
  593.     {"lustful", "neutral"},
  594.  
  595.     {"mean", "neutral"},
  596.  
  597.     {"mischievous", "neutral"},
  598.  
  599.     {"nervous", "neutral"},
  600.  
  601.     {"neutral", "neutral"},
  602.  
  603.     {"offended", "neutral"},
  604.  
  605.     {"optimistic", "neutral"},
  606.  
  607.     {"pedantic", "neutral"},
  608.  
  609.     {"pessimistic", "neutral"},
  610.  
  611.     {"petulant", "neutral"},
  612.  
  613.     {"philosophical", "neutral"},
  614.  
  615.     {"pitying", "neutral"},
  616.  
  617.     {"playful", "happy"},
  618.  
  619.     {"polite", "neutral"},
  620.  
  621.     {"pompous", "neutral"},
  622.  
  623.     {"proud", "neutral"},
  624.  
  625.     {"provocative", "neutral"},
  626.  
  627.     {"puzzled", "neutral"},
  628.  
  629.     {"regretful", "unhappy"},
  630.  
  631.     {"relieved", "neutral"},
  632.  
  633.     {"reluctant", "neutral"},
  634.  
  635.     {"resigned", "neutral"},
  636.  
  637.     {"respectful", "neutral"},
  638.  
  639.     {"romantic", "neutral"},
  640.  
  641.     {"rude", "neutral"},
  642.  
  643.     {"sad", "unhappy"},
  644.  
  645.     {"sarcastic", "neutral"},
  646.  
  647.     {"scared", "neutral"},
  648.  
  649.     {"scolding", "neutral"},
  650.  
  651.     {"scornful", "neutral"},
  652.  
  653.     {"serious", "neutral"},
  654.  
  655.     {"shameless", "neutral"},
  656.  
  657.     {"shocked", "neutral"},
  658.  
  659.     {"shy", "neutral"},
  660.  
  661.     {"sincere", "neutral"},
  662.  
  663.     {"sleepy", "neutral"},
  664.  
  665.     {"sly", "neutral"},
  666.  
  667.     {"smug", "neutral"},
  668.  
  669.     {"snobby", "neutral"},
  670.  
  671.     {"sorry", "neutral"},
  672.  
  673.     {"spiteful", "neutral"},
  674.  
  675.     {"stubborn", "neutral"},
  676.  
  677.     {"sullen", "neutral"},
  678.  
  679.     {"suspicious", "neutral"},
  680.  
  681.     {"taunting", "neutral"},
  682.  
  683.     {"terrified", "neutral"},
  684.  
  685.     {"thankful", "neutral"},
  686.  
  687.     {"thoughtful", "neutral"},
  688.  
  689.     {"tolerant", "neutral"},
  690.  
  691.     {"uncertain", "neutral"},
  692.  
  693.     {"unhappy", "unhappy"},
  694.  
  695.     {"unwilling", "neutral"},
  696.  
  697.     {"warm", "neutral"},
  698.  
  699.     {"whiny", "neutral"},
  700.  
  701.     {"wicked", "neutral"},
  702.  
  703.     {"wistful", "neutral"},
  704.  
  705.     {"worried", "worried"},
  706.  
  707.     {"tired", "neutral"},
  708.  
  709.     {"exhausted", "neutral"},
  710.  
  711.     {"friendly", "happy"},
  712.  
  713.     {"timid", "neutral"},
  714.  
  715.     {"lazy", "neutral"},
  716.  
  717.     {"surprised", "worried"},
  718.  
  719.     {"innocent", "happy"},
  720.  
  721.     {"wise", "neutral"},
  722.  
  723.     {"youthful", "neutral"},
  724.  
  725.     {"adventurous", "neutral"},
  726.  
  727.     {"annoyed", "angry"},
  728.  
  729.     {"perturbed", "unhappy"},
  730.  
  731.     {"sedate", "neutral"},
  732.  
  733.     {"calm", "neutral"},
  734.  
  735.     {"suffering", "unhappy"},
  736.  
  737.     {"hungry", "neutral"},
  738.  
  739.     {"thirsty", "neutral"},
  740.  
  741.     {"alert", "neutral"},
  742.  
  743.     {"shifty", "neutral"},
  744.  
  745.     {"relaxed", "neutral"},
  746.  
  747.     {"crotchety", "angry"},
  748.  
  749.     {"surly", "angry"},
  750.  
  751.     {"painful", "unhappy"},
  752.  
  753.     {"wounded", "unhappy"},
  754.  
  755.     {"bubbly", "happy"},
  756.  
  757.     {"heroic", "neutral"},
  758.  
  759.     {"quiet", "neutral"},
  760.  
  761.     {"remorseful", "unhappy"},
  762.  
  763.     {"grumpy", "angry"},
  764.  
  765.     {"logical", "neutral"},
  766.  
  767.     {"emotional", "neutral"},
  768.  
  769.     {"troubled", "unhappy"},
  770.  
  771.     {"panicked", "worried"},
  772.  
  773.     {"nice", "happy"},
  774.  
  775.     {"cheerful", "happy"},
  776.  
  777.     {"emotionless", "neutral"},
  778.  
  779.     {"gloomy", "unhappy"},
  780.  
  781.     {"ambivalent", "neutral"},
  782.  
  783.     {"envious", "neutral"},
  784.  
  785.     {"vengeful", "angry"},
  786.  
  787.     {"fearful", "worried"},
  788.  
  789.     {"enraged", "angry"},
  790.  
  791.     {"sheepish", "happy"},
  792.  
  793.     {"belligerent", "angry"},
  794.  
  795.     {"obnoxious", "neutral"},
  796.  
  797.     {"fastidious", "neutral"},
  798.  
  799.     {"squeamish", "unhappy"},
  800.  
  801.     {"dainty", "neutral"},
  802.  
  803.     {"dignified", "neutral"},
  804.  
  805.     {"haughty", "neutral"},
  806.  
  807.     {"obscure", "neutral"},
  808.  
  809.     {"goofy", "happy"},
  810.  
  811.     {"silly", "happy"},
  812.  
  813.     {"disdainful", "neutral"},
  814.  
  815.     {"contemptuous", "neutral"},
  816.  
  817.     {"diplomatic", "neutral"},
  818.  
  819.     {"wary", "neutral"},
  820.  
  821.     {"malevolent", "angry"},
  822.  
  823.     {"hurried", "neutral"},
  824.  
  825.     {"patient", "neutral"},
  826.  
  827.     {"firm", "neutral"},
  828.  
  829.     {"meditating", "meditating"},
  830.  
  831.     {"entertained", "entertained"}
  832.  
  833.  
  834.  
  835. };
  836.  
  837.  
  838.  
  839. static unsigned int attributeLimits[15][19] = {
  840.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400},
  841.         {550, 1250, 600,  800700,  800, 300, 1000, 300,  450, 300,  400, 300, 1000, 300,  500, 300600, 5550},
  842.         {300, 1000, 300,  500550,  650, 550, 1250, 600750, 300,  400, 400, 1100, 300,  500, 300500, 5400},
  843.         {300, 1000, 300,  500300,  400, 600, 1300, 600750, 400,  500, 400, 1100, 400,  600, 300500, 5400},
  844.         {500, 1200, 300,  500300,  400, 600, 1300, 300450, 300,  400, 300, 1000, 300,  500, 700900, 5400},
  845.         {300, 1000, 300,  500300,  400, 300, 1200, 300650, 450,  850, 300, 1000, 300,  500, 350550, 5400},
  846.         {300, 1000, 300,  500300,  400, 300, 1000, 300450, 450,  550, 600, 1300, 600,  800, 450650, 5400},
  847.         {650, 1350, 650,  850450,  550, 500, 1200, 400550, 400,  500, 400, 1100, 450,  650, 400600, 6100},
  848.         {300, 1200, 300,  500300,  400, 600, 1400, 300750, 300,  500, 400, 1200, 400,  600, 300600, 5400},
  849.         {300, 1400, 300,  600300,  500, 600, 1100, 300750, 300,  500, 400, 1300, 400,  600, 300500, 5400},
  850.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400},
  851.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400},
  852.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400},
  853.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400},
  854.         {400, 1100, 400, 1100,  400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 400, 1100, 5400}
  855. };
  856.  
  857.  
  858.  
  859. class Races {
  860.  
  861. public:
  862.  
  863.     inline const static char* getRace(int raceid) {
  864.  
  865.         return RaceStrs[raceid];
  866.  
  867.     }
  868.  
  869.  
  870.  
  871.     inline const static char* getMood(int moodid) {
  872.  
  873.         return MoodStr[moodid][0];
  874.  
  875.     }
  876.  
  877.  
  878.  
  879.     inline const static char* getSpecies(int raceid) {
  880.  
  881.         return Species[raceid];
  882.  
  883.     }
  884.  
  885.  
  886.  
  887.     inline const static char* getGender(int raceid) {
  888.  
  889.         return Gender[raceid];
  890.  
  891.     }
  892.  
  893.  
  894.  
  895.     inline static uint32 getRaceCRC(int raceid) {
  896.  
  897.         return SharedRace[raceid];
  898.  
  899.     }
  900.  
  901.  
  902.  
  903.     inline static int getRaceID(const String& name) {
  904.  
  905.         for (int i = 0; i < 30; i++) {
  906.  
  907.             if (strcmp(name.toCharArray(), CCRaceStrs[i]) == 0)
  908.  
  909.                 return i;
  910.  
  911.         }
  912.  
  913.  
  914.  
  915.         return 0;
  916.  
  917.     }
  918.  
  919.  
  920.  
  921.     inline static int getMoodID(const String& name) {
  922.  
  923.         for (int i = 0; i < 190; i++) {
  924.  
  925.             if (strcmp(name.toCharArray(), MoodStr[i][0]) == 0)
  926.  
  927.                 return i;
  928.  
  929.         }
  930.  
  931.  
  932.  
  933.         return 0;
  934.  
  935.     }
  936.  
  937.  
  938.  
  939.     inline const static char* getMoodStr(const String& name) {
  940.  
  941.         for (int i = 0; i < 190; i++) {
  942.  
  943.                     if (strcmp(name.toCharArray(), MoodStr[i][0]) == 0)
  944.  
  945.                         return MoodStr[i][1];
  946.  
  947.                 }
  948.  
  949.  
  950.  
  951.                 return MoodStr[0][1];
  952.  
  953.     }
  954.  
  955.  
  956.  
  957.     inline static unsigned int * getAttribLimits(int raceid) {
  958.  
  959.         return attributeLimits[raceid % 15];
  960.  
  961.     }
  962.  
  963.  
  964.  
  965. };
  966.  
  967.  
  968.  
  969. #endif /*RACES_H_*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement