RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.packet.out.SendRemoveObject Class Reference
Inheritance diagram for com.runehive.net.packet.out.SendRemoveObject:
Collaboration diagram for com.runehive.net.packet.out.SendRemoveObject:

Public Member Functions

boolean encode (Player player)
 SendRemoveObject (GameObject object)
Public Member Functions inherited from com.runehive.net.packet.OutgoingPacket
void execute (Player player)
 OutgoingPacket (int opcode, int capacity)
 OutgoingPacket (int opcode, PacketType type)
 OutgoingPacket (int opcode, PacketType type, int size)

Private Attributes

final GameObject object

Additional Inherited Members

Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket
final PacketBuilder builder

Detailed Description

Definition at line 8 of file SendRemoveObject.java.

Constructor & Destructor Documentation

◆ SendRemoveObject()

com.runehive.net.packet.out.SendRemoveObject.SendRemoveObject ( GameObject object)

Definition at line 12 of file SendRemoveObject.java.

12 {
13 super(101, 2);
14 this.object = object;
15 }

References object.

Member Function Documentation

◆ encode()

boolean com.runehive.net.packet.out.SendRemoveObject.encode ( Player player)

Reimplemented from com.runehive.net.packet.OutgoingPacket.

Definition at line 18 of file SendRemoveObject.java.

18 {
19 player.send(new SendCoordinate(object.getPosition()));
20 builder.writeByte(object.getObjectType().getId() << 2 | (object.getDirection().getId() & 3), ByteModification.NEG)
21 .writeByte(0);
22 return true;
23 }

References com.runehive.net.packet.OutgoingPacket.builder, com.runehive.net.codec.ByteModification.NEG, and com.runehive.game.world.entity.mob.player.Player.send().

Here is the call graph for this function:

Member Data Documentation

◆ object

final GameObject com.runehive.net.packet.out.SendRemoveObject.object
private

Definition at line 10 of file SendRemoveObject.java.

Referenced by SendRemoveObject().


The documentation for this class was generated from the following file: