Class MapleLifeFactory

java.lang.Object
server.life.MapleLifeFactory

public class MapleLifeFactory extends Object
從 WZ 資料建立怪物與 NPC 實例的靜態工廠,是 server.life 套件的主要入口。

負責下列職責:

所有資料以靜態 Map 快取(首次存取時惰性載入); 由 server.Start 在啟動階段呼叫,並由 MapleMonsterInformationProvider 於 掉寶載入時間接使用。
  • Constructor Details

    • MapleLifeFactory

      public MapleLifeFactory()
  • Method Details

    • getLife

      public static AbstractLoadedMapleLife getLife(int id, String type)
    • getNPCLocation

      public static int getNPCLocation(int npcid)
    • loadQuestCounts

      public static final void loadQuestCounts()
    • getQuestCount

      public static final List<Integer> getQuestCount(int id)
    • getMonster

      public static MapleMonster getMonster(int mid)
    • getMonsterStats

      public static MapleMonsterStats getMonsterStats(int mid)
    • decodeElementalString

      public static final void decodeElementalString(MapleMonsterStats stats, String elemAttr)
    • getNPC

      public static MapleNPC getNPC(int nid)
    • getRandomNPC

      public static int getRandomNPC()
    • getNPCNames

      public static Map<Integer,String> getNPCNames()