Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] Re: (PR#4326) Pathfinding
Home

[Freeciv-Dev] Re: (PR#4326) Pathfinding

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4326) Pathfinding
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 6 Jun 2003 10:01:26 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, Jun 03, 2003 at 02:12:29PM -0700, ChrisK@xxxxxxxx wrote:
> On Tue, Jun 03, 2003 at 01:21:04PM -0700, Raimar Falke wrote:
> > On Sat, May 31, 2003 at 12:20:49PM -0700, ChrisK@xxxxxxxx wrote:
> > > 
> > > Problem No. 3:
> > > 
> > > With the old code, I was able to send a land unit (not marine) from a ship
> > > into an empty enemy city. It knew that the direct way was impossible and 
> > > did
> > > chose a way from ship onto land, from land into city.
> > > 
> > > The new code throws an error: only marines can attack from sea.
> > 
> > This seems interresting. It should find the correct path. Do you have
> > a savegame?
> 
> Attack Lahore.

I see. The solution is to use unit.c:test_unit_move_to_tile in
pft.c:normal_move_unit. However this isn't easy since we don't have
the unit type which test_unit_move_to_tile
wants. test_unit_move_to_tile needs this for the marines flag.

Greg: you may now see why I prefered a flags field in pf_parameter
instead of the zoc_used field.

My proposal is to add this field, remove zoc_used and replace
"Unit_Type_id type" with "move_type, flags". Do you agree?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Are you saying that you actually used the Classpath Java AWT classes in 
  addition to the GTK peers and got them to display something?
  Wow.  That's way better than I did and I wrote the code!"
    -- Aaron M. Renn in the classpath mailing list




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