SpecialCamera.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 SpecialCamera extends L2GameServerPacket
  17. {
  18. private static final String _S__C7_SPECIALCAMERA = "[S] d6 SpecialCamera";
  19. private final int _id;
  20. private final int _dist;
  21. private final int _yaw;
  22. private final int _pitch;
  23. private final int _time;
  24. private final int _duration;
  25. private final int _turn;
  26. private final int _rise;
  27. private final int _widescreen;
  28. private final int _unknown;
  29. public SpecialCamera(int id, int dist, int yaw, int pitch, int time, int duration)
  30. {
  31. _id = id;
  32. _dist = dist;
  33. _yaw = yaw;
  34. _pitch = pitch;
  35. _time = time;
  36. _duration = duration;
  37. _turn = 0;
  38. _rise = 0;
  39. _widescreen = 0;
  40. _unknown = 0;
  41. }
  42. public SpecialCamera(int id, int dist, int yaw, int pitch, int time, int duration, int turn, int rise, int widescreen, int unk)
  43. {
  44. _id = id;
  45. _dist = dist;
  46. _yaw = yaw;
  47. _pitch = pitch;
  48. _time = time;
  49. _duration = duration;
  50. _turn = turn;
  51. _rise = rise;
  52. _widescreen = widescreen;
  53. _unknown = unk;
  54. }
  55. @Override
  56. public void writeImpl()
  57. {
  58. writeC(0xd6);
  59. writeD(_id);
  60. writeD(_dist);
  61. writeD(_yaw);
  62. writeD(_pitch);
  63. writeD(_time);
  64. writeD(_duration);
  65. writeD(_turn);
  66. writeD(_rise);
  67. writeD(_widescreen);
  68. writeD(_unknown);
  69. }
  70. @Override
  71. public String getType()
  72. {
  73. return _S__C7_SPECIALCAMERA;
  74. }
  75. }