GetOffVehicle.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. * @author Maktakien
  18. *
  19. */
  20. public class GetOffVehicle extends L2GameServerPacket
  21. {
  22. private int _charObjId, _boatObjId, _x, _y, _z;
  23. /**
  24. * @param activeChar
  25. * @param boat
  26. * @param x
  27. * @param y
  28. * @param z
  29. */
  30. public GetOffVehicle(int charObjId, int boatObjId, int x, int y, int z)
  31. {
  32. _charObjId = charObjId;
  33. _boatObjId = boatObjId;
  34. _x = x;
  35. _y = y;
  36. _z = z;
  37. }
  38. @Override
  39. protected void writeImpl()
  40. {
  41. writeC(0x6f);
  42. writeD(_charObjId);
  43. writeD(_boatObjId);
  44. writeD(_x);
  45. writeD(_y);
  46. writeD(_z);
  47. }
  48. @Override
  49. public String getType()
  50. {
  51. return "[S] 6f GetOffVehicle";
  52. }
  53. }