L2ShortCut.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.3.4.1 $ $Date: 2005/03/27 15:29:32 $
  20. */
  21. public class L2ShortCut
  22. {
  23. public final static int TYPE_ITEM = 1;
  24. public final static int TYPE_SKILL = 2;
  25. public final static int TYPE_ACTION = 3;
  26. public final static int TYPE_MACRO = 4;
  27. public final static int TYPE_RECIPE = 5;
  28. public final static int TYPE_TPBOOKMARK = 6;
  29. private final int _slot;
  30. private final int _page;
  31. private final int _type;
  32. private final int _id;
  33. private final int _level;
  34. private final int _characterType;
  35. private int _sharedReuseGroup = -1;
  36. public L2ShortCut(int slotId, int pageId, int shortcutType, int shortcutId, int shortcutLevel, int characterType)
  37. {
  38. _slot = slotId;
  39. _page = pageId;
  40. _type = shortcutType;
  41. _id = shortcutId;
  42. _level = shortcutLevel;
  43. _characterType = characterType;
  44. }
  45. public int getId()
  46. {
  47. return _id;
  48. }
  49. public int getLevel()
  50. {
  51. return _level;
  52. }
  53. public int getPage()
  54. {
  55. return _page;
  56. }
  57. public int getSlot()
  58. {
  59. return _slot;
  60. }
  61. public int getType()
  62. {
  63. return _type;
  64. }
  65. public int getCharacterType()
  66. {
  67. return _characterType;
  68. }
  69. public int getSharedReuseGroup()
  70. {
  71. return _sharedReuseGroup;
  72. }
  73. public void setSharedReuseGroup(int g)
  74. {
  75. _sharedReuseGroup = g;
  76. }
  77. }