Esempio n. 1
0
 public static void MoveAndAttack(Unit unit, IEnumerable <Tile> targets)
 {
     Act.Move(unit, targets.SelectMany(t => t.GetNeighbors()));
     Act.Attack(unit, targets);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }