ledpup / StrategyGame

2 stars 0 forks source link

Computer player: strategic move for transporting flying units #32

Closed ledpup closed 7 years ago

ledpup commented 7 years ago
ledpup commented 7 years ago

TODO: Find destination region to drop airlifted units

ledpup commented 7 years ago

TODO: have land units dis-embark as soon as they reach landfall, not at the start of the next turn - which wastes a turn for both the flier and the land unit. To do this, will need to make disembark orders executable before or after move orders.

ledpup commented 7 years ago

Done

ledpup commented 7 years ago

Adding an unload unit order to execute after a move is not a good approach because the transporter could get intercepted and stop moving but the transportee will still try to unload.

Instead, at the start of the turn, the transporter/transportee should decide to change their orders from the outset.

ledpup commented 7 years ago

Alternative solution: transportees unload at the end of a turn if they've arrived at a suitable destination - a conditional unload unit order.