content: /**
   * This file is part of Aion-Lightning <aion-lightning.org>.
   *
   *  Aion-Lightning is free software: you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation, either version 3 of the License, or
   *  (at your option) any later version.
   *
   *  Aion-Lightning is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details. *
   *  You should have received a copy of the GNU General Public License
   *  along with Aion-Lightning.
   *  If not, see <http://www.gnu.org/licenses/>.
   */
  package com.aionemu.gameserver.world;
  
  public enum WorldMapType {
  	// Asmodae
  	PANDAEMONIUM(120010000),
  	MARCHUTAN(120020000),
  	MARCHUTAN_PRIORY(120080000),
  	FATEBOUND_ABBEY(140010000),
  	ISHALGEN(220010000),
  	MORHEIM(220020000),
  	ALTGARD(220030000),
  	BELUSLAN(220040000),
  	BRUSTHONIN(220050000),
  	NOSRA(220110000),
  	TOWER_OF_ETERNITY_D(220120000),
  	PERNON(710010000),
  	// Elysea
  	SANCTUM(110010000),
  	KAISINEL(110020000),
  	KAISINEL_ACADEMY(110070000),
  	WISPLIGHT_ABBEY(130090000),
  	POETA(210010000),
  	ELTNEN(210020000),
  	VERTERON(210030000),
  	HEIRON(210040000),
  	THEOBOMOS(210060000),
  	ESTERRA(210100000),
  	TOWER_OF_ETERNITY_L(210110000),
      LIVE_PARTY_CONCERT_HALL(600080000),
  	ORIEL(700010000),
  	// Balaurea
  	INGGISON(210050000),
  	LF4_M(210130000),
  	SIGNIA(210070000),
  	GRIFFOEN(210080000),
  	IDIAN_DEPTHS_L(210090000),
  	GELKMAROS(220070000),
  	DF4_M(220140000),
  	VENGAR(220080000),
  	HABROK(220090000),
  	IDIAN_DEPTHS_D(220100000),
  	SILENTERA_CANYON(600010000),
  	TIAMAT_DOWN(600040000),
  	TIAMAT_DOWN_M(600041000),
  	KALDOR(600090000),
  	AKARON(600100000),
  	UNDERPASS_M(600110000),
  	// Abyss
  	RESHANTA(400010000),
  	// Panasterra
  	BELUS(400020000),
  	TRANSIDIUM_ANNEX(400030000),
  	ASPIDA(400040000),
  	ATANATOS(400050000),
  	DISILLON(400060000),
  	// Prison
  	DE_PRISON(510010000),
  	DF_PRISON(520010000),
  	// Instances
      ARENA_EVENT_L(210120000),
      ARENA_EVENT_D(220130000),
      IDABPRO(300010000),
  	NOCHSANA_TRAINING_CAMP(300030000),
  	DARK_POETA(300040000),
  	ASTERIA_CHAMBER(300050000),
  	SULFUR_TREE_NEST(300060000),
  	CHAMBER_OF_ROAH(300070000),
  	LEFT_WING_CHAMBER(300080000),
  	RIGHT_WING_CHAMBER(300090000),
  	STEEL_RAKE(300100000),
  	DREDGION(300110000),
  	KYSIS_CHAMBER(300120000),
  	MIREN_CHAMBER(300130000),
  	KROTAN_CHAMBER(300140000),
  	UDAS_TEMPLE(300150000),
  	UDAS_TEMPLE_LOWER(300160000),
  	BESHMUNDIR_TEMPLE(300170000),
  	TALOCS_HOLLOW(300190000),
  	HARAMEL(300200000),
  	DREDGION_OF_CHANTRA(300210000),
  	ABYSSAL_SPLINTER(300220000),
  	KROMEDE_TRIAL(300230000),
  	ATURAM_SKY_FORTRESS(300240000),
  	ATURAM_SKY_FORTRESS_BONUS(300241000),
  	ESOTERRACE(300250000),
  	RENTUS_BASE(300280000),
  	EMPYREAN_CRUCIBLE(300300000),
  	CRUCIBLE_CHALLENGE(300320000),
  	ARENA_OF_CHAOS(300350000),
  	ARENA_OF_DISCIPLINE(300360000),
  	CHAOS_TRAINING_GROUNDS(300420000),
  	DISCIPLINE_TRAINING_GROUNDS(300430000),
  	TERATH_DREDGION(300440000),
  	ARENA_OF_HARMONY(300450000),
  	STEEL_RAKE_CABIN(300460000),
  	SEALED_HALL_OF_KNOWLEDGE(300480000),
  	TIAMAT_STRONGHOLD(300510000),
  	DRAGON_LORD_REFUGE(300520000),
  	ETERNAL_BASTION(300540000),
  	ARENA_OF_GLORY(300550000),
  	SHUGO_IMPERIAL_TOMB(300560000),
  	HARMONY_TRAINING_GROUND(300570000),
  	OPHIDAN_BRIDGE(300590000),
  	UNSTABLE_ABYSSAL_SPLINTER(300600000),
  	RAKSANG_RUINS(300610000),
  	OCCUPIED_RENTUS_BASE(300620000),
  	ANGUISHED_DRAGON_LORD_REFUGE(300630000),
  	THE_HEXWAY(300700000),
  	INFINITY_SHARD(300800000),
  	UNITY_TRAINING_GROUNDS(301100000),
  	RUNADIUM(301110000),
  	KAMARS_BATTLEFIELD(301120000),
  	SAURO_SUPPLY_BASE(301130000),
  	SEIZED_DANUAR_SANCTUARY(301140000),
  	ASTERIA_IU_SOLO(301150000),
  	NIGHTMARE_CIRCUS(301160000),
  	RUKIBUKI_CIRCUS_TROUPE_CAMP(301200000),
  	ENGULFED_OPHIDAN_BRIDGE(301210000),
  	IRON_WALL_WARFRONT(301220000),
  	ILLUMINARY_OBELISK(301230000),
  	LEGION_KYSIS_BARRACKS(301240000),
  	LEGION_MIREN_BARRACKS(301250000),
  	LEGION_KROTAN_BARRACKS(301260000),
  	LINKGATE_FOUNDRY(301270000),
  	KYSIS_BARRACKS(301280000),
  	MIREN_BARRACKS(301290000),
  	KROTAN_BARRACKS(301300000),
  	IDGEL_DOME(301310000),
  	LUCKY_OPHIDAN_BRIDGE(301320000),
  	RUNADIUM_BONUS(301330000),
  	LINKGATE_FOUNDRY_Q(301340000),
  	RUNADIUM_HEROIC(301360000),
  	INFERNAL_ILLUMINARY_OBELISK(301370000),
  	DANUAR_SANCTUARY(301380000),
  	DRAKENSPIRE_DEPTHS(301390000),
  	THE_SHUGO_EMPEROR_VAULT(301400000),
  	STONESPEAR_REACH(301500000),
  	SEALED_ARGENT_MANOR(301510000),
  	DRAKENSPIRE_DEPTHS_Q(301520000),
  	LIBRARY_OF_KNOWLEDGE(301540000),
  	GARDEN_OF_KNOWLEDGE(301550000),
  	MUSEUM_OF_KNOWLEDGE(301560000),
  	LIBRARY_OF_KNOWLEDGE_QUEST(301570000),
  	SANCTUARY_DUNGEON(301580000),
  	SHUGO_EMPEROR_VAULT(301590000),
  	ADMA_RUINS(301600000),
  	ELEMENTAL_LORDS_LABORATORY(301610000),
  	ARKHALS_HIDDEN_SPACE(301620000),
  	HELL_PASS(301630000),
  	IDEVENT_DEF(301631000),
  	MECHANERKS_WEAPONS_FACTORY(301640000),
  	ASHUNATAL_DREDGION(301650000),
  	KROBAN_BASE(301660000),
  	BALAUR_MARCHING_ROUTE(301670000),
  	RUNATORIUM_RUINS(301680000),
  	AETHER_MINE(301690000),
  	TREASURE_ISLAND_OF_COURAGE(301700000),
  	MIRASH_REFUGE(301720000),
  	FIRE_TEMPLE_OF_MEMORY(302000000),
  	RIFT_OF_OBLIVION(302100000),
  	RIFT_OF_OBLIVION_BONUS(302100000),
  	SANCTUM_BATTLEFIELD(302200000),
  	PANDAEMONIUM_BATTLEFIELD(302300000),
  	GOLD_ARENA(302310000),
  	GOLDEN_CRUCIBLE(302320000),
  	KUMUKI_HIDEOUT(302330000),
      NARAKKALLI(302340000),
      NEVIWIND_CANYON(302350000),
      GOLD_ARENA_LONE_FIGHTER(302360000),
      GOLDEN_CRUCIBLE_GROUP_BATTLE(302370000),
      GOLD_ARENA_GROUP_BATTLES_L(302380000), //TODO - Asmo or Elyos
      GOLDEN_CRUCIBLE_GROUP_BATTLES_L(302390000), //TODO - Asmo or Elyos
      TOWER_OF_CHALLENGE(302400000),
      GOLD_ARENA_GROUP_BATTLES_D(302410000), //TODO - Asmo or Elyos
      GOLDEN_CRUCIBLE_GROUP_BATTLES_D(302420000), //TODO - Asmo or Elyos
  	KARAMATIS_A(310010000),
  	KARAMATIS_B(310020000),
  	AERDINA(310030000),
  	GERANAIA(310040000),
  	AETHEROGENETICS_LAB(310050000),
  	FRAGMENT_OF_DARKNESS(310060000),
  	SLIVER_OF_DARKNESS(310070000),
  	SANCTUM_UNDERGROUND_ARENA(310080000),
  	INDRATU_FORTRESS(310090000),
  	AZOTURAN_FORTRESS(310100000),
  	THEOBOMOS_LAB(310110000),
  	ATAXIAR_A(310120000),
  	ATAXIAR_B(320010000),
  	ATAXIAR_C(320020000),
  	BREGIRUN(320030000),
  	NIDALBER(320040000),
  	ARKANIS_TEMPLE(320050000),
  	SPACE_OF_OBLIVION(320060000),
  	SPACE_OF_DESTINY(320070000),
  	DRAUPNIR_CAVE(320080000),
  	TRINIEL_UNDERGROUND_ARENA(320090000),
  	FIRE_TEMPLE(320100000),
  	ALQUIMIA_RESEARCH_CENTER(320110000),
  	SHADOW_COURT_DUNGEON(320120000),
  	ADMA_STRONGHOLD(320130000),
  	ATAXIAR_D(320140000),
  	PADMARASHKA_CAVE(320150000),
  	HOLY_TOWER_L(310160000),
  	HOLY_TOWER_D(320160000),
  	// Housing
  	HOUSING_LC_LEGION(700020000, true),
  	HOUSING_DC_LEGION(710020000, true),
  	ORIEL_STUDIO(720010000, true),
  	PERNON_STUDIO(730010000, true),
  	// Test Maps
      IDTEST_DUNGEON(300020000),
      TEST_MRT_IDZONE(300290000),
  	TEST_BASIC(900020000),
  	TEST_SERVER(900030000),
  	TEST_GIANTMONSTER(900100000),
  	HOUSING_BARRACK(900110000),
  	TEST_EMPYREAN_CRUCIBLE(900120000),
  	IDLDF5RE_TEST(900130000),
  	TEST_KGW(900140000),
  	TEST_BASIC_MJ(900150000),
  	TEST_INTRO(900170000),
  	TEST_SERVER_ART(900180000),
  	TEST_TAG_MATCH(900190000),
  	TEST_TIME_ATTACK(900200000),
  	IDTOURNAMENT_STAGE_TEST(900210000),
  	SYSTEM_BASIC(900220000),
  	IDTOURNAMENT_LOBBY_TEST(900230000),
  	IDTOURNAMENT_TEST_01(900240000);
  
  	private final int worldId;
  	private final boolean isPersonal;
  
  	WorldMapType(int worldId) {
  		this(worldId, false);
  	}
  
  	WorldMapType(int worldId, boolean personal) {
  		this.worldId = worldId;
  		this.isPersonal = personal;
  	}
  
  	public int getId() {
  		return worldId;
  	}
  
  	public boolean isPersonal() {
  		return isPersonal;
  	}
  
  	/**
  	 * @param id
  	 *            of world
  	 * @return WorldMapType
  	 */
  	public static WorldMapType getWorld(int id) {
  		for (WorldMapType type : WorldMapType.values()) {
  			if (type.getId() == id) {
  				return type;
  			}
  		}
  		return null;
  	}
  }
  