L2Macro.java 1.9 KB

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