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

Public Member Functions

 SendToggle (int id, int value)
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 int id
final int value

Additional Inherited Members

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

Detailed Description

Definition at line 7 of file SendToggle.java.

Constructor & Destructor Documentation

◆ SendToggle()

com.runehive.net.packet.out.SendToggle.SendToggle ( int id,
int value )

Definition at line 12 of file SendToggle.java.

12 {
13 super(87, 6);
14 this.id = id;
15 this.value = value;
16 }

References id, and value.

Member Function Documentation

◆ encode()

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

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

Definition at line 19 of file SendToggle.java.

19 {
20 builder.writeShort(id, ByteOrder.LE)
21 .writeInt(value, ByteOrder.ME);
22 return true;
23 }

References com.runehive.net.packet.OutgoingPacket.builder, com.runehive.net.codec.ByteOrder.LE, com.runehive.net.codec.ByteOrder.ME, and value.

Member Data Documentation

◆ id

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

Definition at line 9 of file SendToggle.java.

Referenced by SendToggle().

◆ value

final int com.runehive.net.packet.out.SendToggle.value
private

Definition at line 10 of file SendToggle.java.

Referenced by encode(), and SendToggle().


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