[freeciv-ai] Re: Patch Army
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi there!
Please, if someone is going to modify the patch, modify this it
attached!!
I made some modifications.
En/na Per I. Mathisen ha escrit:
But, i have 3 questions:
- How do i know if there is a city in the attack direction?
I don't understand the question.
Yes. The code selects a good city to attack. The selects a meeting
point, so a city. But between the objective city and the meeting point
can be other cities... So, there is a way to follow the direction of the
units? I want to know this to prepare the attack, so that the units
occupy tiles with resources or mountains or hills to gain hitpoints...
- Which are the wants for the units? While debugging i get want >
101 many times, before i evaluate army_advisor_choice!! I knew they were
between 0 and 100!!
You knew wrong, as did Raahul. A lot of wants are over 101, the want for
attacking units are among them.
Anyway the army_advisor is useless, it only selects phalanx now :-(
. I don't manage to make 'process_attacker_want' select other units, so
wins 'process_defender_want'.
army2.zip
Description: Zip compressed data
|
|