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

Public Member Functions

 SendChatOption (PrivacyChatMode publicChat, PrivacyChatMode privateChat, PrivacyChatMode clanChat, PrivacyChatMode tradeChat)
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)

Protected Member Functions

boolean encode (Player player)

Private Attributes

final PrivacyChatMode clanChat
final PrivacyChatMode privateChat
final PrivacyChatMode publicChat
final PrivacyChatMode tradeChat

Additional Inherited Members

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

Detailed Description

Definition at line 7 of file SendChatOption.java.

Constructor & Destructor Documentation

◆ SendChatOption()

com.runehive.net.packet.out.SendChatOption.SendChatOption ( PrivacyChatMode publicChat,
PrivacyChatMode privateChat,
PrivacyChatMode clanChat,
PrivacyChatMode tradeChat )

Definition at line 14 of file SendChatOption.java.

14 {
15 super(206, 4);
16 this.publicChat = publicChat;
17 this.privateChat = privateChat;
18 this.clanChat = clanChat;
19 this.tradeChat = tradeChat;
20 }

References clanChat, privateChat, publicChat, and tradeChat.

Member Function Documentation

◆ encode()

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

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

Definition at line 23 of file SendChatOption.java.

23 {
24 builder.writeByte(publicChat.getCode())
25 .writeByte(privateChat.getCode())
26 .writeByte(clanChat.getCode())
27 .writeByte(tradeChat.getCode());
28 return true;
29 }

References com.runehive.net.packet.OutgoingPacket.builder, clanChat, privateChat, publicChat, and tradeChat.

Member Data Documentation

◆ clanChat

final PrivacyChatMode com.runehive.net.packet.out.SendChatOption.clanChat
private

Definition at line 11 of file SendChatOption.java.

Referenced by encode(), and SendChatOption().

◆ privateChat

final PrivacyChatMode com.runehive.net.packet.out.SendChatOption.privateChat
private

Definition at line 10 of file SendChatOption.java.

Referenced by encode(), and SendChatOption().

◆ publicChat

final PrivacyChatMode com.runehive.net.packet.out.SendChatOption.publicChat
private

Definition at line 9 of file SendChatOption.java.

Referenced by encode(), and SendChatOption().

◆ tradeChat

final PrivacyChatMode com.runehive.net.packet.out.SendChatOption.tradeChat
private

Definition at line 12 of file SendChatOption.java.

Referenced by encode(), and SendChatOption().


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