From: Erik V. <eri...@hc...> - 2005-07-19 19:56:32
|
> Hex would have: > - coordinates (row, column) and label, > - methods to convert between the above (see my other post), > - a pointer to the current Tile (initially always a preprinted one), > - company Home/Destination info, > - methods to find neighbouring hexes and their tiles. > > I can't think of much more. The rest will most likely be in Tile. > Tile would be a separate class hierarchy (if a hierarchy at all). There might be a case for a common superclass or interface for both (Battle)Hex and Tile, to record the fact that these have the same shape. if that would turn out to be relevant at all. E.g. Polygon. Not Hex, because sometime in the far future we may need to provide for square tiles (as in the infamous Crisis, and one Italian was also working on an 18xx game with square tiles at some point in time). In the far future, I said....! Erik. |