L2PledgeSkillLearn.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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;
  16. /**
  17. * This class ...
  18. *
  19. * @version $Revision: 1.2.4.2 $ $Date: 2005/03/27 15:29:33 $
  20. */
  21. public final class L2PledgeSkillLearn
  22. {
  23. // these two build the primary key
  24. private final int _id;
  25. private final int _level;
  26. // not needed, just for easier debug
  27. private final String _name;
  28. private final int _repCost;
  29. private final int _baseLvl;
  30. private final int _itemId;
  31. private final int _itemCount;
  32. public L2PledgeSkillLearn(int id, int lvl, int baseLvl, String name, int cost, int itemId, int itemCount)
  33. {
  34. _id = id;
  35. _level = lvl;
  36. _baseLvl = baseLvl;
  37. _name = name.intern();
  38. _repCost = cost;
  39. _itemId = itemId;
  40. _itemCount = itemCount;
  41. }
  42. /**
  43. * @return Returns the id.
  44. */
  45. public int getId()
  46. {
  47. return _id;
  48. }
  49. /**
  50. * @return Returns the level.
  51. */
  52. public int getLevel()
  53. {
  54. return _level;
  55. }
  56. /**
  57. * @return Returns the minLevel.
  58. */
  59. public int getBaseLevel()
  60. {
  61. return _baseLvl;
  62. }
  63. /**
  64. * @return Returns the name.
  65. */
  66. public String getName()
  67. {
  68. return _name;
  69. }
  70. /**
  71. * @return Returns the spCost.
  72. */
  73. public int getRepCost()
  74. {
  75. return _repCost;
  76. }
  77. public int getItemId()
  78. {
  79. return _itemId;
  80. }
  81. public int getItemCount()
  82. {
  83. return _itemCount;
  84. }
  85. }