RuneHive-Game
Loading...
Searching...
No Matches
MagicTeleports.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.magic.spell.impl;
2
3import com.runehive.content.skill.impl.magic.Spellbook;
4import com.runehive.game.Animation;
5import com.runehive.game.Graphic;
6import com.runehive.game.world.items.Item;
7import com.runehive.game.world.position.Position;
8import com.runehive.util.Items;
9
10public enum MagicTeleports {
11
12 CATHERBY_TELEPORT("Catherby",30250, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 10)}, new Position(2814, 3436, 0), 87, 67.5, -1),
13 MOONCLAN_TELEPORT("Moonclan",30064, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.EARTH_RUNE, 2)}, new Position(2114, 3914, 0), 69, 66, -1),
14 OURANIA_TELEPORT("Ourania", 30083, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.EARTH_RUNE, 6)}, new Position(2465, 3249, 0), 71, 69, -1),
15 BARBARIAN_TELEPORT("Barbarian",30138, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 2), new Item(Items.FIRE_RUNE, 3)}, new Position(2541, 3570, 0), 75, 76, -1),
16 FISHING_TELEPORT("Fishing",30226, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 10)}, new Position(2809, 3435, 0), 85, 89, -1),
17 ICE_PLATEAU_TELEPORT("Ice Plateau",30266, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 8)}, new Position(2971, 3936, 0), 89, 96, 53),
18 KHAZARD_TELEPORT("Khazard",30162, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 2), new Item(Items.WATER_RUNE, 4)}, new Position(2650, 3158, 0), 78, 80, -1),
19 WATERBIRTH_TELEPORT("Waterbirth", 30106, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.WATER_RUNE, 1)}, new Position(2521, 3756, 0), 72, 71, -1),
20 APE_ATOLL_TELEPORT("Ape Atoll", 18470, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 2), new Item(Items.WATER_RUNE, 2), new Item(Items.BANANA, 1), new Item(Items.LAW_RUNE, 2)}, new Position(2744, 2754, 0), 64, 74, -1),
21 ARDOUGNE_TELEPORT("Ardougne", 1540, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.WATER_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2757, 3478, 0), 51, 61, -1),
22 CAMELOT_TELEPORT("Camelot",1174, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.AIR_RUNE, 5), new Item(Items.LAW_RUNE, 1)}, new Position(2757, 3478, 0), 45, 55.5, -1),
23 FALADOR_TELEPORT("Falador",1170, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.WATER_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(2966, 3380, 0), 37, 48, -1),
24 KOUREND_TELEPORT("Kourend",-25406, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 5), new Item(Items.WATER_RUNE, 4), new Item(Items.SOUL_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(1639, 3760, 0), 69, 81.5, -1),
25 LUMBRIDGE_TELEPORT("Lumbridge",1167, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.EARTH_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(3222, 3218, 0), 31, 41, -1),
26 TROLLHEIM_TELEPORT("Trollheim",7455, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2891, 3677, 0), 61, 68, -1),
27 VARROCK_TELEPORT("Varrock",1164, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(3210, 3424, 0), 25, 35.5, -1),
28 WATCHTOWER_TELEPORT("Watchtower",1541, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.EARTH_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2583, 3096, 0), 58, 68, -1);
29
30 private final int buttonId;
31
32 private final Spellbook spellbook;
33 private final Item[] runes;
34
35 private final Position position;
36
37 private final int levelRequirement;
38 private final Graphic graphics;
39 private final Animation animation;
40 private final double experience;
41
42 private final int wildernessLevel;
43 private final String name;
44
46 this.name = name;
47 this.buttonId = buttonId;
48 this.spellbook = spellbook;
49 this.animation = animation;
50 this.graphics = graphics;
51 this.runes = runes;
52 this.position = position;
53 this.levelRequirement = levelRequirement;
54 this.experience = experience;
55 this.wildernessLevel = wildernessLevel;
56 }
57
58 public static MagicTeleports forButtonId(int buttonId) {
59 for (MagicTeleports spell : MagicTeleports.values()) {
60 if (spell.getButtonId() == buttonId) {
61 return spell;
62 }
63 }
64 return null;
65 }
66
67 public int getButtonId() {
68 return buttonId;
69 }
70
72 return position;
73 }
74
75 public double getExperience() {
76 return experience;
77 }
78 public String getName() {
79 return name;
80 }
81
82 public int getLevelRequirement() {
83 return levelRequirement;
84 }
85
86 public Item[] getRunes() {
87 return runes;
88 }
89
91 return animation;
92 }
94 return graphics;
95 }
96
98 return spellbook;
99 }
100
101 public int getWildernessLevel() {
102 return wildernessLevel;
103 }
104}
Class that models a single animation used by an entity.
static final Animation LUNAR_TELE
static final Animation NORMAL_TELE
Represents a single graphic that can be used by entities.
Definition Graphic.java:10
static final Graphic LUNAR_TELE
Definition Graphic.java:19
static final Graphic NORMAL_TELE
Definition Graphic.java:18
The container class that represents an item that can be interacted with.
Definition Item.java:21
Represents a single tile on the game world.
Definition Position.java:14
The in-game spellbooks for players.
Definition Spellbook.java:8
MagicTeleports(String name, int buttonId, Spellbook spellbook, Animation animation, Graphic graphics, Item[] runes, Position position, int levelRequirement, double experience, int wildernessLevel)