Exemple #1
0
        private bool InitPutBlock(InitBlockInfo initBlock)
        {
            IBlock block = GetBlockByValue(initBlock.value);

            if (block != null)
            {
                if (block.CanFit(initBlock.points))
                {
                    ground.Fill(initBlock.points, block.value);
                    blocks = blocks.CreateBlocksExcludeIndex(block);
                    return(true);
                }
            }
            return(false);
        }
Exemple #2
0
 private bool InitPutBlockSp(InitBlockInfo initBlock)
 {
     ground.SetInitBlockInfoSp(initBlock);
     return(true);
 }