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

Handles sending the special attack amount (used for the orb). More...

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

Public Member Functions

boolean encode (Player player)
 SendSpecialAmount ()
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)

Additional Inherited Members

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

Detailed Description

Handles sending the special attack amount (used for the orb).

Author
Daniel

Definition at line 11 of file SendSpecialAmount.java.

Constructor & Destructor Documentation

◆ SendSpecialAmount()

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

Definition at line 13 of file SendSpecialAmount.java.

13 {
14 super(137, 1);
15 }

Member Function Documentation

◆ encode()

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

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

Definition at line 18 of file SendSpecialAmount.java.

18 {
19 builder.writeByte(player.getSpecialPercentage().get());
20 return true;
21 }

References com.runehive.net.packet.OutgoingPacket.builder, com.runehive.util.MutableNumber.get(), and com.runehive.game.world.entity.mob.player.Player.getSpecialPercentage().

Here is the call graph for this function:

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