public Abilities(Bot owner, int hp, int mp) { this.hp = new StatePoint(hp); this.mp = new StatePoint(mp); this.owner = owner; DataInitialization(); }
public Abilities(Bot owner) { this.owner = owner; this.hp = new StatePoint(1); this.mp = new StatePoint(1); DataInitialization(); }
private void DataInitialization() { heat = new StatePoint(100, 100); power = 1; hp.OnValueChange += Hp_OnValueChange; heat.OnValueChange += Heat_OnValueChange; mp.OnValueChange += Mp_OnValueChange; }