Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_de
Home

[Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_de

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Petr Baudis <pasky@xxxxxxxxxxx>
Cc: Raahul Kumar <raahul_da_man@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] [1.2] move some common AI equations to kill_desire() (PR#1279)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Feb 2002 16:07:14 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Feb 25, 2002 at 03:31:38PM +0100, Petr Baudis wrote:
> Dear diary, on Mon, Feb 25, 2002 at 03:23:59PM CET, I got a letter,
> where Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> told me, that...
> > On Mon, Feb 25, 2002 at 02:47:01PM +0100, Petr Baudis wrote:
> > >  
> > > /**************************************************************************
> > > +Compute how much we want to kill certain victim we've chosen.
> > 
> > FIXME: The caller only provides values for one victim (the best
> > defender). Victim count is used to compensate for the missing
> > information.
>   
> /\----------------------------------------------------------------------------------\
>   
> \----------------------------------------------------------------------------------\
>  \
>                                                                               
>         \ \
> > > +Benefit is something like 'attractiveness' of the victim, how nice it 
> > > would be   | |
> > > +to destroy it. Larger value, worse loss for enemy.                       
> > >         | |
> > > +                                                                         
> > >         | |
> > > +Attack is the total possible attack power we can throw on the victim. 
> > > Note that  | |
> > > +we will even square this.                                                
> > >         | |
> > > +                                                                         
> > >         | |
> > > +Loss is the possible loss when we would lose the unit we want to attack. 
> > >         | |
> > > +                                                                         
> > >         | |
> > > +Vuln is vulnerability of our unit when attacking the enemy.              
> > >         | |
> > > +                                                                         
> > >         / /
> > > +Victim count is number of victims stacked in the target tile. FIXME?: 
> > > The       / /
> > > +equation is not accurate as the other values can vary for other units on 
> > > the   <_/
> > > +target tile (we take values from best defender), however I believe it's
> > > +accurate just enough now and lost speed isn't worth that.
> > > +**************************************************************************/

I know. But it should be state on top because "victim" is used in the
middle of the text.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Tank: So what do you need? Besides a miracle.
  Neo: Guns. Lots of guns.
    -- From The Matrix


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