57.
g.fillRect(
30
,
0
,
6
,
600
);
58.
g.fillRect(
200
,
0
,
6
,
600
);
59.
g.fillRect(
200
,
150
,
330
,
6
);
60.
g.fillRect(
200
,
300
,
330
,
6
);
61.
g.fillRect(
200
,
450
,
330
,
6
);
62.
g.fillRect(
30
,
600
,
500
,
6
);
63.
//
画电梯
64.
g.setColor(Color.gray);
65.
g.fillRect(dt.x, dt.y,
150
,
150
);
66.
//
画人
67.
g.setColor(Color.red);
68.
g.fillRect(ps.x, ps.y,
50
,
100
);
69.
//
画要上几楼
70.
g.setColor(Color.black);
71.
g.setFont(new Font("宋体",Font.BOLD,
17
));
72.
if(ps.endFloor!=
0
&&ps.direct==
0
){
73.
g.drawString("去"+ps.endFloor+"楼", ps.x, ps.y+
20
);
74.
}
75.
//
画我走了
76.
if(ps.direct==
1
){
77.
g.drawString("我走了", ps.x, ps.y+
20
);
78.
}
79.
}
80.
81.
}
82.
class Person implements Runnable{
83.
int x;
84.
int y;