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 <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Patch to science report
From: Daniel Zinsli <s830+priv@xxxxxxxxx>
Date: 29 Jan 2000 18:45:18 +0100

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

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