L2ShortCut.java 2.1 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 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,
  37. int shortcutId, int shortcutLevel, int characterType)
  38. {
  39. _slot = slotId;
  40. _page = pageId;
  41. _type = shortcutType;
  42. _id = shortcutId;
  43. _level = shortcutLevel;
  44. _characterType = characterType;
  45. }
  46. public int getId()
  47. {
  48. return _id;
  49. }
  50. public int getLevel()
  51. {
  52. return _level;
  53. }
  54. public int getPage()
  55. {
  56. return _page;
  57. }
  58. public int getSlot()
  59. {
  60. return _slot;
  61. }
  62. public int getType()
  63. {
  64. return _type;
  65. }
  66. public int getCharacterType()
  67. {
  68. return _characterType;
  69. }
  70. public int getSharedReuseGroup()
  71. {
  72. return _sharedReuseGroup;
  73. }
  74. public void setSharedReuseGroup(int g)
  75. {
  76. _sharedReuseGroup = g;
  77. }
  78. }