Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#2957) is ocean as a function with oceanness read f
Home

[Freeciv-Dev] Re: (PR#2957) is ocean as a function with oceanness read f

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kayeats@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2957) is ocean as a function with oceanness read from ruleset
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Jan 2004 10:36:53 -0800
Reply-to: rt@xxxxxxxxxxx

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

Raimar Falke wrote:

>>-#define is_ocean(x) ((x) == T_OCEAN)
>>-#define is_ocean_near_tile(x, y) is_terrain_near_tile(x, y, T_OCEAN)
>>+#define is_ocean(x) (terrain_has_flag((x), TER_OCEANIC))
>>+#define is_ocean_near_tile(x, y) is_terrain_flag_near_tile(x, y, TER_OCEANIC)
>> #define adjacent_ocean_tiles4(x, y) adjacent_terrain_tiles4(x, y, T_OCEAN)
>> #define count_ocean_near_tile(x,y) count_terrain_near_tile(x,y, T_OCEAN)
> 
> 
> Inline functions for all of them.

Hmm.

>>+                         units.  Most terrain improvements can only be built
>>+                         on land.  Oceanic terrain has no zones of control.
> 
> 
> Which terrain improvements can be build on ocean tiles?

None, yet?

>>diff -u -r1.6 README.rulesets
>>--- doc/README.rulesets       2002/11/02 13:33:54     1.6
>>+++ doc/README.rulesets       2004/01/18 17:21:50
>>@@ -168,6 +168,12 @@
>> The civstyle option will be removed in the near future.
>> 
>> ----------------------------------------------------------------------
>>+terrain.ruleset:
>>+----------------
>>+
>>+
>>+
>>+----------------------------------------------------------------------
> 
> 
> Huh?

Included by accident.  I started to write documentation there but then 
put it in the ruleset files.

jason




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