ZoneId.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY), without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.model.zone;
  16. /**
  17. * Zone Ids.
  18. * @author Zoey76
  19. */
  20. public enum ZoneId
  21. {
  22. PVP(0),
  23. PEACE(1),
  24. SIEGE(2),
  25. MOTHER_TREE(3),
  26. CLAN_HALL(4),
  27. LANDING(5),
  28. NO_LANDING(6),
  29. WATER(7),
  30. JAIL(8),
  31. MONSTER_TRACK(9),
  32. CASTLE(10),
  33. SWAMP(11),
  34. NO_SUMMON_FRIEND(12),
  35. FORT(13),
  36. NO_STORE(14),
  37. TOWN(15),
  38. SCRIPT(16),
  39. HQ(17),
  40. DANGER_AREA(18),
  41. ALTERED(19),
  42. NO_BOOKMARK(20),
  43. NO_ITEM_DROP(21),
  44. NO_RESTART(22);
  45. private final int _id;
  46. private ZoneId(int id)
  47. {
  48. _id = id;
  49. }
  50. public int getId()
  51. {
  52. return _id;
  53. }
  54. public static int getZoneCount()
  55. {
  56. return values().length;
  57. }
  58. }