2
0

L2PledgeSkillLearn.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 net.sf.l2j.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. public L2PledgeSkillLearn(int id, int lvl, int baseLvl, String name, int cost, int itemId)
  32. {
  33. _id = id;
  34. _level = lvl;
  35. _baseLvl = baseLvl;
  36. _name = name.intern();
  37. _repCost = cost;
  38. _itemId = itemId;
  39. }
  40. /**
  41. * @return Returns the id.
  42. */
  43. public int getId()
  44. {
  45. return _id;
  46. }
  47. /**
  48. * @return Returns the level.
  49. */
  50. public int getLevel()
  51. {
  52. return _level;
  53. }
  54. /**
  55. * @return Returns the minLevel.
  56. */
  57. public int getBaseLevel()
  58. {
  59. return _baseLvl;
  60. }
  61. /**
  62. * @return Returns the name.
  63. */
  64. public String getName()
  65. {
  66. return _name;
  67. }
  68. /**
  69. * @return Returns the spCost.
  70. */
  71. public int getRepCost()
  72. {
  73. return _repCost;
  74. }
  75. public int getItemId()
  76. {
  77. return _itemId;
  78. }
  79. }