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

Handles sending the fade screen packet. More...

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

Public Member Functions

boolean encode (Player player)
 SendFadeScreen (String message, int state, int seconds)
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 String message
final int seconds
final int state

Additional Inherited Members

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

Detailed Description

Handles sending the fade screen packet.

Author
Daniel

Definition at line 12 of file SendFadeScreen.java.

Constructor & Destructor Documentation

◆ SendFadeScreen()

com.runehive.net.packet.out.SendFadeScreen.SendFadeScreen ( String message,
int state,
int seconds )

Definition at line 18 of file SendFadeScreen.java.

18 {
19 super(189, PacketType.VAR_SHORT);
20 this.message = message;
21 this.state = state;
22 this.seconds = seconds;
23 }

References message, seconds, state, and com.runehive.net.packet.PacketType.VAR_SHORT.

Member Function Documentation

◆ encode()

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

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

Definition at line 26 of file SendFadeScreen.java.

26 {
27 player.interfaceManager.close();
28 builder.writeString(message)
29 .writeByte(state)
30 .writeByte(seconds);
31 return true;
32 }

References com.runehive.net.packet.OutgoingPacket.builder, com.runehive.game.world.entity.mob.player.InterfaceManager.close(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, message, seconds, and state.

Here is the call graph for this function:

Member Data Documentation

◆ message

final String com.runehive.net.packet.out.SendFadeScreen.message
private

Definition at line 14 of file SendFadeScreen.java.

Referenced by encode(), and SendFadeScreen().

◆ seconds

final int com.runehive.net.packet.out.SendFadeScreen.seconds
private

Definition at line 16 of file SendFadeScreen.java.

Referenced by encode(), and SendFadeScreen().

◆ state

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

Definition at line 15 of file SendFadeScreen.java.

Referenced by encode(), and SendFadeScreen().


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