[Freeciv-Dev] Movement-shared roads

2013-04-02 Thread Emmet Hikory
For my ruleset, I'd like to have some roads that share movement. Two examples that may be useful for discussion: having a Track with move_cost 3 be a prerequisite for road for only certain terrains, and having a Canal that acts like a river, except it needs building, requires technology, and

Re: [Freeciv-Dev] Movement-shared roads

2013-04-02 Thread Marko Lindqvist
On 2 April 2013 12:53, Emmet Hikory per...@shipstone.jp wrote: So, the solution would be to have some road compatibility check in map.c:tile_move_cost_ptrs(). There are two methods to do this in the ruleset that seem to have precedent: either define the road_class concept, and have all

Re: [Freeciv-Dev] Movement-shared roads

2013-04-02 Thread Emmet Hikory
On Tue, Apr 02, 2013 at 03:27:26PM +0300, Marko Lindqvist wrote: On 2 April 2013 12:53, Emmet Hikory wrote: So, the solution would be to have some road compatibility check in map.c:tile_move_cost_ptrs(). There are two methods to do this in the ruleset that seem to have precedent:

Re: [Freeciv-Dev] Movement-shared roads

2013-04-02 Thread Marko Lindqvist
On 2 April 2013 17:14, Emmet Hikory per...@shipstone.jp wrote: I'll go with the bitvector for this then, and thanks for the pointer to cache code to make it not terribly expensive. To make sure I understand, one would iterate over the road types, and then iterate over the (presumably