[freeciv-ai] Re: Question about danger
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 4 Aug 2004, Jordi Negrevernis i Font wrote:
> I want to apply bodyguard code to settlers - this is a TODO entry -
> but i don't find a function to asses danger on a location.
> I looked at enemy_at ( or something like this ) but this does not
> take into count the borders of the nation orthe enemy units not
> adjacent to tile, or the distance of the enemy.
> Do you know another function or i must make myself?
There is a very crude danger map in server/settlers.c that is used by
settlers to figure out if there is danger, and if there is, go hide. I
don't know if this is useful in this case.