public void Initialize() { victorySignal += VictorySignal; lossSignal += LossSignal; Start(); }
private TimeUpLossChecker( TimeSpan roundDuration, MemoryGame.GameStartSignal gameStartSignal, MemoryGame.VictorySignal victorySignal, LossSignal lossSignal, TimerController timerController, DelayedAction.Pool delayedActionPool) { this.roundDuration = roundDuration; this.gameStartSignal = gameStartSignal; this.victorySignal = victorySignal; this.LossSignal = lossSignal; this.timerController = timerController; this.delayedActionPool = delayedActionPool; }
private Game( GridController gridController, GridModelFactory gridModelFactory, GridModelWrapper gridModelWrapper, GameStartSignal gameStartSignal, VictorySignal victorySignal, LossSignal lossSignal, [Inject(Id = GameResultMessageController.Victory)] GameResultMessageController victoryMessageController, [Inject(Id = GameResultMessageController.Loss)] GameResultMessageController lossMessageController, DelayedAction.Pool delayedActionPool) { this.gridController = gridController; this.gridModelFactory = gridModelFactory; this.gridModelWrapper = gridModelWrapper; this.gameStartSignal = gameStartSignal; this.victorySignal = victorySignal; this.lossSignal = lossSignal; this.victoryMessageController = victoryMessageController; this.lossMessageController = lossMessageController; this.delayedActionPool = delayedActionPool; }