Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#7282) connect as orders
Home

[Freeciv-Dev] Re: (PR#7282) connect as orders

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7282) connect as orders
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 May 2004 16:13:17 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7282 >

Jason Short wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7282 >
> 
> Gregory Berkolaiko wrote:
> 
> 
>>But adding a get_moveEC to PF is easier and more benefitial.  Can you 
>>make a patch?  Raimar, do you object?
> 
> I don't think I'm qualified to make a patch.

What about the possibility of doing it "right"?

- The EC is 1 for roads, 0 (or NULL callback) for everything else.  PF 
is given an option to consider EC _before_ MC.

- The move_cost is a normal move cost.

- A new callback is added that tells how many extra turns must be spent 
at each tile (or for each move, maybe).  PF integrates this value in 
with the move_cost.

We can then not only calculate the exact "best" path but we will know 
how long it will take (which can be shown to the user).

jason




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