/* * Overriden onstructor for loading saved game * @Param int number of unallocated points * @Param StatSta - holds the details for the stamina player stat * @Param StatStr - holds the details for the strength player stat * @Param StatDex - holds the details for the dexterity player stat * @Param StatDef - holds the details for the defensive player stat */ public PlayerStats(int unallocatedPts, StatSta sta, StatStr str, StatDex dex, StatDef def) { this.unallocatedPts = unallocatedPts; this.sta = sta; this.str = str; this.dex = dex; this.def = def; }
/* * Constructor for a new game */ public PlayerStats() { unallocatedPts = 10; sta = new StatSta(); str = new StatStr(); dex = new StatDex(); def = new StatDef(); }