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

Public Member Functions

boolean encode (Player player)
 SendRemoveInterface ()
 SendRemoveInterface (boolean close)
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 boolean close

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendRemoveInterface.java.

Constructor & Destructor Documentation

◆ SendRemoveInterface() [1/2]

com.runehive.net.packet.out.SendRemoveInterface.SendRemoveInterface ( boolean close)

Definition at line 10 of file SendRemoveInterface.java.

10 {
11 super(219, 1);
12 this.close = close;
13 }

References close.

◆ SendRemoveInterface() [2/2]

com.runehive.net.packet.out.SendRemoveInterface.SendRemoveInterface ( )

Definition at line 15 of file SendRemoveInterface.java.

15 {
16 this(true);
17 }

Member Function Documentation

◆ encode()

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

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

Definition at line 20 of file SendRemoveInterface.java.

20 {
21 byte val = (byte) (close ? 1 : 0);
22 builder.writeByte(val);
23 return true;
24 }

References com.runehive.net.packet.OutgoingPacket.builder, and close.

Member Data Documentation

◆ close

final boolean com.runehive.net.packet.out.SendRemoveInterface.close
private

Definition at line 8 of file SendRemoveInterface.java.

Referenced by encode(), and SendRemoveInterface().


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