Complete.Org: Mailing Lists: Archives: freeciv-ai: May 2002:
[freeciv-ai] Re: Generalised improvements AI support
Home

[freeciv-ai] Re: Generalised improvements AI support

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-ai <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: Generalised improvements AI support
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Mon, 6 May 2002 22:29:07 +0200 (MEST)

On Mon, 6 May 2002, Raimar Falke wrote:
> > /** This goes in a Building Evaluation Agent or something **/
>
> > /* Create a virtual city out of pcity.
>
> I'm not a friend of this approach. It is neither very clean (you just
> don't which field are used and which fields needs initializing) nor
> does it extend very good (since you don't know which fields are used
> you have to set them all). I know that the other approach (passing all
> the required field as parameter or in a struct) is also not this
> nice. But it is cleaner.

I don't understand what you're driving at here, Raimar. This cloning can
be implemented with a very simple memcpy() call.

Yours,
Per

"There are 10 types of people in the world. Those who understand binary
and those who don't."



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