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

Public Member Functions

boolean encode (Player player)
 SendMoveComponent (int x, int y, int id)
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 int id
final int x
final int y

Additional Inherited Members

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

Detailed Description

Definition at line 7 of file SendMoveComponent.java.

Constructor & Destructor Documentation

◆ SendMoveComponent()

com.runehive.net.packet.out.SendMoveComponent.SendMoveComponent ( int x,
int y,
int id )

Definition at line 12 of file SendMoveComponent.java.

12 {
13 super(70, 6);
14 this.x = x;
15 this.y = y;
16 this.id = id;
17 }

References id, x, and y.

Member Function Documentation

◆ encode()

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

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

Definition at line 20 of file SendMoveComponent.java.

20 {
21 builder.writeShort(x)
22 .writeShort(y, ByteOrder.LE)
23 .writeShort(id, ByteOrder.LE);
24 return true;
25 }

References com.runehive.net.packet.OutgoingPacket.builder, com.runehive.net.codec.ByteOrder.LE, x, and y.

Member Data Documentation

◆ id

final int com.runehive.net.packet.out.SendMoveComponent.id
private

Definition at line 9 of file SendMoveComponent.java.

Referenced by SendMoveComponent().

◆ x

final int com.runehive.net.packet.out.SendMoveComponent.x
private

Definition at line 10 of file SendMoveComponent.java.

Referenced by encode(), and SendMoveComponent().

◆ y

final int com.runehive.net.packet.out.SendMoveComponent.y
private

Definition at line 10 of file SendMoveComponent.java.

Referenced by encode(), and SendMoveComponent().


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