Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: unit flags/capabilities
Home

[Freeciv-Dev] Re: unit flags/capabilities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: unit flags/capabilities
From: Reinier Post <rp@xxxxxxxxxx>
Date: Fri, 30 Nov 2001 22:20:52 +0100

On Thu, Nov 29, 2001 at 05:52:14PM +0100, Raimar Falke wrote:

> > Ideally, all unit behaviour should depend on flags, ot the unit
> > type, but flags are a later introduction and the conversion is not
> > complete.
> 
> AFAIK there is no such place left.

OK, the only cases seem to be a few lines in ai/aicity.c and ai/aiunit.c.

It used to be the way it still is for buildings:

citytools.c:  return (city_affected_by_wonder(pcity, B_SUNTZU) ||
citytools.c:      city_got_building(pcity, B_BARRACKS) || 
citytools.c:      city_got_building(pcity, B_BARRACKS2) ||
citytools.c:      city_got_building(pcity, B_BARRACKS3));

-- 
Reinier


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