public MancalaMainGameClass(IGamePackageResolver resolver, IEventAggregator aggregator, BasicData basic, TestOptions test, MancalaVMData model, IMultiplayerSaveState state, IAsyncDelayer delay, CommandContainer command, GameBoardProcesses gameBoard, BasicGameContainer <MancalaPlayerItem, MancalaSaveInfo> gameContainer ) : base(resolver, aggregator, basic, test, model, state, delay, command, gameContainer) { _model = model; _command = command; _gameBoard = gameBoard; _gameBoard.PlayerList = GetPlayerList; _gameBoard.SingleInfo = GetCurrentPlayer; _gameBoard.SetCurrentPlayer = ((x) => SingleInfo = x); _gameBoard.EndTurnAsync = EndTurnAsync; _gameBoard.WhoTurn = GetWhoTurn; _gameBoard.ContinueTurnAsync = ContinueTurnAsync; _gameBoard.ShowWinAsync = ShowWinAsync; _gameBoard.ShowTieAsync = ShowTieAsync; _gameBoard.SaveRoot = GetSaveInfo; GameBoardGraphicsCP.CreateSpaceList(_model); }
internal static void CreateSpaceList(MancalaVMData data) { data.SpaceList = new Dictionary <int, SpaceInfo>(); 14.Times(x => { SpaceInfo ThisSpace = new SpaceInfo(); ThisSpace.Pieces = 0; data.SpaceList.Add(x, ThisSpace); //has to be done this way. }); }
public GameBoardGraphicsCP(IGamePackageResolver mainContainer, GameBoardVM clickModel, MancalaVMData dataModel, CommandContainer command ) : base(mainContainer) { _clickModel = clickModel; _dataModel = dataModel; _command = command; }
public GameBoardProcesses(IEventAggregator aggregator, MancalaVMData vmdata, BasicData basicData, TestOptions test, IAsyncDelayer delayer ) { _aggregator = aggregator; _vmdata = vmdata; _basicData = basicData; _test = test; _delayer = delayer; }