Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 private bool InitPutBlockSp(InitBlockInfo initBlock)
 {
     ground.SetInitBlockInfoSp(initBlock);
     return(true);
 }