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

Public Member Functions

 SendCameraMove (int x, int y, int z, int constantSpeed, int variableSpeed)
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 constantSpeed
final int variableSpeed
final int x
final int y
final int z

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendCameraMove.java.

Constructor & Destructor Documentation

◆ SendCameraMove()

com.runehive.net.packet.out.SendCameraMove.SendCameraMove ( int x,
int y,
int z,
int constantSpeed,
int variableSpeed )

Definition at line 13 of file SendCameraMove.java.

13 {
14 super(166, 7);
15 this.x = x;
16 this.y = y;
17 this.z = z;
18 this.constantSpeed = constantSpeed;
19 this.variableSpeed = variableSpeed;
20 }

References constantSpeed, variableSpeed, x, y, and z.

Member Function Documentation

◆ encode()

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

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

Definition at line 23 of file SendCameraMove.java.

23 {
24 builder.writeByte(x);
25 builder.writeByte(y);
26 builder.writeShort(z);
27 builder.writeByte(constantSpeed);
28 builder.writeByte(variableSpeed);
29 return true;
30 }

References com.runehive.net.packet.OutgoingPacket.builder, constantSpeed, variableSpeed, x, y, and z.

Member Data Documentation

◆ constantSpeed

final int com.runehive.net.packet.out.SendCameraMove.constantSpeed
private

Definition at line 10 of file SendCameraMove.java.

Referenced by encode(), and SendCameraMove().

◆ variableSpeed

final int com.runehive.net.packet.out.SendCameraMove.variableSpeed
private

Definition at line 11 of file SendCameraMove.java.

Referenced by encode(), and SendCameraMove().

◆ x

final int com.runehive.net.packet.out.SendCameraMove.x
private

Definition at line 7 of file SendCameraMove.java.

Referenced by encode(), and SendCameraMove().

◆ y

final int com.runehive.net.packet.out.SendCameraMove.y
private

Definition at line 8 of file SendCameraMove.java.

Referenced by encode(), and SendCameraMove().

◆ z

final int com.runehive.net.packet.out.SendCameraMove.z
private

Definition at line 9 of file SendCameraMove.java.

Referenced by encode(), and SendCameraMove().


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