Factories produce new units or repair existing ones; if you have an adjacent transport you can produce multiple units: one straight into transport and other on the field.Terrain affects combat depending on type and orientation to target, i.e. attacking from a position above your opponent.