L2Macro.java 1.8 KB

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