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

Public Member Functions

 SendCameraShake (int verticalAmount, int verticalSpeed, int horizontalAmount, int horizontalSpeed)
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)

Protected Member Functions

boolean encode (Player player)

Private Attributes

final int horizontalAmount
final int horizontalSpeed
final int verticalAmount
final int verticalSpeed

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendCameraShake.java.

Constructor & Destructor Documentation

◆ SendCameraShake()

com.runehive.net.packet.out.SendCameraShake.SendCameraShake ( int verticalAmount,
int verticalSpeed,
int horizontalAmount,
int horizontalSpeed )

Definition at line 12 of file SendCameraShake.java.

12 {
13 super(35, 4);
14 this.verticalAmount = verticalAmount;
15 this.verticalSpeed = verticalSpeed;
16 this.horizontalAmount = horizontalAmount;
17 this.horizontalSpeed = horizontalSpeed;
18 }

References horizontalAmount, horizontalSpeed, verticalAmount, and verticalSpeed.

Member Function Documentation

◆ encode()

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

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

Definition at line 21 of file SendCameraShake.java.

21 {
22 builder.writeByte(verticalAmount);
23 builder.writeByte(verticalSpeed);
24 builder.writeByte(horizontalAmount);
25 builder.writeByte(horizontalSpeed);
26 return true;
27 }

References com.runehive.net.packet.OutgoingPacket.builder, horizontalAmount, horizontalSpeed, verticalAmount, and verticalSpeed.

Member Data Documentation

◆ horizontalAmount

final int com.runehive.net.packet.out.SendCameraShake.horizontalAmount
private

Definition at line 9 of file SendCameraShake.java.

Referenced by encode(), and SendCameraShake().

◆ horizontalSpeed

final int com.runehive.net.packet.out.SendCameraShake.horizontalSpeed
private

Definition at line 10 of file SendCameraShake.java.

Referenced by encode(), and SendCameraShake().

◆ verticalAmount

final int com.runehive.net.packet.out.SendCameraShake.verticalAmount
private

Definition at line 7 of file SendCameraShake.java.

Referenced by encode(), and SendCameraShake().

◆ verticalSpeed

final int com.runehive.net.packet.out.SendCameraShake.verticalSpeed
private

Definition at line 8 of file SendCameraShake.java.

Referenced by encode(), and SendCameraShake().


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