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

Public Member Functions

 SendHintArrow (int type)
 SendHintArrow (Position position)
 SendHintArrow (Position position, int type)
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)

Protected Member Functions

boolean encode (Player player)

Private Attributes

final Position position
final int type

Additional Inherited Members

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

Detailed Description

Definition at line 8 of file SendHintArrow.java.

Constructor & Destructor Documentation

◆ SendHintArrow() [1/3]

com.runehive.net.packet.out.SendHintArrow.SendHintArrow ( int type)

Definition at line 13 of file SendHintArrow.java.

13 {
14 super(254, 6);
15 this.position = new Position(0, 0, 0);
16 this.type = type;
17 }

References type.

◆ SendHintArrow() [2/3]

com.runehive.net.packet.out.SendHintArrow.SendHintArrow ( Position position)

Definition at line 19 of file SendHintArrow.java.

19 {
20 super(254, 6);
21 this.position = position;
22 this.type = 2;
23 }

References position.

◆ SendHintArrow() [3/3]

com.runehive.net.packet.out.SendHintArrow.SendHintArrow ( Position position,
int type )

Definition at line 25 of file SendHintArrow.java.

25 {
26 super(254, 6);
27 this.position = position;
28 this.type = type;
29 }

References position, and type.

Member Function Documentation

◆ encode()

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

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

Definition at line 32 of file SendHintArrow.java.

32 {
33 builder.writeByte(type)
34 .writeShort(position.getX())
35 .writeShort(position.getY())
36 .writeByte(position.getHeight());
37
38 return true;
39 }

References com.runehive.net.packet.OutgoingPacket.builder, position, and type.

Member Data Documentation

◆ position

final Position com.runehive.net.packet.out.SendHintArrow.position
private

Definition at line 10 of file SendHintArrow.java.

Referenced by encode(), SendHintArrow(), and SendHintArrow().

◆ type

final int com.runehive.net.packet.out.SendHintArrow.type
private

Definition at line 11 of file SendHintArrow.java.

Referenced by encode(), SendHintArrow(), and SendHintArrow().


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