Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#8754) effects patch
Home

[Freeciv-Dev] (PR#8754) effects patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: vasc@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#8754) effects patch
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 5 Aug 2004 09:15:33 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8754 >

I'm not happy with the naming of the num_suriviving_buildings()
funciton.  For a building to survive means that it is alive - i.e., that
it hasn't been destroyed.  But for an effect to be "surviving" means it
doesn't go away if its source does.  However this function has nothing
to do with effects, it just gets the number of alive+dead (surviving and
non-surviving) buildings.

I suggest the following naming convention:

  num_buildings_{range}_{status}

where {range} = "world", "player", "continent", "city", etc.

and {status} = "alive", "total"

Alternately (perhaps better) these values could be passed in as
enumeration values.  That may work better when the sources caches become
more developed.

jason



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