[Freeciv-Dev] Re: (PR#7282) connect as orders
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|