Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] logging and ai explorer improvement patch

[freeciv-ai] logging and ai explorer improvement patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] logging and ai explorer improvement patch
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 17 Aug 2002 11:00:55 +0000 (GMT)

This patch primarily improves logging by providing and using some logging
macros (defined in aitools.h). These are rather inflexible in that they
don't take varargs (ie no "%s %d" messages), but they do output quite a
lot of useful info in a standardized way.

I intend to add a FERRY_LOG macro and a few new LOGLEVEL_* defines later,
unless someone beat me to it.

Also, while doing this, I fixed some calls to do_unit_goto() that didn't
check if we died, and made an AI's explorers get a homecity and return
home instead of standing idle out in the bush (that just looks so silly
and also explorers in a city can be important to defend it from attackers
early game).

Please read and criticize.


Attachment: logandexplore.diff
Description: Text document

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