Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] ai bodyguard code cleanup part#1

[freeciv-ai] ai bodyguard code cleanup part#1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] ai bodyguard code cleanup part#1
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 10 Aug 2002 15:21:07 +0000 (GMT)

This patch does stylistic cleanup and introduces the new (but here unused)
function ai_unit_new_role(), which should add an incremental number of
much needed sanity checks to unit task assignment in the AI code.

 - new enum BODYGUARD_* instead of magic numbers -1, 0
 - documented several functions
 - cleaned up style in look_for_charge and ai_military_bodyguard

There are no autogame changes. Please proofread.

More bodyguard patches will be coming, since I want to see if I can give
our active diplomats bodyguards.


Attachment: bodyguardclean1.diff
Description: Text document

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