RadarControl.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.network.serverpackets;
  16. public class RadarControl extends L2GameServerPacket
  17. {
  18. private static final String _S__EB_RadarControl = "[S] f1 RadarControl";
  19. private int _showRadar;
  20. private int _type;
  21. private int _x;
  22. private int _y;
  23. private int _z;
  24. /**
  25. * 0xEB RadarControl ddddd
  26. * @param _
  27. */
  28. public RadarControl(int showRadar, int type, int x , int y ,int z)
  29. {
  30. _showRadar = showRadar; // showRader?? 0 = showradar; 1 = delete radar;
  31. _type = type; // radar type??
  32. _x = x;
  33. _y = y;
  34. _z = z;
  35. }
  36. @Override
  37. protected final void writeImpl()
  38. {
  39. writeC(0xf1);
  40. writeD(_showRadar);
  41. writeD(_type); //maybe type
  42. writeD(_x); //x
  43. writeD(_y); //y
  44. writeD(_z); //z
  45. }
  46. /* (non-Javadoc)
  47. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#getType()
  48. */
  49. @Override
  50. public String getType()
  51. {
  52. return _S__EB_RadarControl;
  53. }
  54. }