Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] PATCHES: AI cleanups
Home

[Freeciv-Dev] PATCHES: AI cleanups

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv development list <freeciv-dev@xxxxxxxxxxx>, Patches <bugs@xxxxxxxxxxxxxxxxxxx>
Subject: [Freeciv-Dev] PATCHES: AI cleanups
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Sun, 30 Dec 2001 04:23:39 -0800 (PST)

The following two paches are included, aicleanupv2.1, and unit_move_turns
patch,
broken up as GB suggested. The two patches introduce the following changes

unit_move_turns replaces the previous ugly code with a nicer case statement,
and gets rid of one letter variables like c and m.

Aicleanupv2.1 gets rid of more one letter variables, gets rid of some more
hardcoded nos like 6:12, replacing them with 2 * SINGLE_MOVE: 4 * SINGLE_MOVE.
Introduces some readibility into the current ai code in advmilitary.c and
aiunit.c. It lays the framework for much bigger changes to come.

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Attachment: aicleanupv2.1.diff
Description: aicleanupv2.1.diff

Attachment: unit_move_turns.diff
Description: unit_move_turns.diff


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