Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: goto/autoattack rant...
Home

[Freeciv-Dev] Re: goto/autoattack rant...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Reinier Post <rp@xxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: goto/autoattack rant...
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Tue, 29 Jan 2002 14:55:14 +0000 (GMT)

 --- Reinier Post <rp@xxxxxxxxxx> wrote: 
> On Mon, Jan 28, 2002 at 02:50:27PM -0500, Jonathan Claggett wrote:
> 
> > I have a quick question about the current goto behavior. Is the route
> chosen
> > by the goto function plotted out in advance or does the goto function
> > re-evaluate the optimal route each round? In other words, is this a
> static
> > or dynamic function?
> 
> It must be dynamic, because of changes in ZOC and terrain.
> Also there is no obvious way to preserve and reuse information between
> turns even when little has changed.  At least I can't think of one.

Path is stored in the struct goto_route, see e.g.
http://www.freeciv.org/lxr/source/server/savegame.c?v=cvs#L987

This is reasonable once the path has been agreed with the human player.

AI route is very dynamic.  Even the destination can change from turn to turn.

__________________________________________________
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]