Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] Suggestion: FreeCiv on a Hex!
Home

Re: [Freeciv-Dev] Suggestion: FreeCiv on a Hex!

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Suggestion: FreeCiv on a Hex!
From: Stephen Hodge <stephenh@xxxxxxxxxx>
Date: Tue, 17 Aug 1999 20:25:24 +1000

Falk Hueffner wrote:
> "Michael A. Rouse" <mrouse@xxxxxxxxxx> writes:
> > Second, replace the square tiles and movement with hexagonal tiles
> > and movement.
> 
> Well, that would be really difficult, since the grid structure is
> hardcoded in many, many places in the source, and using a hexagonal
> grid would be a bit clumsy with the poor tools C has for abstract data
> types. I guess I would rather rewrite it...

I've done this sort of thing before and it's not that big of a change. You
can still represent the map with an array, you just have different rules
about which cells are considered adjacent (there would probably be some
unused array elements around the edges, too).

Regards,
Steve Hodge

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