示例#1
0
        public ResourceMarket(Location location, int numberOfPlayers)
        {
            RefillData = GetRefill(location, numberOfPlayers);
            Slots      = GetSlots(location);

            int[,] startFill = GetStartFill(location);

            Market = (int[, ])Slots.Clone();
            for (int i = 0; i < Market.GetLength(0); i++)
            {
                for (int j = 0; j < Market.GetLength(1); j++)
                {
                    if (i < startFill[0, j] || i > startFill[1, j])
                    {
                        Market[i, j] = 0;
                    }
                }
            }
        }