I have added a check on laying yellow tiles,
that ensures that such tiles are somehow connected to existing track.
The obvious exceptions are:
- a city tile on the operating company's home base,
- unconnected tile lays enabled by private special abilities.
We can't yet check connection to a home base,
but this new check already reduces the amount of invalid tile lays.
> 3. Initially I had created a new Move subclass to move the
> ability object,
> but it occurred to me that undoable object moves are in fact
> pretty generic.
> The new class ObjectMove now handles both token and ability
> object moves.
> Perhaps other objects moves can be merged into this class as well.
> Two new interfaces Moveable and MoveableHolderI support this
> now generic mechanism.
Train and Certificate transfers are now also handled by ObjectMove.
This is all we can do here, I think.
Erik.
|