44 private Npc pyromancer;
45 private boolean snowStorm;
46 private int flameOffsetX, flameOffsetY;
49 public Brazier(
GameObject object,
Npc pyromancer,
int flameOffsetX,
int flameOffsetY,
Direction direction) {
51 this.pyromancer = pyromancer;
52 this.flameOffsetX = flameOffsetX;
53 this.flameOffsetY = flameOffsetY;
54 this.direction = direction;
61 public Npc getPyromancer() {
65 public boolean isPyromancerAlive() {
69 public int getFlameOffsetX() {
73 public int getFlameOffsetY() {
77 public boolean hasSnowStorm() {
81 public void setSnowStorm(
boolean snowStorm) {
82 this.snowStorm = snowStorm;
85 public int getBrazierState() {
86 return object.getId() == Wintertodt.EMPTY_BRAZIER_ID ? 0 :
87 (
object.getId() ==
Wintertodt.BURNING_BRAZIER_ID ? 1 : 3);
90 public void setObject(
int objectId) {
91 this.object =
new CustomGameObject(objectId, this.
object.getPosition(), this.
object.getDirection(), this.
object.getObjectType());