From: Stefan F. <ste...@we...> - 2015-09-01 18:20:26
|
> > > Target Hexes > > * Similar to destinations in 1856. Use the manual approach first and > replace that by an automatic determination later. > > I have adapted the code from 1880 by Michael to make that already > automatically. > > How did you solve the issue, when to check for connectivity? The 1844 rules specify an "immediate/anytime" condition, thus there is the need to trigger a check anytime a tile gets laid on the map. The correct way to do this is to create a MapModel that subscribes to all MapHex currentTile state variables. Then you can add a trigger to the MapModel that then calls the destination check for all companies that have outstanding working capital. |