Advertisement
dalvorsn

Untitled

Feb 10th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.02 KB | None | 0 0
  1.         std::string tmpStrValue = asLowerCaseString(strValue);
  2.         switch(tmpStrValue){
  3.             case "normal":
  4.                 mType->race = RACE_NORMAL;
  5.                 break;
  6.                
  7.             case "fire":
  8.                 mType->race = RACE_FIRE;
  9.                 break;
  10.                
  11.             case "fight":
  12.                 mType->race = RACE_FIGHTING;
  13.                 break;
  14.                
  15.             case "water":
  16.                 mType->race = RACE_WATER;
  17.                 break;
  18.            
  19.             case "flying":
  20.                 mType->race = RACE_FLYING;
  21.                 break;
  22.            
  23.             case "grass":
  24.                 mType->race = RACE_GRASS;
  25.                 break;
  26.                
  27.             case "poison":
  28.                 mType->race = RACE_POISON;
  29.                 break;
  30.                
  31.             case "electric":
  32.                 mType->race = RACE_ELECTRIC;
  33.                 break;
  34.                
  35.             case "ground":
  36.                 mType->race = RACE_GROUND;
  37.                 break;
  38.            
  39.             case "psychic":
  40.                 mType->race = RACE_PSYCHIC;
  41.                 break;
  42.                
  43.             case "rock":
  44.                 mType->race = RACE_ROCK;
  45.                 break;
  46.                
  47.             case "ice":
  48.                 mType->race = RACE_ICE;
  49.                 break;
  50.              
  51.             case "bug":
  52.                 mType->race = RACE_BUG;
  53.                 break;
  54.                
  55.             case "dragon":
  56.                 mType->race = RACE_DRAGON;
  57.                 break;
  58.                
  59.             case "ghost":
  60.                 mType->race = RACE_GHOST;
  61.                 break;
  62.                
  63.             case "dark":
  64.                 mType->race = RACE_DARK;
  65.                 break;
  66.                
  67.             case "stell":
  68.                 mType->race = RACE_STELL;
  69.                 break;
  70.            
  71.             default:
  72.                 mType->race = RACE_NONE;
  73.                
  74.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement