ClanPrivilege.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (C) - LJ Server
  3. *
  4. * This file is part of LJ Server.
  5. *
  6. * LJ Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version of the License, or
  9. * (at your option) any later version.
  10. *
  11. * LJ Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model;
  20. /**
  21. * This enum is used for clan privileges.<br>
  22. * The ordinal of each entry is the bit index in the privilege bitmask.
  23. * @author FBIagent
  24. */
  25. public enum ClanPrivilege
  26. {
  27. /** dummy entry */
  28. DUMMY,
  29. /** Privilege to join clan */
  30. CL_JOIN_CLAN,
  31. /** Privilege to give a title */
  32. CL_GIVE_TITLE,
  33. /** Privilege to view warehouse content */
  34. CL_VIEW_WAREHOUSE,
  35. /** Privilege to manage clan ranks */
  36. CL_MANAGE_RANKS,
  37. CL_PLEDGE_WAR,
  38. CL_DISMISS,
  39. /** Privilege to register clan crest */
  40. CL_REGISTER_CREST,
  41. CL_APPRENTICE,
  42. CL_TROOPS_FAME,
  43. CL_SUMMON_AIRSHIP,
  44. /** Privilege to open a door */
  45. CH_OPEN_DOOR,
  46. CH_OTHER_RIGHTS,
  47. CH_AUCTION,
  48. CH_DISMISS,
  49. CH_SET_FUNCTIONS,
  50. CS_OPEN_DOOR,
  51. CS_MANOR_ADMIN,
  52. CS_MANAGE_SIEGE,
  53. CS_USE_FUNCTIONS,
  54. CS_DISMISS,
  55. CS_TAXES,
  56. CS_MERCENARIES,
  57. CS_SET_FUNCTIONS;
  58. public int getBitmask()
  59. {
  60. return 1 << ordinal();
  61. }
  62. }