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

Classes

enum  MinimapState
 Represents the state a minimap can be in. More...

Public Member Functions

boolean encode (Player player)
 SendMinimapState (MinimapState state)
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 MinimapState state

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendMinimapState.java.

Constructor & Destructor Documentation

◆ SendMinimapState()

com.runehive.net.packet.out.SendMinimapState.SendMinimapState ( MinimapState state)

Definition at line 10 of file SendMinimapState.java.

10 {
11 super(99, 1);
12 this.state = state;
13 }

References state.

Member Function Documentation

◆ encode()

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

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

Definition at line 16 of file SendMinimapState.java.

16 {
17 builder.writeByte(state.getCode());
18 return true;
19 }

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

Member Data Documentation

◆ state

final MinimapState com.runehive.net.packet.out.SendMinimapState.state
private

Definition at line 8 of file SendMinimapState.java.

Referenced by encode(), and SendMinimapState().


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