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