RuneHive-Game
Loading...
Searching...
No Matches
LMSLoadout.java
Go to the documentation of this file.
1package com.runehive.content.lms.loadouts;
2
3import com.runehive.content.skill.impl.magic.Spellbook;
4import com.runehive.game.world.entity.skill.Skill;
5import com.runehive.game.world.items.Item;
6import com.runehive.game.world.items.containers.ItemContainer;
7
8public abstract class LMSLoadout {
9
10 public static int[] equipmentOrder = { 0, 1, 2, 13, 3, 4, 5, 7, 9, 10, 12 };
11
13
17
19
23
24 public void setup() {
25 for(int index = 0; index < LMSLoadout.equipmentOrder.length; index++)
26 equipmentSetup.set(LMSLoadout.equipmentOrder[index], new Item(getEquipment()[index], LMSLoadout.equipmentOrder[index] == 13 ? 5000 : 1), false);
27
28 for(int index = 0; index < getInventory().length; index++) {
29 int itemId = getInventory()[index];
30 if(itemId == -1) continue;
31
32 inventorySetup.set(index, new Item(itemId), false);
33 }
34 }
35
36 protected abstract int getAttackLevel();
37
38 protected abstract int getStrengthLevel();
39
40 protected abstract int getDefenceLevel();
41
42 protected abstract int getHitpointsLevel();
43
44 protected abstract int getRangedLevel();
45
46 protected abstract int getPrayerLevel();
47
48 protected abstract int getMagicLevel();
49
50 public abstract int[] getEquipment();
51
52 public abstract int[] getInventory();
53
54 public abstract Spellbook getSpellbook();
55
56 public abstract int[][] getRunePouchRunes();
57
58 public abstract int[] getOffensiveItem();
59
60 public abstract int[] getDefensiveItem();
61
62 public abstract int[] getOffensiveItemUpgrades();
63
67
68}
The container class that represents an item that can be interacted with.
Definition Item.java:21
An abstraction game representing a group of Items.
The in-game spellbooks for players.
Definition Spellbook.java:8
An enumerated type defining policies for stackable Items.
STANDARD
The STANDARD policy, items are only stacked if they are defined as stackable in their ItemDefinition ...