MCPcopy Create free account
hub / github.com/TanaStudy/Java-Study / fall

Method fall

8. Demo/Java/src/main/LeetCode/Tetris/Main.java:189–193  ·  view source on GitHub ↗
(int m, int n)

Source from the content-addressed store, hash-verified

187 }
188 /*方块掉落一层*/
189 public void fall(int m, int n) {
190 if (m > 0)// 方块下落一层时
191 clear(m - 1, n);// 清除上一层有颜色的方块
192 draw(m, n);// 重新绘制方块图像
193 }
194 /*清除方块掉落之前有颜色的地方*/
195 public void clear(int m, int n) {
196 int temp = 0x8000;//表示1000 0000 0000 0000

Callers 1

startMethod · 0.95

Calls 2

clearMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected