Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)
Home

[Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>
Cc: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Thu, 20 Dec 2001 18:09:33 +0100

Dear diary, on Thu, Dec 20, 2001 at 05:47:54PM CET, I got a letter,
where Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx> told me, that...
> On Thu, 20 Dec 2001, Petr Baudis wrote:
> > Whole pollution_cost was very anti-generalised improvements.
> 
>       This is true. However, generalised improvements hasn't touched any 
> of the AI code yet (mainly because it looks scary, and I don't want to 
> mess with it until I understand it). If and when the base code for 
> generalised improvements is added to CVS, however, I will take a look at 
> writing some suitable generalised code for the AI.
Looking forward that moment :).

> > But this is step in the right direction, IMHO, as I think it's still much
> > better than if B_FACTORY, add 100 if B_MFG, else add 50.
> 
>       Point of information: these "magic" numbers are defined in the 
> buildings ruleset.
Ah. Obviously :).

> > Generalised improvements is also reason why I'm going to skip 
> > ai_build_eval()
> > this time, as such an effort hasn't big mean for now.
> 
>       Indeed; this is the main target for generalised improvements + AI. 
> It's relatively trivial to rewrite with the current impr-gen patches so that
> it uses ruleset information; however, there are a few gotchas (mainly with
> building and effect dependencies, that kind of thing). I'm quite happy to
> rewrite this routine at some point in the not-so-distant future, however.
> Hopefully the other AI cleanup patches will make my job that little bit
> easier when I try to understand the code. ;)
That's their point :).

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv hacking
.
  "A common mistake that people make, when trying to design
   something completely foolproof is to underestimate the
   ingenuity of complete fools."
     -- Douglas Adams in Mostly Harmless
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/


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