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

Public Member Functions

boolean encode (Player player)
 SendBanner (Object title, Object message, int color)
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 color
final String message
final String title

Additional Inherited Members

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

Detailed Description

Definition at line 8 of file SendBanner.java.

Constructor & Destructor Documentation

◆ SendBanner()

com.runehive.net.packet.out.SendBanner.SendBanner ( Object title,
Object message,
int color )

Definition at line 14 of file SendBanner.java.

14 {
15 super(202, PacketType.VAR_BYTE);
16 this.title = String.valueOf(title);
17 this.message = String.valueOf(message);
18 this.color = color;
19 }

References color, message, title, and com.runehive.net.packet.PacketType.VAR_BYTE.

Member Function Documentation

◆ encode()

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

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

Definition at line 22 of file SendBanner.java.

22 {
23 builder.writeString(title).writeString(message).writeInt(color);
24 return true;
25 }

References com.runehive.net.packet.OutgoingPacket.builder, color, message, and title.

Member Data Documentation

◆ color

final int com.runehive.net.packet.out.SendBanner.color
private

Definition at line 12 of file SendBanner.java.

Referenced by encode(), and SendBanner().

◆ message

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

Definition at line 11 of file SendBanner.java.

Referenced by encode(), and SendBanner().

◆ title

final String com.runehive.net.packet.out.SendBanner.title
private

Definition at line 10 of file SendBanner.java.

Referenced by encode(), and SendBanner().


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