ExRegMax.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* This program is free software; you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License as published by
  3. * the Free Software Foundation; either version 2, or (at your option)
  4. * any later version.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. *
  11. * You should have received a copy of the GNU General Public License
  12. * along with this program; if not, write to the Free Software
  13. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  14. * 02111-1307, USA.
  15. *
  16. * http://www.gnu.org/copyleft/gpl.html
  17. */
  18. package net.sf.l2j.gameserver.serverpackets;
  19. public class ExRegMax extends L2GameServerPacket
  20. {
  21. private static final String _S__FE_01_EXREGMAX = "[S] FE:01 ExRegenMax";
  22. private double _max;
  23. private int _count;
  24. private int _time;
  25. public ExRegMax(double max, int count, int time)
  26. {
  27. _max = max;
  28. _count = count;
  29. _time = time;
  30. }
  31. /* (non-Javadoc)
  32. * @see net.sf.l2j.gameserver.serverpackets.ServerBasePacket#writeImpl()
  33. */
  34. @Override
  35. protected void writeImpl()
  36. {
  37. writeC(0xfe);
  38. writeH(0x01);
  39. writeD(1);
  40. writeD(_count);
  41. writeD(_time);
  42. writeF(_max);
  43. }
  44. /* (non-Javadoc)
  45. * @see net.sf.l2j.gameserver.BasePacket#getType()
  46. */
  47. @Override
  48. public String getType()
  49. {
  50. return _S__FE_01_EXREGMAX;
  51. }
  52. }