Esempio n. 1
0
 public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer, IGameRules gameRules, ILogger logger)
 {
     this.RestartGame();
     this.firstPlayer = firstPlayer;
     this.secondPlayer = secondPlayer;
     this.gameRules = gameRules;
     this.logger = logger;
 }
Esempio n. 2
0
 public SimRoundPlayerInfo(ISimPlayer player)
 {
     this.Player     = player;
     this.Cards      = new CardCollection();
     this.TrickCards = new List <Card>();
     this.Announces  = new List <Announce>();
     this.GameCloser = false;
 }
Esempio n. 3
0
 public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer, IGameRules gameRules, ILogger logger)
 {
     this.RestartGame();
     this.firstPlayer  = firstPlayer;
     this.secondPlayer = secondPlayer;
     this.gameRules    = gameRules;
     this.logger       = logger;
 }
Esempio n. 4
0
 public SimRoundPlayerInfo(ISimPlayer player)
 {
     this.Player = player;
         this.Cards = new CardCollection();
         this.TrickCards = new List<Card>();
         this.Announces = new List<Announce>();
         this.GameCloser = false;
 }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
        // 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;
        }
Esempio n. 8
0
 public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer)
     : this(firstPlayer, secondPlayer, GameRulesProvider.Santase, new NoLogger())
 {
 }
Esempio n. 9
0
 public SimSantaseGame(ISimPlayer firstPlayer, ISimPlayer secondPlayer)
     : this(firstPlayer, secondPlayer, GameRulesProvider.Santase, new NoLogger())
 {
 }