Exemple #1
0
 /**
  * Player proffesion name.
  * 
  * <p>
  * You need global vocations list resource loaded in order to use this method.
  * </p>
  * 
  * @version 0.2.0+SVN
  * @since 0.0.6
  * @return string Player proffesion name.
  * @throws E_OTS_NotLoaded If player is not loaded or global vocations list is not loaded.
  */
 public function getVocationName()
 {
     if (!isset($this->data['vocation'])) {
         throw new E_OTS_NotLoaded();
     }
     return POT::getVocationsList()->getVocationName($this->data['vocation']);
 }