RuneHive-Game
Loading...
Searching...
No Matches
WildernessDitchObjective.java
Go to the documentation of this file.
1package com.runehive.content.bot.objective.impl;
2
3import com.runehive.content.bot.PlayerBot;
4import com.runehive.content.bot.objective.BotObjective;
5import com.runehive.content.bot.objective.BotObjectiveListener;
6import com.runehive.game.world.entity.mob.Direction;
7import com.runehive.game.world.position.Position;
8import com.runehive.util.RandomUtils;
9
11
12 @Override
13 public void init(PlayerBot bot) {
14 int x = RandomUtils.inclusive(3083, 3108);
15 Position position = Position.create(x, 3520);
16 bot.walkTo(position, () -> finish(bot));
17 }
18
19 @Override
20 public void finish(PlayerBot bot) {
21 bot.face(Direction.NORTH);
22 bot.forceMove(3, 6132, 33, 60, new Position(0, 4), Direction.NORTH);
23 bot.schedule(4, () -> BotObjective.WALK_IN_WILDERNESS.init(bot));
24 }
25
26}
Represents a single tile on the game world.
Definition Position.java:14
static Position create(int x, int y, int z)
Creates a location.
A static-util class that provides additional functionality for generating pseudo-random numbers.
static int inclusive(int min, int max)
Returns a pseudo-random int value between inclusive min and inclusive max.
Represents the enumerated directions an entity can walk or face.