Q: Order of moving units with GoTo at start of the turn
Posted: Fri Oct 26, 2018 1:27 pm
Does anyone know what is the order in which units with GoTo orders are moved at the start of the turn? Is it random or it has some specific sequence?
Freeciv - because civilization should be free!
http://forum.freeciv.org/f/
Ok, just checking, the order of units is by order of acquiring? Not the ID? (usually both are the same, but I'm just checking).cazfi wrote:Order of players is random, so one does not get advantage by being player #1.
For a player, units are processed in order. This is usually the order in which the units have been acquired (built, bribed, captured). The client may proceed unit focus in the same order, as long as you don't yourself make some unit to w)ait, but I think there's cases where this is not true.
Yes, the order in which they are added to player's list of units (umh. this can actually be reverse order, haven't checked). This can be different from the order of IDs for example when one bribes enemy unit with lower ID.Corbeau wrote:Ok, just checking, the order of units is by order of acquiring? Not the ID? (usually both are the same, but I'm just checking).cazfi wrote:Order of players is random, so one does not get advantage by being player #1.
For a player, units are processed in order. This is usually the order in which the units have been acquired (built, bribed, captured). The client may proceed unit focus in the same order, as long as you don't yourself make some unit to w)ait, but I think there's cases where this is not true.
I'm not sure whether newly acquired units are added to the end or to the beginning of the list. Adding them to the beginning would probably be faster (no need to find end of the list).Corbeau wrote:Wait, it can be reverse order?