Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: warmap patch and gotohand
Home

[Freeciv-Dev] Re: warmap patch and gotohand

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thue Janus Kristensen <thue@xxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: warmap patch and gotohand
From: Nicolas BRUNEL <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 May 2000 21:21:40 +0000 (GMT)

I only commited a very small change in gotohand.c. Other parts of the
patch were only to test what would happen if we remove some variables.
By looking closer at gotohand.c, I understood how units were send to
attack a target. First, one unit selects a target. Then, the activity of
the unit becomes goto. After that, other units will followed the first
one. They are set to goto activity with the same destination. It's smart
become it's easy to code. But, it looks like there no way for the AI to
give up an attemp to conquer a city. Once a unit is send to an ennemy
city. Other units will iterate through the list of units, find this unit
,follow their brave leader and be killed one by one. At first, AI seems to
use ironclads smartly. Ironclad are here before caravels. But, it's only 
because ironclads are fastest than caravels. 

So, it was interesting to look more closely at gotohand.c and aiunit.c

bye,




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