コード例 #1
0
 public static void MoveAndAttack(Unit unit, IEnumerable <Tile> targets)
 {
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors()));
     Act.Attack(unit, targets);
 }
コード例 #2
0
 public static void MoveAndRestAndHarvest(Unit unit, IEnumerable <Tile> targets)
 {
     MoveAndRest(unit, unit.GetActionCost());
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors().Concat(t)));
     Act.Harvest(unit, targets);
 }
コード例 #3
0
 public static void MoveAndRestAndDrop(Unit unit, IEnumerable <Tile> targets, string resource)
 {
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors().Concat(t)));
     Act.Drop(unit, targets, resource);
 }
コード例 #4
0
 public static void MoveAndRestAndDeconstruct(Unit unit, IEnumerable <Tile> targets)
 {
     MoveAndRest(unit, unit.GetActionCost());
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors()));
     Act.Deconstruct(unit, targets);
 }
コード例 #5
0
 public static void MoveAndRestAndConvert(Unit unit, IEnumerable <Unit> targets)
 {
     MoveAndRest(unit, unit.GetActionCost());
     Act.Move(unit, targets.SelectMany(t => t.Tile.GetNeighbors()));
     Act.Convert(unit, targets);
 }
コード例 #6
0
 public static void MoveAndRestAndConstruct(Unit unit, IEnumerable <Tile> targets, string type)
 {
     MoveAndRest(unit, unit.GetActionCost());
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors().Concat(t)));
     Act.Construct(unit, targets, type);
 }