This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building doesn't ever use treasury?


>So far, almost every command I've documented in actions.c (about 1/2 way
>through), checks to see if the teasury can be used to supply materials.
>However; do_build_action expects all the materials to be supplied by the
>building unit.

The advanced unit code (which is where the treasury comes into play) uses
what is known these days as "creative accounting". Thus, before the action,
the side transfers all its assets to the unit in question so that it looks
much richer than it is. Then it immediately takes any remaining assets
back. Check out take_all_from_treasury and give_all_to_treasury in run.c.

Hans

Hans Ronne

hronne@pp.sbbs.se



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]