aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/dungeons/DungeonPlayer.java
blob: b0816fb966ee6f99e4bc8b2c508be8955f78066b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.thatgravyboat.skyblockhud.dungeons;

public class DungeonPlayer {

    private final Classes dungeonClass;
    private final String name;
    private final int health;
    private final boolean dead;

    public DungeonPlayer(Classes playersClass, String playersName, int playersHealth, boolean isDead) {
        this.dungeonClass = playersClass;
        this.name = playersName;
        this.health = isDead ? 0 : playersHealth;
        this.dead = isDead;
    }

    public Classes getDungeonClass() {
        return this.dungeonClass;
    }

    public String getName() {
        return this.name;
    }

    public int getHealth() {
        return this.dead ? 0 : this.health;
    }

    public boolean isDead() {
        return this.dead;
    }
}