Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] Re: [RFC] Path finding implementation.
Home

[Freeciv-Dev] Re: [RFC] Path finding implementation.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Cc: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>, Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC] Path finding implementation.
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Sat, 06 Jul 2002 12:52:57 -0400

At 10:27 PM 02/07/01 +0200, Raimar Falke wrote:
>On Sun, Jun 30, 2002 at 06:59:55PM +0100, Gregory Berkolaiko wrote:
[..]
>> pf_next_whatever doesn't return anything abnormal, it's up to the user to 
>> get the coordinates and to figure out whether he wants to go or not.
>
>So you want a "also return paths which end in fights" flags?

Actually, this goes back to the original mistakes in design concept
that have been pointed out many times.

This is an example of problems in the "one-size-fits-all" model, vs a
structure which separates the code into a core Dijkstra algorithm and 
a user implementation to handle all the case specific aspects. A set
of basic user implementations can be provided as templates/defaults
but in general the user (such as an agent) should be able to provide 
inline code tailored or performance degraded to taste.

[...]
>       Raimar
>-- 

Cheers,
RossW
=====




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