Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2002:
[freeciv-ai] Time to enemy city/unit

[freeciv-ai] Time to enemy city/unit

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Time to enemy city/unit
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Wed, 25 Dec 2002 20:03:50 +0000

Attached is a patch which separates very similar calculations from:
into 2 new functions
which provide an estimate of the time required to reach city/unit.

This helps to squash an old bug where spped was compared to build cost...

Also, I provide a new function which allows to get the type of the boat the
player would be able to build, thus getting rid of some hardcoded values,
guesses and checks.

The above will change the behaviour but not visually.

This is the first step in my quest for unification of the above three functions.

Will be committed quite soon unless there are objections.


Attachment: time_to_enemy.diff
Description: Text document

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