RuneHive-Game
Loading...
Searching...
No Matches
FaladorZone.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.farming.zones;
2
3import com.runehive.content.skill.impl.farming.patches.impl.AllotmentPatch;
4import com.runehive.content.skill.impl.farming.patches.impl.FlowerPatch;
5import com.runehive.content.skill.impl.farming.patches.impl.HerbPatch;
6import com.runehive.game.world.Interactable;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.position.Position;
9
10/**
11 * The Falador farming zone.
12 *
13 * @author Michael | Chex
14 */
15public class FaladorZone extends FarmingZone {
16
17 /** The Falador farming zone boundary. */
18 private static final Interactable FALADOR_BOUNDARY = Interactable.create(new Position(3049, 3302), 11, 11);
19
20 /** The northern Falador allotment patch boundary. */
21 private static final Interactable[] NORTH_ALLOTMENT_PATCH = {
22 Interactable.create(new Position(3050, 3307), 2, 6),
23 Interactable.create(new Position(3052, 3311), 3, 2)
24 };
25
26 /** The southern Falador allotment patch boundary. */
27 private static final Interactable[] SOUTH_ALLOTMENT_PATCH = {
28 Interactable.create(new Position(3055, 3303), 3, 2),
29 Interactable.create(new Position(3058, 3303), 2, 6)
30 };
31
32 /** The Falador flower patch boundary. */
33 private static final Interactable[] FLOWER_PATCH = {
34 Interactable.create(new Position(3054, 3307), 2, 2)
35 };
36
37 /** The Falador herb patch boundary. */
38 private static final Interactable[] HERB_PATCH = {
39 Interactable.create(new Position(3058, 3311), 2, 2)
40 };
41
42 public FaladorZone(Player player) {
43 super(FALADOR_BOUNDARY, 4);
44
45 FlowerPatch flowerPatch = new FlowerPatch(player, this, FLOWER_PATCH);
46 setPatch(0, new AllotmentPatch(player, this, flowerPatch, NORTH_ALLOTMENT_PATCH));
47 setPatch(1, new AllotmentPatch(player, this, flowerPatch, SOUTH_ALLOTMENT_PATCH));
48 setPatch(2, flowerPatch);
49 setPatch(3, new HerbPatch(player, this, HERB_PATCH));
50 }
51
52}
A WaterablePatch that can grow flowers and scarecrows for battling disease on an AllotmentPatch.
static final Interactable[] NORTH_ALLOTMENT_PATCH
The northern Falador allotment patch boundary.
static final Interactable[] FLOWER_PATCH
The Falador flower patch boundary.
static final Interactable[] SOUTH_ALLOTMENT_PATCH
The southern Falador allotment patch boundary.
static final Interactable[] HERB_PATCH
The Falador herb patch boundary.
static final Interactable FALADOR_BOUNDARY
The Falador farming zone boundary.
void setPatch(int index, FarmingPatch patch)
Sets a farming patch in this zone.
FarmingZone(Interactable boundary, int size)
Constructs a new farming zone.
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
An object implementing Interactable has uses.
static Interactable create(Position position)
Creates a new instance of an Interactable.