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

Public Member Functions

boolean encode (Player player)
 SendScreenshot ()
 SendScreenshot (int state)
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 state

Additional Inherited Members

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

Detailed Description

Author
Daniel | Obey

Definition at line 9 of file SendScreenshot.java.

Constructor & Destructor Documentation

◆ SendScreenshot() [1/2]

com.runehive.net.packet.out.SendScreenshot.SendScreenshot ( int state)

Definition at line 12 of file SendScreenshot.java.

12 {
13 super(111, 2);
14 this.state = state;
15 }

References state.

◆ SendScreenshot() [2/2]

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

Definition at line 17 of file SendScreenshot.java.

17 {
18 this(0);
19 }

Member Function Documentation

◆ encode()

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

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

Definition at line 22 of file SendScreenshot.java.

22 {
23 builder.writeShort(state);
24 return true;
25 }

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

Member Data Documentation

◆ state

final int com.runehive.net.packet.out.SendScreenshot.state
private

Definition at line 10 of file SendScreenshot.java.

Referenced by encode(), and SendScreenshot().


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