|
From: | Quinn Yee Qin Teh |
Subject: | Re: [glob2-devel] questions about code |
Date: | Sun, 12 Oct 2008 06:14:16 +1100 |
Okay.. so I presume that subscribeToBringRessourcesStep() uses if (((Sint32)unitsWorking.size()<desiredMaxUnitWorking) to let as many buildings get some workers as possible, instead of several buildings hogging up all the workers, is that correct? If that's the case, why does subscribeToBringRessourcesStep() use while (((Sint32)unitsWorking.size()<desiredMaxUnitWorking)) instead of the if statement like subscribeToBringRessourcesStep()?Thanks.
On Thu, Oct 9, 2008 at 6:16 AM, Bradley Arsenault <address@hidden> wrote:_______________________________________________Its because subscribeForFlagingStep and subscribetoBringRessourcesStep only subscribe one unit. Goes through all the buildings multiple times, until all units that can be hired are.
--
Extra cheese comes at a cost. Bradley Arsenault.
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel
[Prev in Thread] | Current Thread | [Next in Thread] |