2
0

L2Castle.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 castle instance
  18. *
  19. */
  20. public class L2Castle
  21. {
  22. private int _castleId;
  23. private String _name;
  24. private int _ownerId;
  25. private int _tax;
  26. private long _siegeDate;
  27. public L2Castle(int castleId, String name, int ownerId, int tax, long siegeDate)
  28. {
  29. _castleId = castleId;
  30. _name = name;
  31. _ownerId = ownerId;
  32. _tax = tax;
  33. _siegeDate = siegeDate;
  34. }
  35. public int getId()
  36. {
  37. return _castleId;
  38. }
  39. public String getName()
  40. {
  41. return _name;
  42. }
  43. public int getOwnerId()
  44. {
  45. return _ownerId;
  46. }
  47. public long getSiegeDate()
  48. {
  49. return _siegeDate;
  50. }
  51. public int getTax()
  52. {
  53. return _tax;
  54. }
  55. }