[Freeciv-Dev] Re: Patch to science report
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I'm having some thoughts on implementing functions to get
turns_per_research and turns_to_complete_research.
Implementing this as two functions would mean we would have to iterate
through the cities twice, which could be costly, am I right?
Implementing this as one would require us to send in some pointers,
because we would need both numbers in the science dialog.
If two iterations isn't a big issue int tech_turns_to_research (struct
player*, int bulbs) would be nice, bulbs would be 0 to get
turns_per_research, pplayer->research.researched to get turns left.
Any advice?
--
Daniel Zinsli
University of Bergen, Norway
Finger s830@xxxxxxxxxxxxxxx for more info
|
|