Macro.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. import java.util.List;
  21. public class Macro
  22. {
  23. public static final int CMD_TYPE_SKILL = 1;
  24. public static final int CMD_TYPE_ACTION = 3;
  25. public static final int CMD_TYPE_SHORTCUT = 4;
  26. private int _id;
  27. private final int _icon;
  28. private final String _name;
  29. private final String _descr;
  30. private final String _acronym;
  31. private final List<MacroCmd> _commands;
  32. public Macro(int id, int icon, String name, String descr, String acronym, List<MacroCmd> list)
  33. {
  34. setId(id);
  35. _icon = icon;
  36. _name = name;
  37. _descr = descr;
  38. _acronym = acronym;
  39. _commands = list;
  40. }
  41. public int getId()
  42. {
  43. return _id;
  44. }
  45. public void setId(int _id)
  46. {
  47. this._id = _id;
  48. }
  49. public int getIcon()
  50. {
  51. return _icon;
  52. }
  53. public String getName()
  54. {
  55. return _name;
  56. }
  57. public String getDescr()
  58. {
  59. return _descr;
  60. }
  61. public String getAcronym()
  62. {
  63. return _acronym;
  64. }
  65. public List<MacroCmd> getCommands()
  66. {
  67. return _commands;
  68. }
  69. }