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

Public Member Functions

boolean encode (Player player)
 SendScrollbar (int scrollbar, int size)
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 scrollbar
final int size

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendScrollbar.java.

Constructor & Destructor Documentation

◆ SendScrollbar()

com.runehive.net.packet.out.SendScrollbar.SendScrollbar ( int scrollbar,
int size )

Definition at line 11 of file SendScrollbar.java.

11 {
12 super(204, 8);
13 this.scrollbar = scrollbar;
14 this.size = size;
15 }

References scrollbar, and size.

Member Function Documentation

◆ encode()

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

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

Definition at line 18 of file SendScrollbar.java.

18 {
19 builder.writeInt(scrollbar)
20 .writeInt(size);
21 return true;
22 }

References com.runehive.net.packet.OutgoingPacket.builder, scrollbar, and size.

Member Data Documentation

◆ scrollbar

final int com.runehive.net.packet.out.SendScrollbar.scrollbar
private

Definition at line 8 of file SendScrollbar.java.

Referenced by encode(), and SendScrollbar().

◆ size

final int com.runehive.net.packet.out.SendScrollbar.size
private

Definition at line 9 of file SendScrollbar.java.

Referenced by encode(), and SendScrollbar().


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