Catan icon indicating copy to clipboard operation
Catan copied to clipboard

Followup to savegame notifications

Open lologarithm opened this issue 9 years ago • 2 comments

This starts to hook the net code into the real lifecycle of the application.

lologarithm avatar Oct 27 '16 08:10 lologarithm

Wondering how to do Roads. Those pieces don't live on a plot, but between two plots. Could come up with a system of each plot/tile owning one of its edges, so if the Piece is a Road, then we use it's coordinate to get a plot/tile, and then get the edge it "owns". Then math a bit to see which two plots the the edge actually bridges... Or we add a CoordinateType to the ng model, and on Coordinate set a type and two sets of xy values. Plot or Tile, we use the first set only to generate a key. Road, we use both sets to generate a key.

jerold avatar Nov 03 '16 00:11 jerold

Can't use the Cube object to replace Coordinate. Forgot that this game has plots and edges, and the Cube Hex doesn't really address corners in it's coordinate system. :/

jerold avatar Nov 03 '16 00:11 jerold