public void SetResources(RubiksCubeModel fullCubeModel, RubiksCubeView fullCubeView, RubiksCubeSolver fullCubeSolver, CubeModel[] cubeArrayTop, CubeModel[] cubeArrayMiddleHorizontal, CubeModel[] cubeArrayBottom, ActionQueueController queueController, ActionQueueModel queueModel) { this._fullCubeModel = fullCubeModel; this._fullCubeView = fullCubeView; this._fullCubeSolver = fullCubeSolver; //this._fullCubeModel.SetRubiksCubeController (this); this._fullCubeView.SetRubiksCubeController(this); this._fullCubeSolver.SetRubiksCubeController(this); this._cubeArrayTop = cubeArrayTop; this._cubeArrayMiddleHorizontal = cubeArrayMiddleHorizontal; this._cubeArrayBottom = cubeArrayBottom; this._queueController = queueController; this._queueController.SetActionQueueModel(queueModel); for (int i = 0; i < 9; i++) { this._cubeArrayTop[i].SetRubiksCubeController(this); this._cubeArrayMiddleHorizontal[i].SetRubiksCubeController(this); this._cubeArrayBottom[i].SetRubiksCubeController(this); _fullCubeModel.GiveCubes(this._cubeArrayTop, this._cubeArrayMiddleHorizontal, this._cubeArrayBottom); } }
public void SetActionQueueModel(ActionQueueModel queueModel) { this._queueModel = queueModel; }