Beispiel #1
0
 public void addBlock(BlockIF newB, string b)
 {
     writeLock();
     env.nextBlocks.Add(newB);
     env.addBlockQueue(b);
     done();
 }
Beispiel #2
0
 public void replaceBlock(BlockIF newB, int i, string b)
 {
     writeLock();
     env.nextBlocks[i] = newB;
     env.replaceBlockQueue(i, b);
     done();
 }
Beispiel #3
0
        public BlockIF getBlock()
        {
            readLock();
            BlockIF b = env.nextBlocks[0];

            env.nextBlocks.RemoveAt(0);
            env.removeBlockQueue();
            done();
            return(b);
        }
Beispiel #4
0
 public WrapperBlock(BlockIF cb, Color c)
 {
     block  = cb;
     this.c = c;
 }