L2Macro.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 $ $Date: 2004/10/23 22:12:44 $
  23. */
  24. public class L2Macro
  25. {
  26. public static final int CMD_TYPE_SKILL = 1;
  27. public static final int CMD_TYPE_ACTION = 3;
  28. public static final int CMD_TYPE_SHORTCUT = 4;
  29. public int id;
  30. public final int icon;
  31. public final String name;
  32. public final String descr;
  33. public final String acronym;
  34. public final L2MacroCmd[] commands;
  35. public static class L2MacroCmd
  36. {
  37. public final int entry;
  38. public final int type;
  39. public final int d1; // skill_id or page for shortcuts
  40. public final int d2; // shortcut
  41. public final String cmd;
  42. public L2MacroCmd(int pEntry, int pType, int pD1, int pD2, String pCmd)
  43. {
  44. entry = pEntry;
  45. type = pType;
  46. d1 = pD1;
  47. d2 = pD2;
  48. cmd = pCmd;
  49. }
  50. }
  51. /**
  52. * @param pId
  53. * @param pIcon
  54. * @param pName
  55. * @param pDescr
  56. * @param pAcronym
  57. * @param pCommands
  58. */
  59. public L2Macro(int pId, int pIcon, String pName, String pDescr, String pAcronym, L2MacroCmd[] pCommands)
  60. {
  61. id = pId;
  62. icon = pIcon;
  63. name = pName;
  64. descr = pDescr;
  65. acronym = pAcronym;
  66. commands = pCommands;
  67. }
  68. }