Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [PATCH] aiunit.c ai_military_findvictim() cleanup (PR#
Home

[Freeciv-Dev] Re: [PATCH] aiunit.c ai_military_findvictim() cleanup (PR#

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: Petr Baudis <pasky@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] aiunit.c ai_military_findvictim() cleanup (PR#1264)
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Feb 2002 09:33:39 -0600

On Fri, Feb 22, 2002 at 03:17:22PM +0000, Gregory Berkolaiko wrote:
>  --- Petr Baudis <pasky@xxxxxxxxxxx> wrote: 
> > Dear diary, on Fri, Feb 22, 2002 at 02:02:55PM CET, I got a letter,
> > where Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx> told me, that...
> [....]
> > > > > why put TODO when you can DO?
> > > > > 
> > > > > use is_non_allied_city_tile
> > > > 
> > > > We meant cities of nations which are in peace with us.
> > > 
> > > how about is_enemy_city_tile then?
> > 
> > Much better. However, we should still consider at least possibility to move
> > to empty cities of nations which are in peace with us - because the empty 
> > city can
> > have more value than a peace. Implanting some test there now and hiding the
> > possible place for test isn't IMHO a good idea.

this is true, but we shouldn't be looking for this in a find_victim function.
If a unit needs to heal or defend or something, it should be looking in 
another function.

> 
> okay, makes sense.
> 
> although i seem to remember that in payciv you can occupy an undefended enemy
> city without declaring war...  maybe it's a false memory.
> 
> however I would still change it to is_non_allied_city_tile  AND add a TODO.
> I know AI are not allying but one can consievably change this without
> introducing diplomacy, e.g. in savegames.

this sounds worthwhile.

> G.

Greg: your snide commentary on the English language got cut by listar. Too
bad, it shoulda been shared. _I_ wouldn't have called it excessively obscene :)

-mike

> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com


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