Start() protected method

protected Start ( ) : void
return void
Exemplo n.º 1
0
 /*
  * Author: Dr Nexus
  * Modified by: Kroy
  *
  * Choose the race and set race specific attributes, for character c.
  *
  * Parameter c Character to set.
  * Parameter race of the character.
  * Return create basic stats.
  */
 public bool OnCharacterChooseRace(Character c, Races race)
 {
     //Skill lang = null;
     if (race == Races.Dwarf)
     {
         Dwarf.Start(c);
     }
     else if (race == Races.Gnome)
     {
         Gnome.Start(c);
     }
     else if (race == Races.Human)
     {
         Human.Start(c);
     }
     else if (race == Races.NightElf)
     {
         NightElf.Start(c);
     }
     else if (race == Races.Orc)
     {
         Orc.Start(c);
     }
     else if (race == Races.Tauren)
     {
         Tauren.Start(c);
     }
     else if (race == Races.Troll)
     {
         Troll.Start(c);
     }
     else if (race == Races.Undead)
     {
         Undead.Start(c);
     }
     ChooseClass(c);          // Coose class after race.
     return(true);            // execute the caller code
 }