Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7236) removal of most direct references to build_c
Home

[Freeciv-Dev] Re: (PR#7236) removal of most direct references to build_c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7236) removal of most direct references to build_cost
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Wed, 14 Jan 2004 15:13:55 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7236 >

> > I've made them into 
> > unit_build_value(), 
> > unit_buy_value(), 
> > unit_disband_value(), 
> 
> > improvement_build_value(),
> > improvement_buy_value(), and 
> > improvement_sell_value().
> 
> I'm not a native speaker but shouldn't this *_build_cost() and
> *_buy_cost()?
> 

I chose *_value() names because the original functions I replaced were
of the form *_value() and I wanted to stay consistent with that.

Also, using *_build_cost() implies that the function is simply a 
passthrough to the build_cost variables in the unit_type and impr_type
structs, which they are not in my accelerated production patch.

Perhaps *_build_shields() and *_buy_gold()?  That almost sounds
redundant, though.

-James Canete
-- 
_______________________________________________
http://www.ign.com
Upgrade to Premium IGN Email
- 15MB of space
- No ads!
- Pop3 Downloads

Powered by Outblaze




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