is * {! O# e* }+ ]- C+ W% j5 ~& [& Z! n0 [ obj : object; -- first carbody in store+ }' k3 r9 L; k% Q9 k2 Q! H5 y6 O
found : boolean; -- found a chassis ( ~5 y$ p3 X/ B, H# N. i, L! n counter : integer; -- position in store/ F& [4 k) u F4 J6 b; z
do - D" b. s- g8 _: J$ M7 {
-- make sure there is a carbody in the store) \# t; d* |- K. X* X' b. k( `
if not StoreCarbody.empty() then - h2 X3 s3 e% x' J1 z! J/ x found := false;+ B$ N+ Y z( J( r4 w
counter := 1; $ }0 ~/ [& y7 m: Y . L7 z' O4 h# H- _
-- iterate through the store- ]) }3 D) \. G9 y0 W& T9 I
while not found and counter <= StoreCarbody.xDim loop) u4 s: `8 g7 _+ l# q- a
obj := StoreCarbody.pe(counter,1).cont;, L! g5 ^2 o3 C# t" Q4 l4 `# F
if(obj /= void) then$ b5 I6 I: N8 M* J( O- g( C
found := true;7 \& V' n* [8 l. L8 {
end; -- if * k4 E K3 D6 `+ e- h h( ^ counter := counter + 1;# r3 `! x' b0 _6 H
end; -- while * i7 p" j* Q: l% O) ? & S. a2 I3 l+ v. r3 G8 A. [ if found then ! N2 _/ }. y9 q" x9 [' j( M -- put the carbody on a skid O0 N3 i5 N/ |5 v- L
obj.move(@);# [3 A% T' `4 P8 ?
end; -- if' Z9 U! e; x) {. ^) f8 n& a# a
end; -- if not StoreCarbody.empty _( o# \% `3 w, X* F" x" N
end;# H/ `; n9 \ {3 u& ]7 ^
里面的found急整个循环不太懂,求高手讲解下?急~~~~