コード例 #1
0
 public Unit(PointsRange attackPoints, PointsRange defence, int healthPoints, int squareMovements, Cost cost)
 {
     this.AttackPoints    = attackPoints;
     this.Defence         = defence;
     this.HealthPoints    = healthPoints;
     this.SquareMovements = squareMovements;
     this.Cost            = cost;
 }
コード例 #2
0
 public Unit(PointsRange attackPoints, PointsRange defence, int healthPoints, int squareMovements, Cost cost, Image image, string name, int count)
     : base(name, 0, 0)
 {
     this.AttackPoints    = attackPoints;
     this.Defence         = defence;
     this.HealthPoints    = healthPoints;
     this.SquareMovements = squareMovements;
     this.Cost            = cost;
     this.Image           = image;
     this.Count           = count;
 }