Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9882) Continent and Ocean numbers
Home

[Freeciv-Dev] (PR#9882) Continent and Ocean numbers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9882) Continent and Ocean numbers
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 31 Aug 2004 01:40:33 -0700
Reply-to: rt@xxxxxxxxxxx

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

Here's my proposition

There will be two functions:
int map_get_continent_number(int x, int y)
int map_get_ocean_number(int x, int y)

They will return Continent_id value in range
[1..map.num_continents/map.num_oceans]

If map_get_continent_number is called with ocean tile it will triger an
assertion.

Continent numbers will be stored in tile.continent as they are now
(oceans with negative values). Only common/map.c and server/maphand.c
and packet code will be allowed to use it directly.

--
mateusz


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