コード例 #1
0
        public ArmyPlacement(Region region, int armies)
        {
            Region = region;
            Armies = armies;

            Region.Armies += armies;
        }
コード例 #2
0
 public AttackTransfer(Region source, Region target, int armies)
 {
     Source = source;
     Target = target;
     Armies = armies;
 }
コード例 #3
0
 public static double ArmyRatio(this Region source, Region target)
 {
     return (source.Armies / (double)target.Armies);
 }