Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9610) autosettler "territory" and danger maps
Home

[Freeciv-Dev] Re: (PR#9610) autosettler "territory" and danger maps

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9610) autosettler "territory" and danger maps
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Fri, 6 Aug 2004 07:28:54 -0700
Reply-to: rt@xxxxxxxxxxx

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

On Fri, 6 Aug 2004, Jason Short wrote:

> > vision check on iterations instead of in the insertion routine. We could
> > put the vision check in an iterator macro, for that matter.
>
> I don't see how.  The vision check doesn't have to check the tile in
> question.  It has to check the tile that the enemy unit is on, and all
> tiles in between.

The tiles in between is probably too much.  Anyway, if you can see the
unit but not the terrain between you'd still have a fair idea of how fast
it can come.

As for checking the tile where the enemy is, this is no problem since we
have the pointer to the whole enemy unit struct in the list.

G.




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