RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.packet.out.SendScreenMode Class Reference

Sends the screen mode state for the player. More...

Inheritance diagram for com.runehive.net.packet.out.SendScreenMode:
Collaboration diagram for com.runehive.net.packet.out.SendScreenMode:

Public Member Functions

boolean encode (Player player)
 SendScreenMode (int width, int length)
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 length
final int width

Additional Inherited Members

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

Detailed Description

Sends the screen mode state for the player.

Definition at line 10 of file SendScreenMode.java.

Constructor & Destructor Documentation

◆ SendScreenMode()

com.runehive.net.packet.out.SendScreenMode.SendScreenMode ( int width,
int length )

Definition at line 14 of file SendScreenMode.java.

14 {
15 super(108, 6);
16 this.width = width;
17 this.length = length;
18 }

References length, and width.

Member Function Documentation

◆ encode()

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

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

Definition at line 21 of file SendScreenMode.java.

21 {
22 builder.writeShort(width, ByteModification.ADD, ByteOrder.LE).writeInt(length);
23 return true;
24 }

References com.runehive.net.codec.ByteModification.ADD, com.runehive.net.packet.OutgoingPacket.builder, com.runehive.net.codec.ByteOrder.LE, length, and width.

Member Data Documentation

◆ length

final int com.runehive.net.packet.out.SendScreenMode.length
private

Definition at line 12 of file SendScreenMode.java.

Referenced by encode(), and SendScreenMode().

◆ width

final int com.runehive.net.packet.out.SendScreenMode.width
private

Definition at line 11 of file SendScreenMode.java.

Referenced by encode(), and SendScreenMode().


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