Пример #1
0
 public Abilities(Bot owner, int hp, int mp)
 {
     this.hp    = new StatePoint(hp);
     this.mp    = new StatePoint(mp);
     this.owner = owner;
     DataInitialization();
 }
Пример #2
0
 public Abilities(Bot owner)
 {
     this.owner = owner;
     this.hp    = new StatePoint(1);
     this.mp    = new StatePoint(1);
     DataInitialization();
 }
Пример #3
0
 private void DataInitialization()
 {
     heat                = new StatePoint(100, 100);
     power               = 1;
     hp.OnValueChange   += Hp_OnValueChange;
     heat.OnValueChange += Heat_OnValueChange;
     mp.OnValueChange   += Mp_OnValueChange;
 }