示例#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);
 }