* 소스 흐름
1) class Square를 읽는다
2) class Tetris의 변수들을 읽고
3) init() -> start(run()) -> stop()의 순서로 실행한다
class Square
{
각종 변수, 상수, 게임 데이타, 메소드 정의
boolean InBounds()
{ }
boolean IsEqual(Square
s) { }
}
public class Tetris
extends java.applet.Applet implements Runnable {
각종 변수, 상수, 게임 데이타, 메소드 정의
private boolean movepiece(Square
from[], Square to[]) { }
private void newpiece()
{ }
private synchronized boolean movecurpiece(int
byx, int byy, boolean rotate) { }
private void removelines()
{ }
public void init()
{ }
public void start()
{ }
public synchronized void stop()
{ }
public void run()
{ }
public void update(Graphics
g) { }
public synchronized void paint(Graphics
g) { }
public boolean keyDown(java.awt.Event
evt, int key) { }
public boolean mouseDown(java.awt.Event
evt, int x, int y) { }
}