L2Clan.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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.communityserver.model;
  16. /**
  17. * This class describes a clan instance
  18. *
  19. */
  20. public class L2Clan
  21. {
  22. private int _clanId;
  23. private String _name;
  24. private int _level;
  25. private int _lordObjId;
  26. private String _lordName;
  27. private int _members;
  28. private String _allianceName;
  29. private int[] _allianceClanIdList;
  30. private boolean _noticeEnabled;
  31. private Forum _forum;
  32. private String _introduction;
  33. private String _notice;
  34. private boolean _isNoticeLoaded = false;
  35. public L2Clan(int clanId, String name, int level, int lordObjId, String lordName, int members, String allianceName, int[] allianceClanIdList, boolean noticeEnabled)
  36. {
  37. _clanId = clanId;
  38. _name = name;
  39. _lordName = lordName;
  40. _level = level;
  41. _lordObjId = lordObjId;
  42. _members = members;
  43. _allianceName = allianceName;
  44. _allianceClanIdList = allianceClanIdList;
  45. _noticeEnabled = noticeEnabled;
  46. _forum = null;
  47. _introduction = "";
  48. }
  49. public int getClanId()
  50. {
  51. return _clanId;
  52. }
  53. public void setName(String val)
  54. {
  55. _name = val;
  56. }
  57. public String getName()
  58. {
  59. return _name;
  60. }
  61. public void setLordName(String val)
  62. {
  63. _lordName = val;
  64. }
  65. public String getLordName()
  66. {
  67. return _lordName;
  68. }
  69. // do not use this from here!!!
  70. public Forum getForum()
  71. {
  72. return _forum;
  73. }
  74. public void setLevel(int val)
  75. {
  76. _level = val;
  77. }
  78. public int getClanLevel()
  79. {
  80. return _level;
  81. }
  82. public void setMembersCount(int val)
  83. {
  84. _members = val;
  85. }
  86. public int getMembersCount()
  87. {
  88. return _members;
  89. }
  90. public void setLordObjId(int val)
  91. {
  92. _lordObjId = val;
  93. }
  94. public int getLordObjId()
  95. {
  96. return _lordObjId;
  97. }
  98. public void setAllianceName(String val)
  99. {
  100. _allianceName = val;
  101. }
  102. public String getAllianceName()
  103. {
  104. return _allianceName;
  105. }
  106. public void setAllianceClanIdList(int[] val)
  107. {
  108. _allianceClanIdList = val;
  109. }
  110. public int[] getAllianceClanIdList()
  111. {
  112. return _allianceClanIdList;
  113. }
  114. public void setForum(Forum f)
  115. {
  116. _forum = f;
  117. }
  118. public String getIndtroduction()
  119. {
  120. return _introduction;
  121. }
  122. public void setIntroduction(String val)
  123. {
  124. _introduction = val;
  125. }
  126. public boolean isNoticeEnabled()
  127. {
  128. return _noticeEnabled;
  129. }
  130. public void setNoticeEnabled(boolean val)
  131. {
  132. _noticeEnabled = val;
  133. }
  134. public boolean isNoticeLoaded()
  135. {
  136. return _isNoticeLoaded;
  137. }
  138. public void setNotice(String val)
  139. {
  140. _isNoticeLoaded = true;
  141. _notice = val;
  142. }
  143. public String getNotice()
  144. {
  145. return _notice;
  146. }
  147. }