L2ShortCut.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (C) 2004-2013 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model;
  20. /**
  21. * This class ...
  22. * @version $Revision: 1.3.4.1 $ $Date: 2005/03/27 15:29:32 $
  23. */
  24. public class L2ShortCut
  25. {
  26. public static final int TYPE_ITEM = 1;
  27. public static final int TYPE_SKILL = 2;
  28. public static final int TYPE_ACTION = 3;
  29. public static final int TYPE_MACRO = 4;
  30. public static final int TYPE_RECIPE = 5;
  31. public static final int TYPE_TPBOOKMARK = 6;
  32. private final int _slot;
  33. private final int _page;
  34. private final int _type;
  35. private final int _id;
  36. private final int _level;
  37. private final int _characterType;
  38. private int _sharedReuseGroup = -1;
  39. public L2ShortCut(int slotId, int pageId, int shortcutType, int shortcutId, int shortcutLevel, int characterType)
  40. {
  41. _slot = slotId;
  42. _page = pageId;
  43. _type = shortcutType;
  44. _id = shortcutId;
  45. _level = shortcutLevel;
  46. _characterType = characterType;
  47. }
  48. public int getId()
  49. {
  50. return _id;
  51. }
  52. public int getLevel()
  53. {
  54. return _level;
  55. }
  56. public int getPage()
  57. {
  58. return _page;
  59. }
  60. public int getSlot()
  61. {
  62. return _slot;
  63. }
  64. public int getType()
  65. {
  66. return _type;
  67. }
  68. public int getCharacterType()
  69. {
  70. return _characterType;
  71. }
  72. public int getSharedReuseGroup()
  73. {
  74. return _sharedReuseGroup;
  75. }
  76. public void setSharedReuseGroup(int g)
  77. {
  78. _sharedReuseGroup = g;
  79. }
  80. }