示例#1
0
        public MotherFaker()
        {
            Dice       = new FakeDice();
            Banker     = new TraditionalBanker(new[] { 0 });
            JailRoster = new TraditionalJailRoster(Banker);
            GameBoard  = new GameBoard(Banker);
            var cardDeckFactory = new TraditionalCardDeckFactory(Banker, JailRoster, GameBoard, Dice);

            LocationFactory = new TraditionalLocationFactory(Banker, Dice, JailRoster, GameBoard, cardDeckFactory);
            GameBoard.SetLocations(LocationFactory.GetLocations(), LocationFactory.GetRailroads(), LocationFactory.GetUtilities());
        }
示例#2
0
 public Hangout(dynamic hangout)
 {
     Id = hangout.id;
     CreatedByUserId = hangout.createdById;
     Locations       = LocationFactory.GetLocations(hangout.locations);
 }