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: rf13@xxxxxxxxxxxxxxxxxxxxxx
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: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Mon, 25 Feb 2002 15:31:38 +0100

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.
> > +**************************************************************************/

-- 

                                Petr "Pasky" Baudis

* elinks maintainer                * IPv6 guy (XS26 co-coordinator)
* IRCnet operator                  * FreeCiv AI hacker
.
No one can feel as helpless as the owner of a sick goldfish.
.
Public PGP key && geekcode && homepage: http://pasky.ji.cz/~pasky/


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