Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12861) evaluate_improvements simplification
Home

[Freeciv-Dev] Re: (PR#12861) evaluate_improvements simplification

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12861) evaluate_improvements simplification
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Apr 2005 14:45:47 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12861 >

On Thu, Apr 21, 2005 at 02:32:20PM -0700, Brian Dunstan wrote:
> 1. makes an iterator for unit activities
> 2. changes evaluate_improvements from a laundry list
> to an iteration over activity types
> 6. Shortens the representation of activity values in
> struct ai_city to a single array.  

These are a great idea; can you cut them out into their own patch?

> 3. moves work by consider_settler_action to
> evaluate_improvements
> 4. removes consider_settler_action
> 5. moves calculation of of climate extras
> (pplayer->ai.warmth etc) to ai_calc_pollution,
> ai_calc_fallout
> 7. Stores values in struct ai_city as the change in
> tile value from taking an action, rather than the
> absolute total after an action, to avoid an extra
> function call and calculation in evaluate_improvements

These are probably a good idea but it looks more complicated to ensure
that, as you say, behaviour is unaffected.

        -- Benoît





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