Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] active ai diplomats

[freeciv-ai] active ai diplomats

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] active ai diplomats
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 31 Aug 2002 15:15:43 +0000 (GMT)

This is hopefully the last version. Lots of bugs fixed. Lots of small
improvements. Uses bodyguards when available (rare). Tried allowing use of
slower bodyguards, hacked up gode to rendezvous, but that worked poorly.
Properly increases taxes if necessary right before we try to incite a
city. Sets the unit role properly to distinguish between defense and
offensive actions.

Some notable collateral changes
 - I've introduced the use of (-1, -1) as invalid goto coordinates, and
the AI macro HAS_GOTO(punit) to check for this, which has been littered
around the AI code to stop coredumps
 - New convenience function ai_unit_ready(punit) which clears all
previously assignments and sets the unit to (in)sane defaults
 - A few changes to logging for even more detailed info (yay!)
 - Small cleanup of bodyguarding code
 - We no longer set punit->ai.ai_role to AINUNIT_NONE each turn (which is
so broken)

Please test and review.


"I don't see why people are so upset about cloning sheep. American
television networks have been doing that to their audiences for years."
-- Jello Biafra

Attachment: activediplong2.diff
Description: Text document

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