It’s a pretty simple question, but how long should classes be? I have created a class and wonder if it’s become too long, and maybe I should approach this another way?
Here is the class and a sample object made from it. It will be used to manipulate numbers in a practice project I am working on:
class classList {
constructor(className, hitDice, statChoice, strength, dexterity, constitution, intelligence, wisdom, charisma, skillChoice, acrobatics, animalHandling, arcana, athletics, deception, history, insight, intimidation, investigation, medicine, nature, perception, performance, persuasion, religion, sleightOfHand, stealth, survival) {
this.className = className;
this.hitDice = hitDice;
this.statChoice = statChoice;
this.strength = strength;
this.dexterity = dexterity;
this.constitution = constitution;
this.intelligence = intelligence;
this.wisdom = wisdom;
this.skillChoice = skillChoice;
this.charisma = charisma;
this.acrobatics = acrobatics;
this.animalHandling = animalHandling;
this.arcana = arcana;
this.athletics = athletics;
this.deception = deception;
this.history = history;
this.insight = insight;
this.intimidation = intimidation;
this.investigation = investigation;
this.medicine = medicine;
this.nature = nature;
this.perception = perception;
this.performance = performance;
this.persuasion = persuasion;
this.religion = religion;
this.sleightOfHand = sleightOfHand;
this.stealth = stealth;
this.survival = survival;
}
}
const artificer = new classList(`Artificer`, 8, false, false, false, true, true, false, false, 2, false, false, `choose`, false, false, `choose`, false, false, `choose`, `choose`, `choose`, `choose`, false, false, false, `choose`, false, false);