Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: Patch to science report
Home

[Freeciv-Dev] Re: Patch to science report

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Patch to science report
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Sat, 29 Jan 2000 13:43:17 -0500

At 2000/01/29 12:45 , Daniel Zinsli wrote:
>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.

If two iterations isn't a problem (and, I don't think it would be), then
I'd very much prefer to see two distinct functions, rather then one variant
function -- variant functions tend to be confusing.

jjm


[Prev in Thread] Current Thread [Next in Thread]