public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer, IGameRules gameRules, ILogger logger) { this.RestartGame(); this.firstPlayer = firstPlayer; this.secondPlayer = secondPlayer; this.gameRules = gameRules; this.logger = logger; }
public SimRoundPlayerInfo(ISimPlayer player) { this.Player = player; this.Cards = new CardCollection(); this.TrickCards = new List <Card>(); this.Announces = new List <Announce>(); this.GameCloser = false; }
public SimRoundPlayerInfo(ISimPlayer player) { this.Player = player; this.Cards = new CardCollection(); this.TrickCards = new List<Card>(); this.Announces = new List<Announce>(); this.GameCloser = false; }
public SimRound( ISimPlayer firstPlayer, ISimPlayer secondPlayer, IGameRules gameRules, PlayerPosition firstToPlay = PlayerPosition.FirstPlayer) { this.gameRules = gameRules; this.deck = new SimDeck(); this.stateManager = new SimStateManager(); this.firstPlayer = new SimRoundPlayerInfo(firstPlayer); this.secondPlayer = new SimRoundPlayerInfo(secondPlayer); this.firstToPlay = firstToPlay; }
// Initialize Objects and add notify events private FlightModel() { netClient = new FlightNetClient(); fileIterator = new FlightDataIterator(); dataParser = new XMLParser(); dataAnalyzer = new DataAnalyzer(); libLoader = new LibraryLoader(); anomalyAnalyzer = new AnomalyAnalyzer(libLoader); selectedPlot = new MonitorGraph(dataAnalyzer, fileIterator); correlatedPlot = new MonitorGraph(dataAnalyzer, fileIterator); anomalyPlot = new AnomalyGraph(dataAnalyzer, fileIterator, anomalyAnalyzer); simPlayer = new FlightSimPlayer(netClient, fileIterator); joystick = new FlightJoystick(fileIterator, dataAnalyzer); dashboard = new FlightDashboard(fileIterator, dataAnalyzer); // add notify events simPlayer.PropertyChanged += PropertyChangedFunction; joystick.PropertyChanged += PropertyChangedFunction; dashboard.PropertyChanged += PropertyChangedFunction; }
public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer) : this(firstPlayer, secondPlayer, GameRulesProvider.Santase, new NoLogger()) { }