Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2004:
[freeciv-ai] Re: Question about danger
Home

[freeciv-ai] Re: Question about danger

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: Question about danger
From: Per Inge Mathisen <per@xxxxxxxxxxx>
Date: Wed, 4 Aug 2004 22:21:02 +0000 (GMT)

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.

  - Per



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