RuneHive-Game
Loading...
Searching...
No Matches
BuildableObject.java
Go to the documentation of this file.
1
package
com.runehive.content.skill.impl.construction;
2
3
import
com.runehive.game.world.items.Item;
4
5
import
java.util.ArrayList;
6
import
java.util.List;
7
8
/**
9
* Holds all the construction buildable object.
10
*
11
* @author Daniel
12
*/
13
public
enum
BuildableObject
{
14
/* Main object. */
15
CRATE
(
"Crate"
,
BuildableType
.
MAIN_OBJECT
, 1, 100, 1,
new
Item
(960, 1)),
16
STOOL
(
"Stool"
,
BuildableType
.
MAIN_OBJECT
, 1102, 250, 5,
new
Item
(960, 2)),
17
BOOKCASE
(
"Bookcase"
,
BuildableType
.
MAIN_OBJECT
, 12282, 450, 8,
new
Item
(960, 4)),
18
MARKET_STALL
(
"Market stall"
,
BuildableType
.
MAIN_OBJECT
, 1539, 600, 9,
new
Item
(960, 3),
new
Item
(8790, 1)),
19
COFFIN
(
"Coffin"
,
BuildableType
.
MAIN_OBJECT
, 398, 750, 10,
new
Item
(960, 2),
new
Item
(2353, 1),
new
Item
(1325, 2)),
20
TABLE
(
"Table"
,
BuildableType
.
MAIN_OBJECT
, 595, 900, 15,
new
Item
(960, 5)),
21
PILLAR
(
"Pillar"
,
BuildableType
.
MAIN_OBJECT
, 7016, 975, 18,
new
Item
(2351, 5)),
22
CHAIR
(
"Chair"
,
BuildableType
.
MAIN_OBJECT
, 6195, 1000, 22,
new
Item
(2351, 3),
new
Item
(8790, 1)),
23
KITCHEN_SINK
(
"Kitchen sink"
,
BuildableType
.
MAIN_OBJECT
, 12279, 2500, 40,
new
Item
(960, 2),
new
Item
(2353, 3)),
24
GRANDFATHER_CLOCK
(
"Grandfather clock"
,
BuildableType
.
MAIN_OBJECT
, 12293, 2750, 45,
new
Item
(960, 3),
new
Item
(2357)),
25
PRAYER_ALTAR
(
"Prayer altar"
,
BuildableType
.
MAIN_OBJECT
, 409, 4000, 50,
new
Item
(960, 3),
new
Item
(1718, 1)),
26
CRYSTAL_CHEST
(
"Crystal chest"
,
BuildableType
.
MAIN_OBJECT
, 2191, 5000, 75,
new
Item
(960, 5),
new
Item
(989, 10)),
27
BANK_BOOTH
(
"Bank booth"
,
BuildableType
.
MAIN_OBJECT
, 11744, 10000, 90,
new
Item
(20527, 250000),
new
Item
(960, 10),
new
Item
(1775, 5)),
28
29
/* Skill object. */
30
TREE
(
"Tree"
,
BuildableType
.
SKILL_OBJECT
, 1278, 950, 15,
new
Item
(8419, 1),
new
Item
(1511, 5)),
31
OAK_TREE
(
"Oak tree"
,
BuildableType
.
SKILL_OBJECT
, 11756, 1250, 25,
new
Item
(8421, 1),
new
Item
(1521, 5)),
32
33
/* Miscellaneous object. */
34
35
36
;
37
38
private
final
String
name
;
39
private
final
BuildableType
type
;
40
private
final
int
object
;
41
private
final
int
level
;
42
private
final
int
experience
;
43
private
final
Item
[]
items
;
44
45
BuildableObject
(String
name
,
BuildableType
type
,
int
object
,
int
experience
,
int
level
,
Item
...
items
) {
46
this.name =
name
;
47
this.type =
type
;
48
this.object =
object
;
49
this.level =
level
;
50
this.experience =
experience
;
51
this.items =
items
;
52
}
53
54
public
String
getName
() {
55
return
name
;
56
}
57
58
public
BuildableType
getType
() {
59
return
type
;
60
}
61
62
public
int
getLevel
() {
63
return
level
;
64
}
65
66
public
int
getExperience
() {
67
return
experience
;
68
}
69
70
public
int
getObject
() {
71
return
object
;
72
}
73
74
public
Item
[]
getItems
() {
75
return
items
;
76
}
77
78
public
static
List<BuildableObject>
get
(
BuildableType
type
) {
79
List<BuildableObject> object_list =
new
ArrayList<>();
80
for
(
BuildableObject
object
: values()) {
81
if
(
object
.
type
==
type
) {
82
object_list.add(
object
);
83
}
84
}
85
return
object_list;
86
}
87
}
com.runehive.game.world.items.Item
The container class that represents an item that can be interacted with.
Definition
Item.java:21
com.runehive.content.skill.impl.construction.BuildableObject.GRANDFATHER_CLOCK
GRANDFATHER_CLOCK
Definition
BuildableObject.java:24
com.runehive.content.skill.impl.construction.BuildableObject.PILLAR
PILLAR
Definition
BuildableObject.java:21
com.runehive.content.skill.impl.construction.BuildableObject.object
final int object
Definition
BuildableObject.java:40
com.runehive.content.skill.impl.construction.BuildableObject.experience
final int experience
Definition
BuildableObject.java:42
com.runehive.content.skill.impl.construction.BuildableObject.MARKET_STALL
MARKET_STALL
Definition
BuildableObject.java:18
com.runehive.content.skill.impl.construction.BuildableObject.items
final Item[] items
Definition
BuildableObject.java:43
com.runehive.content.skill.impl.construction.BuildableObject.TREE
TREE
Definition
BuildableObject.java:30
com.runehive.content.skill.impl.construction.BuildableObject.CRYSTAL_CHEST
CRYSTAL_CHEST
Definition
BuildableObject.java:26
com.runehive.content.skill.impl.construction.BuildableObject.getObject
int getObject()
Definition
BuildableObject.java:70
com.runehive.content.skill.impl.construction.BuildableObject.getName
String getName()
Definition
BuildableObject.java:54
com.runehive.content.skill.impl.construction.BuildableObject.type
final BuildableType type
Definition
BuildableObject.java:39
com.runehive.content.skill.impl.construction.BuildableObject.KITCHEN_SINK
KITCHEN_SINK
Definition
BuildableObject.java:23
com.runehive.content.skill.impl.construction.BuildableObject.BOOKCASE
BOOKCASE
Definition
BuildableObject.java:17
com.runehive.content.skill.impl.construction.BuildableObject.TABLE
TABLE
Definition
BuildableObject.java:20
com.runehive.content.skill.impl.construction.BuildableObject.getType
BuildableType getType()
Definition
BuildableObject.java:58
com.runehive.content.skill.impl.construction.BuildableObject.PRAYER_ALTAR
PRAYER_ALTAR
Definition
BuildableObject.java:25
com.runehive.content.skill.impl.construction.BuildableObject.level
final int level
Definition
BuildableObject.java:41
com.runehive.content.skill.impl.construction.BuildableObject.BuildableObject
BuildableObject(String name, BuildableType type, int object, int experience, int level, Item... items)
Definition
BuildableObject.java:45
com.runehive.content.skill.impl.construction.BuildableObject.STOOL
STOOL
Definition
BuildableObject.java:16
com.runehive.content.skill.impl.construction.BuildableObject.getItems
Item[] getItems()
Definition
BuildableObject.java:74
com.runehive.content.skill.impl.construction.BuildableObject.getExperience
int getExperience()
Definition
BuildableObject.java:66
com.runehive.content.skill.impl.construction.BuildableObject.getLevel
int getLevel()
Definition
BuildableObject.java:62
com.runehive.content.skill.impl.construction.BuildableObject.BANK_BOOTH
BANK_BOOTH
Definition
BuildableObject.java:27
com.runehive.content.skill.impl.construction.BuildableObject.name
final String name
Definition
BuildableObject.java:38
com.runehive.content.skill.impl.construction.BuildableObject.COFFIN
COFFIN
Definition
BuildableObject.java:19
com.runehive.content.skill.impl.construction.BuildableObject.CRATE
CRATE
Definition
BuildableObject.java:15
com.runehive.content.skill.impl.construction.BuildableObject.OAK_TREE
OAK_TREE
Definition
BuildableObject.java:31
com.runehive.content.skill.impl.construction.BuildableObject.CHAIR
CHAIR
Definition
BuildableObject.java:22
com.runehive.content.skill.impl.construction.BuildableType
Definition
BuildableType.java:3
com.runehive.content.skill.impl.construction.BuildableType.MAIN_OBJECT
MAIN_OBJECT
Definition
BuildableType.java:4
com.runehive.content.skill.impl.construction.BuildableType.SKILL_OBJECT
SKILL_OBJECT
Definition
BuildableType.java:5