RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Trap.java
1
package
com.osroyale.content.skill.impl.hunter.trap;
2
3
import
com.osroyale.game.world.entity.mob.player.Player;
4
import
com.osroyale.game.world.object.GameObject;
5
23
24
public
class
Trap {
25
27
public
enum
TrapState
{
28
SET, CAUGHT
29
}
30
32
private
GameObject
gameObject;
33
35
private
int
ticks;
36
38
private
TrapState
trapState;
39
41
Trap(
GameObject
object
,
TrapState
state,
int
ticks,
Player
owner) {
42
this.gameObject = object;
43
this.trapState = state;
44
this.ticks = ticks;
45
this.player = owner;
46
}
47
49
GameObject
getGameObject() {
50
return
gameObject;
51
}
52
54
public
int
getTicks
() {
55
return
ticks;
56
}
57
59
TrapState getTrapState() {
60
return
trapState;
61
}
62
64
public
void
setTicks
(
int
ticks) {
65
this.ticks = ticks;
66
}
67
68
private
Player
player;
69
70
public
Player
getOwner() {
71
return
player;
72
}
73
74
public
void
setOwner(
Player
player) {
75
this.player = player;
76
}
77
}
com.osroyale.content.skill.impl.hunter.trap.Trap.getTicks
int getTicks()
Definition
Trap.java:54
com.osroyale.content.skill.impl.hunter.trap.Trap.setTicks
void setTicks(int ticks)
Definition
Trap.java:64
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.content.skill.impl.hunter.trap.Trap.TrapState
Definition
Trap.java:27
com.osroyale.game.world.object.GameObject
Definition
GameObject.java:13