class gal_formation
The gal_formation
class derived from formation
class.
The difference between formation
object and a gal_formation
object that the later has added the following:
gal_formation
has the element of attack, thus formation
members leave the formation
and charge down on attack.
This is done by creating a gal_attack
instance that takes control of the attacking items.
When attack is done, the control is back to the gal_formation
and the gal_attack
object is disposed.
Handling all logic is done in gal_formation::action()
method.