Rough draft for class template interface and barbs

This commit is contained in:
Joshua-Ashton01
2022-10-11 10:35:03 -06:00
parent 2fd26cf0d0
commit c79d1f0b38
6 changed files with 121 additions and 0 deletions
@@ -0,0 +1,85 @@
package com.builder;
public class Barbarian implements ClassTemplate {
private int HP;
private int numRages;
private int rageBonusDmg;
// TODO: This should be the type of die.
private int hitDie;
public Barbarian(Stats[] stats) {
}
public String getDescription() {
// TODO Auto-generated method stub
return null;
}
public String[] getProgression() {
// TODO Auto-generated method stub
return null;
}
public String[] getClassFeatures() {
// TODO Auto-generated method stub
return null;
}
public String getHitDie() {
// TODO Auto-generated method stub
return null;
}
public int getHPatLv1() {
// TODO Auto-generated method stub
return 0;
}
public int getHPpastLv1() {
// TODO Auto-generated method stub
return 0;
}
public String[] getArmorProf() {
// TODO Auto-generated method stub
return null;
}
public String[] getWeaponProf() {
// TODO Auto-generated method stub
return null;
}
public String[] getToolProf() {
// TODO Auto-generated method stub
return null;
}
public String[] availableSkills() {
// TODO Auto-generated method stub
return null;
}
public String[] startingEquipChoices() {
// TODO Auto-generated method stub
return null;
}
public boolean advantageCheck(Stats abilityScore) {
// TODO Auto-generated method stub
return false;
}
public boolean disadvantageCheck(Stats abilityScore) {
// TODO Auto-generated method stub
return false;
}
}
@@ -0,0 +1,35 @@
package com.builder;
public interface ClassTemplate {
String getDescription();
String[] getProgression();
String[] getClassFeatures();
String getHitDie();
int getHPatLv1();
int getHPpastLv1();
String[] getArmorProf();
String[] getWeaponProf();
String[] getToolProf();
// TODO: Need to refresh on how saving throws work and how the character's class may impact a saving throw.
String[] availableSkills();
String[] startingEquipChoices();
boolean advantageCheck(Stats abilityScore);
boolean disadvantageCheck(Stats abilityScore);
// TODO: Spells and shit.
}
@@ -11,6 +11,7 @@ public class Skills {
// TODO: Need to verify skills are in correct order.
private String[] allSkillsText = {"Acrobatics", "Animal Handling", "Arcana", "Athletics", "Deception", "History", "Insight", "Intimidation", "Investigation", "Medicine", "Nature", "Perception", "Performance", "Persuasion", "Religion", "Sleight of Hand", "Stealth", "Survival"};
// TODO: Prof bonus comes from the class, changes upon certain level thresholds.
private final int profBonus = 5;
private Stats[] stats;