Example #1
0
 public HitPointsChart(HitPoints hit_points)
 {
     this.hit_points = hit_points;
     angle = HPToDegrees (hit_points);
 }
Example #2
0
 private int HPToDegrees(HitPoints hp)
 {
     return (int) (hp.AsDouble * 360);
 }
Example #3
0
 public void CreationWithBadArguments()
 {
     hp = new HitPoints (10, 5);
 }
Example #4
0
 private void OnChanged(HitPoints old)
 {
     Changed.Raise (this, args => { args.OldHitPoints = old; });
 }
Example #5
0
 public void Setup()
 {
     hp = new HitPoints (25, 30);
 }