RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
CameraContext.java
1package com.osroyale.net.packet.context;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4
34
35public final class CameraContext {
36
41public static enum CameraType {
42 POSITION(166),
43 ROTATION(177),
44 SET(35),
45 SHAKE(35),
46 RESET(107);
47
51 private final int opcode;
52
57 private CameraType(int opcode) {
58 this.opcode = opcode;
59 }
60
65 public int opcode() {
66 return opcode;
67 }
68 }
69
73 private final Player player;
74
78 private final CameraType type;
79
83 private final int x;
84
88 private final int y;
89
93 private final int height;
94
98 private final int zoomSpeed;
99
103 private final int speed;
104
115 public CameraContext(Player player, CameraType type, int x, int y, int height, int speed, int zoomSpeed) {
116 this.player = player;
117 this.type = type;
118 this.x = x;
119 this.y = y;
120 this.height = height;
121 this.speed = speed;
122 this.zoomSpeed = zoomSpeed;
123 }
124
129 public Player getPlayer() {
130 return player;
131 }
132
138 return type;
139 }
140
145 public int getX() {
146 return x;
147 }
148
153 public int getY() {
154 return y;
155 }
156
161 public int getHeight() {
162 return height;
163 }
164
169 public int getSpeed() {
170 return speed;
171 }
172
177 public int getZoomSpeed() {
178 return zoomSpeed;
179 }
180}
CameraContext(Player player, CameraType type, int x, int y, int height, int speed, int zoomSpeed)