RuneHive-Game
Loading...
Searching...
No Matches
CombatObjective.java
Go to the documentation of this file.
1package com.runehive.content.bot.objective.impl;
2
3import com.runehive.content.bot.BotUtility;
4import com.runehive.content.bot.PlayerBot;
5import com.runehive.content.bot.objective.BotObjectiveListener;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.util.Utility;
8
9public class CombatObjective implements BotObjectiveListener {
10
11 @Override
12 public void init(PlayerBot bot) {
13 Player opponent = (Player) bot.getCombat().getLastAggressor();
14 bot.botClass.initCombat(opponent, bot);
15 bot.getCombat().attack(opponent);
17 bot.opponent = opponent;
18 }
19
20 @Override
21 public void finish(PlayerBot bot) {
22 }
23
24}
Holds all the constants used by bot.
static final String[] FIGHT_START_MESSAGES
Array of all the possible fight start message.
This class represents a character controlled by a player.
Definition Player.java:125
Handles miscellaneous methods.
Definition Utility.java:27
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
Definition Utility.java:248