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

Public Member Functions

 SendCameraTurn (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 SendCameraTurn.java.

Constructor & Destructor Documentation

◆ SendCameraTurn()

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

Definition at line 13 of file SendCameraTurn.java.

13 {
14 super(177, 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.SendCameraTurn.encode ( Player player)
protected

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

Definition at line 22 of file SendCameraTurn.java.

22 {
23 builder.writeByte(x);
24 builder.writeByte(y);
25 builder.writeShort(z);
26 builder.writeByte(constantSpeed);
27 builder.writeByte(variableSpeed);
28 return true;
29
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.SendCameraTurn.constantSpeed
private

Definition at line 10 of file SendCameraTurn.java.

Referenced by encode(), and SendCameraTurn().

◆ variableSpeed

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

Definition at line 11 of file SendCameraTurn.java.

Referenced by encode(), and SendCameraTurn().

◆ x

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

Definition at line 7 of file SendCameraTurn.java.

Referenced by encode(), and SendCameraTurn().

◆ y

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

Definition at line 8 of file SendCameraTurn.java.

Referenced by encode(), and SendCameraTurn().

◆ z

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

Definition at line 9 of file SendCameraTurn.java.

Referenced by encode(), and SendCameraTurn().


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