RuneHive-Game
Loading...
Searching...
No Matches
WintertodtAction.java
Go to the documentation of this file.
1
package
com.runehive.content.wintertodt;
2
3
import
com.runehive.game.action.Action;
4
import
com.runehive.game.action.policy.WalkablePolicy;
5
import
com.runehive.game.world.entity.mob.player.Player;
6
7
public
class
WintertodtAction
extends
Action
<Player> {
8
9
public
WintertodtAction
(
Player
player) {
10
super(player, 1);
11
}
12
13
@Override
14
public
WalkablePolicy
getWalkablePolicy
() {
15
return
WalkablePolicy
.
NON_WALKABLE
;
16
}
17
18
@Override
19
public
String
getName
() {
20
return
"Wintertodt interuptable action"
;
21
}
22
23
@Override
24
protected
void
execute
() {
25
26
}
27
}
com.runehive.content.wintertodt.WintertodtAction.getName
String getName()
Gets the name of this action.
Definition
WintertodtAction.java:19
com.runehive.content.wintertodt.WintertodtAction.WintertodtAction
WintertodtAction(Player player)
Definition
WintertodtAction.java:9
com.runehive.content.wintertodt.WintertodtAction.execute
void execute()
A function representing the unit of work that will be carried out.
Definition
WintertodtAction.java:24
com.runehive.content.wintertodt.WintertodtAction.getWalkablePolicy
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
Definition
WintertodtAction.java:14
com.runehive.game.action.Action.Action
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
Definition
Action.java:24
com.runehive.game.world.entity.mob.player.Player
This class represents a character controlled by a player.
Definition
Player.java:125
com.runehive.game.action.policy.WalkablePolicy
A queue policy determines whether the action can occur while walking.
Definition
WalkablePolicy.java:9
com.runehive.game.action.policy.WalkablePolicy.NON_WALKABLE
NON_WALKABLE
This indicates actions cannot occur while walking.
Definition
WalkablePolicy.java:15