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

Sends a player index to the client. More...

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

Public Member Functions

boolean encode (Player player)
 SendPlayerIndex (int index)
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 index

Additional Inherited Members

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

Detailed Description

Sends a player index to the client.

Created by Daniel on 2016-12-04.

Definition at line 11 of file SendPlayerIndex.java.

Constructor & Destructor Documentation

◆ SendPlayerIndex()

com.runehive.net.packet.out.SendPlayerIndex.SendPlayerIndex ( int index)

Definition at line 15 of file SendPlayerIndex.java.

15 {
16 super(201, 2);
17 this.index = index;
18 }
val index

References index.

Member Function Documentation

◆ encode()

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

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

Definition at line 21 of file SendPlayerIndex.java.

21 {
22 builder.writeShort(index);
23 return true;
24 }

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

Member Data Documentation

◆ index

final int com.runehive.net.packet.out.SendPlayerIndex.index
private

Definition at line 13 of file SendPlayerIndex.java.

Referenced by encode(), and SendPlayerIndex().


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