Advertisement
Guest User

Untitled

a guest
Jun 10th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  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.  
  16. package com.l2jrcore.gameserver.network.serverpackets;
  17.  
  18. import com.l2jrcore.gameserver.model.actor.instance.L2FenceInstance;
  19.  
  20.  
  21. /**
  22. * Format: (ch)ddddddd
  23. * d: object id
  24. * d: type (00 - no fence, 01 - only 4 columns, 02 - columns with fences)
  25. * d: x coord
  26. * d: y coord
  27. * d: z coord
  28. * d: width
  29. * d: height
  30. */
  31. public class ExColosseumFenceInfoPacket extends L2GameServerPacket
  32. {
  33. private final int _type;
  34. private final L2FenceInstance _activeChar;
  35. private final int _width;
  36. private final int _height;
  37.  
  38. public ExColosseumFenceInfoPacket(L2FenceInstance activeChar)
  39. {
  40. _activeChar = activeChar;
  41. _type = activeChar.getType();
  42. _width = activeChar.getWidth();
  43. _height = activeChar.getHeight();
  44. }
  45.  
  46. @Override
  47. protected void writeImpl()
  48. {
  49. writeC(0xfe);
  50. writeH(0x03);
  51. writeD(_activeChar.getObjectId());
  52. writeD(_type);
  53. writeD(_activeChar.getX());
  54. writeD(_activeChar.getY());
  55. writeD(_activeChar.getZ());
  56. writeD(_width);
  57. writeD(_height);
  58. }
  59.  
  60. /* (non-Javadoc)
  61. * @see com.l2jrcore.gameserver.network.serverpackets.L2GameServerPacket#getType()
  62. */
  63. @Override
  64. public String getType()
  65. {
  66. // TODO Auto-generated method stub
  67. return null;
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement