ShowTownMap.java 1.4 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. /**
  17. * sample
  18. * format
  19. * d
  20. *
  21. * @version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:39 $
  22. */
  23. public class ShowTownMap extends L2GameServerPacket
  24. {
  25. private static final String _S__DE_ShowTownMap = "[S] ea ShowTownMap";
  26. private String _texture;
  27. private int _x;
  28. private int _y;
  29. /**
  30. */
  31. public ShowTownMap(String texture, int x, int y)
  32. {
  33. _texture = texture;
  34. _x = x;
  35. _y = y;
  36. }
  37. @Override
  38. protected final void writeImpl()
  39. {
  40. writeC(0xea);
  41. writeS(_texture);
  42. writeD(_x);
  43. writeD(_y);
  44. }
  45. /* (non-Javadoc)
  46. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#getType()
  47. */
  48. @Override
  49. public String getType()
  50. {
  51. return _S__DE_ShowTownMap;
  52. }
  53. }