public BattleshipComputerAI(GameBoardCP gameBoard1,
                             RandomGenerator rs,
                             IAsyncDelayer delay, TestOptions test)
 {
     _gameBoard1 = gameBoard1;
     _rs         = rs; //since we are not unit testing, no problem to just create a new random generator for computer player this time
     _delay      = delay;
     _test       = test;
 }
Example #2
0
 public BattleshipMainGameClass(IGamePackageResolver resolver,
                                IEventAggregator aggregator,
                                BasicData basic,
                                TestOptions test,
                                BattleshipVMData model,
                                IMultiplayerSaveState state,
                                IAsyncDelayer delay,
                                CommandContainer command,
                                GameBoardCP gameBoard1,
                                ShipControlCP ships,
                                BasicGameContainer <BattleshipPlayerItem, BattleshipSaveInfo> gameContainer
                                ) : base(resolver, aggregator, basic, test, model, state, delay, command, gameContainer)
 {
     _test      = test;
     _model     = model;
     _command   = command;
     GameBoard1 = gameBoard1;
     Ships      = ships;
 }
Example #3
0
 public ShipControlCP(BattleshipVMData model, GameBoardCP gameBoard1)
 {
     _model      = model;
     _gameBoard1 = gameBoard1;
     LoadBoard();
 }