public void addBlock(BlockIF newB, string b) { writeLock(); env.nextBlocks.Add(newB); env.addBlockQueue(b); done(); }
public void replaceBlock(BlockIF newB, int i, string b) { writeLock(); env.nextBlocks[i] = newB; env.replaceBlockQueue(i, b); done(); }
public BlockIF getBlock() { readLock(); BlockIF b = env.nextBlocks[0]; env.nextBlocks.RemoveAt(0); env.removeBlockQueue(); done(); return(b); }
public WrapperBlock(BlockIF cb, Color c) { block = cb; this.c = c; }