public void increment(int str, int dex, int s_int, int watt, int matt, int health, int mana, int exp, int level, int money, UIStats uistats) { this.s_str += str; this.s_dex += dex; this.s_int += s_int; this.s_watt += watt; this.s_matt += matt; this.health += health; this.mana += mana; this.exp += exp; this.level += level; this.money += money; uistats.update(this); }
public void updateStats(PlayerStats stats) { this.stats = stats; this.UIPlayer.updateInfo(); uiStats.update(this.stats); }