RuneHive-Game
Loading...
Searching...
No Matches
SeersJumpGapInteraction2.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.agility.obstacle.impl;
2
3import com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction;
4import com.runehive.game.world.World;
5import com.runehive.game.world.entity.mob.Direction;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.game.world.position.Position;
8
10
11 @Override
12 default void onExecution(Player player, Position start, Position end) {
13 final Position edge = new Position(start.getX(), start.getY() - 3, 3);
14 final Position finish = new Position(start.getX(), start.getY() - 4, 3);
15
16 player.face(Direction.SOUTH);
17 player.animate(2586, true);
18 World.schedule(() -> {
19 player.move(edge);
20 player.face(Direction.SOUTH);
21 player.animate(2585, true);
22 });
23 World.schedule(3, () -> {
24 player.move(finish);
25 player.face(Direction.SOUTH);
26 });
27 }
28
29}
Represents the game world.
Definition World.java:46
static void schedule(Task task)
Submits a new event.
Definition World.java:247
void move(Position position)
Moves the mob to a set position.
Definition Mob.java:340
void face(GameObject object)
Sets the client update flag to face a certain direction.
Definition Mob.java:289
This class represents a character controlled by a player.
Definition Player.java:125
Represents a single tile on the game world.
Definition Position.java:14
Represents the enumerated directions an entity can walk or face.