RuneHive-Game
Loading...
Searching...
No Matches
Brazier.java
Go to the documentation of this file.
1package com.runehive.content.wintertodt;
2
3import com.runehive.game.world.entity.mob.Direction;
4import com.runehive.game.world.entity.mob.npc.Npc;
5import com.runehive.game.world.object.CustomGameObject;
6import com.runehive.game.world.object.GameObject;
7
8public class Brazier {
9
11 private Npc pyromancer;
12 private boolean snowStorm;
15
17 this.object = object;
18 this.pyromancer = pyromancer;
19 this.flameOffsetX = flameOffsetX;
20 this.flameOffsetY = flameOffsetY;
21 this.direction = direction;
22 }
23
25 return object;
26 }
27
28 public Npc getPyromancer() {
29 return pyromancer;
30 }
31
32 public boolean isPyromancerAlive() {
33 return pyromancer.id == Wintertodt.PYROMANCER;
34 }
35
36 public int getFlameOffsetX() {
37 return flameOffsetX;
38 }
39
40 public int getFlameOffsetY() {
41 return flameOffsetY;
42 }
43
44 public boolean hasSnowStorm() {
45 return snowStorm;
46 }
47
48 public void setSnowStorm(boolean snowStorm) {
49 this.snowStorm = snowStorm;
50 }
51
52 public int getBrazierState() {
53 return object.getId() == Wintertodt.EMPTY_BRAZIER_ID ? 0 :
54 (object.getId() == Wintertodt.BURNING_BRAZIER_ID ? 1 : 3);
55 }
56
57 public void setObject(int objectId) {
58 this.object = new CustomGameObject(objectId, this.object.getPosition(), this.object.getDirection(), this.object.getObjectType());
59 }
60}
void setSnowStorm(boolean snowStorm)
Definition Brazier.java:48
Brazier(GameObject object, Npc pyromancer, int flameOffsetX, int flameOffsetY, Direction direction)
Definition Brazier.java:16
Represents a non-player character in the in-game world.
Definition Npc.java:29
Represents a static game object loaded from the map fs.
Represents the enumerated directions an entity can walk or face.