public void GetNextMino() { mino = minoQueue.GetMino(); current = mino.Key; if (current == 'i') { currentOffset = iOffset; } else if (current == 'o') { currentOffset = oOffset; } else { currentOffset = normOffset; } maxPosX = 10 - mino.Width; maxPosY = 20 - mino.Width; minoPos.X = Level.startPosX; minoPos.Y = Level.startPosY; positionChanged = true; UpdateMinoPosition(); }
public void SwapMino() { mino = holdArea.Swap(mino); if (minoPos.X <= 0) { minoPos.X = 0; } else if (minoPos.X >= maxPosX) { minoPos.X = maxPosX; } if (mino == null) { mino = minoQueue.GetMino(); current = mino.Key; if (current == 'i') { currentOffset = iOffset; } else if (current == 'o') { currentOffset = oOffset; } else { currentOffset = normOffset; } } positionChanged = true; UpdateMinoPosition(); }