Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- */
- package com.l2jrcore.gameserver.network.serverpackets;
- import com.l2jrcore.gameserver.model.actor.instance.L2FenceInstance;
- /**
- * Format: (ch)ddddddd
- * d: object id
- * d: type (00 - no fence, 01 - only 4 columns, 02 - columns with fences)
- * d: x coord
- * d: y coord
- * d: z coord
- * d: width
- * d: height
- */
- public class ExColosseumFenceInfoPacket extends L2GameServerPacket
- {
- private final int _type;
- private final L2FenceInstance _activeChar;
- private final int _width;
- private final int _height;
- public ExColosseumFenceInfoPacket(L2FenceInstance activeChar)
- {
- _activeChar = activeChar;
- _type = activeChar.getType();
- _width = activeChar.getWidth();
- _height = activeChar.getHeight();
- }
- @Override
- protected void writeImpl()
- {
- writeC(0xfe);
- writeH(0x03);
- writeD(_activeChar.getObjectId());
- writeD(_type);
- writeD(_activeChar.getX());
- writeD(_activeChar.getY());
- writeD(_activeChar.getZ());
- writeD(_width);
- writeD(_height);
- }
- /* (non-Javadoc)
- * @see com.l2jrcore.gameserver.network.serverpackets.L2GameServerPacket#getType()
- */
- @Override
- public String getType()
- {
- // TODO Auto-generated method stub
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement