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

Public Member Functions

boolean encode (Player player)
 SendInterfaceAnimation (int interfaceId, int animationId)
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 animationId
final int interfaceId

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendInterfaceAnimation.java.

Constructor & Destructor Documentation

◆ SendInterfaceAnimation()

com.runehive.net.packet.out.SendInterfaceAnimation.SendInterfaceAnimation ( int interfaceId,
int animationId )

Definition at line 11 of file SendInterfaceAnimation.java.

11 {
12 super(200, 4);
13 this.interfaceId = interfaceId;
14 this.animationId = animationId;
15 }

References animationId, and interfaceId.

Member Function Documentation

◆ encode()

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

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

Definition at line 18 of file SendInterfaceAnimation.java.

18 {
19 builder.writeShort(interfaceId)
20 .writeShort(animationId);
21 return true;
22 }

References animationId, com.runehive.net.packet.OutgoingPacket.builder, and interfaceId.

Member Data Documentation

◆ animationId

final int com.runehive.net.packet.out.SendInterfaceAnimation.animationId
private

Definition at line 9 of file SendInterfaceAnimation.java.

Referenced by encode(), and SendInterfaceAnimation().

◆ interfaceId

final int com.runehive.net.packet.out.SendInterfaceAnimation.interfaceId
private

Definition at line 8 of file SendInterfaceAnimation.java.

Referenced by encode(), and SendInterfaceAnimation().


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