JScratch
Loading...
Searching...
No Matches
DndCharacterStats.java
Go to the documentation of this file.
1package com.burrbox.dndiablo;
2
3import java.util.List;
4
5public class DndCharacterStats {
6 public static final int TINY = 0;
7 public static final int SMALL = 1;
8 public static final int MEDIUM = 2;
9 public static final int LARGE = 3;
10
11 // --- Vitality & Combat ---
12 public int maxHp;
13 public int hp;
14 public int tempHp; // Temporary hit points (don't stack, lost first)
15 public int armourClass;
16 public int initiative;
17 public int proficiency;
18 public int speed;
19 public int size;
20
21 // Death Saves (Track 0-3 for each)
24
25 // --- Ability Scores & Modifiers ---
32
33 // --- Saving Throw Proficiencies ---
34 // Boolean flags to know when to add the proficiency bonus to a save
35 public boolean profStrengthSave;
36 public boolean profDexteritySave;
37 public boolean profConstitutionSave;
38 public boolean profIntelligenceSave;
39 public boolean profWisdomSave;
40 public boolean profCharismaSave;
41
42 // --- Senses & Skills ---
43 public int passivePerception; // 10 + Wisdom Mod (+ Proficiency if applicable)
45 public int passiveInsight;
46
47 // --- Class & Resource Tracking ---
49 public int level;
50 public int currentXp;
51
52 // Hit Dice (e.g., current: 3, total: 5)
53 public int hitDiceCount;
54 public String hitDiceType; // e.g., "d10" or "d8"
55
56 // --- Magic / Spellcasting (If applicable) ---
57 public int spellSaveDC;
58 public int spellAttackBonus;
59 public int[] spellSlotsMax = new int[9]; // Index 0 = Level 1 slots
60 public int[] spellSlotsCurrent = new int[9];
61
62 // --- Equipment & Traits ---
63 // In a game like "Dndiablo," you likely need these for logic:
64 public List<String> damageResistances;
65 public List<String> damageImmunities;
66 public List<String> conditionImmunities;
67}