ExMoveToLocationAirShip.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. import com.l2jserver.gameserver.model.actor.instance.L2AirShipInstance;
  17. public class ExMoveToLocationAirShip extends L2GameServerPacket
  18. {
  19. private static final String _S__FE_65_EXAIRSHIPMOVETOLOCATION = "[S] FE:65 ExGetOnAirShip";
  20. private final int _airShipId;
  21. private final int _x, _y, _z, _dx, _dy, _dz;
  22. public ExMoveToLocationAirShip(L2AirShipInstance cha, int x, int y, int z)
  23. {
  24. _airShipId = cha.getObjectId();
  25. _x = cha.getX();
  26. _y = cha.getY();
  27. _z = cha.getZ();
  28. _dx = x;
  29. _dy = y;
  30. _dz = z;
  31. }
  32. @Override
  33. protected void writeImpl()
  34. {
  35. writeC(0xfe);
  36. writeH(0x65);
  37. writeD(_airShipId);
  38. writeD(_dx);
  39. writeD(_dy);
  40. writeD(_dz);
  41. writeD(_x);
  42. writeD(_y);
  43. writeD(_z);
  44. }
  45. @Override
  46. public String getType()
  47. {
  48. return _S__FE_65_EXAIRSHIPMOVETOLOCATION;
  49. }
  50. }