public override IIslandCollisionDetector CreateIslandCollisionDetector( GitVisualiser.Model.ViewControlData viewControlData) { var collisionDetector = _collisionDetector; _collisionDetector = null; return(collisionDetector); }
public Islands(ViewControlData viewControlData, Branch releaseArchipelago) { _ViewControlData = viewControlData; _islands = new List <Branch>(); _islandCollisionDetector = IslandsFactory.Instance.CreateIslandCollisionDetector(viewControlData); AddAndMoveReleaseArchipelago(releaseArchipelago, _ViewControlData.CentrePoint); }