示例#1
0
        public static Context CreateMockDataSmallTest(GameConfig gameConfig)
        {
            var mock = new MockContextMaker(gameConfig);

            mock.AddTile("Go", new Go());
            mock.AddTile("Tax 100$", new ActionTile(new ChangeBalanceAction(-100)));
            mock.AddTile("Property 1 Set 1", new Property(1, 100),
                         new PropertyDevelopment(80, new List <int> {
                10, 20, 50, 150, 450, 625, 750
            }));
            mock.AddTile("Property 2 Set 1", new Property(1, 120),
                         new PropertyDevelopment(80, new List <int> {
                10, 20, 50, 150, 450, 625, 750
            }));
            mock.AddTile("MoneyGiver 100$", new ActionTile(new ChangeBalanceAction(100)));
            mock.AddTile("Property 3 Set 2", new Property(2, 80), new PropertyDevelopment(50,
                                                                                          new List <int> {
                5, 10, 30, 100, 300, 400, 550
            }));
            mock.AddTile("Property 4 Set 2", new Property(2, 90), new PropertyDevelopment(50,
                                                                                          new List <int> {
                5, 10, 30, 100, 300, 400, 550
            }));

            mock.AddPlayer("John", cash: 200);
            mock.AddPlayer("AIPlayer2 Chaos:4", cash: 200);

            return(mock.GetContext());
        }
示例#2
0
        public MoveSystemTests()
        {
            var mock = new MockContextMaker(GameConfigMaker.DefaultGameConfig());

            context    = mock.GetContext();
            c          = DiContainer.CreateDiContainer(context);
            moveSystem = c.Resolve <MoveSystem>();

            context.Add(new Player(1, "Joshua"));
        }
示例#3
0
        public static Context CreateMockDataJailTest(GameConfig gameConfig)
        {
            var mockData = new MockContextMaker(gameConfig);

            mockData.AddTile("Go to jail", new ActionTile(new GoToJailAction()));
            mockData.AddTile("Give Jail Card", new ActionTile(new JailCardAction()));
            mockData.AddTile("Go to jail", new ActionTile(new GoToJailAction()));
            mockData.AddTile("Go to jail", new ActionTile(new GoToJailAction()));
            mockData.AddTile("Jail", new Jail());

            mockData.AddPlayer("John", cash: 200);
            //mockData.AddPlayer("Jake", cash: 200);

            return(mockData.GetContext());
        }