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

Sends an enter text prompt to the player. More...

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

Public Member Functions

boolean encode (Player player)
 SendEnterText (String prompt)
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 prompt

Additional Inherited Members

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

Detailed Description

Sends an enter text prompt to the player.

Allows typing text without space closing the interface.

Author
AI Port from Elvarg

Definition at line 15 of file SendEnterText.java.

Constructor & Destructor Documentation

◆ SendEnterText()

com.runehive.net.packet.out.SendEnterText.SendEnterText ( String prompt)

Definition at line 19 of file SendEnterText.java.

19 {
20 super(187, PacketType.VAR_BYTE);
21 this.prompt = prompt;
22 }

References prompt, and com.runehive.net.packet.PacketType.VAR_BYTE.

Member Function Documentation

◆ encode()

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

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

Definition at line 25 of file SendEnterText.java.

25 {
26 builder.writeString(prompt);
27 return true;
28 }

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

Member Data Documentation

◆ prompt

final String com.runehive.net.packet.out.SendEnterText.prompt
private

Definition at line 17 of file SendEnterText.java.

Referenced by encode(), and SendEnterText().


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