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