Exemple #1
0
 /**
  * Loads monsters mapping file.
  * 
  * <p>
  * This method loads monsters list from <var>monsters.xml</var> file in given directory. You can create local instances of monsters lists directly - calling this method will associate loaded list with POT class instance and will make it available everywhere in the code.
  * </p>
  * 
  * <p>
  * Note: Since 0.1.0 version this method loads instance of {@link OTS_MonstersList OTS_MonstersList} which you should fetch to get vocations info instead of calling POT class methods.
  * </p>
  * 
  * <p>
  * Note: Since 0.2.0+SVN this method is static.
  * </p>
  * 
  * @version 0.2.0+SVN
  * @since 0.0.6
  * @param string $path Monsters directory.
  * @throws DOMException On DOM operation error.
  */
 public static function loadMonsters($path)
 {
     self::$monsters = new OTS_MonstersList($path);
 }