is + U7 k- F' b/ ? obj : object; -- first carbody in store' x7 o/ t" s2 o" v2 G+ v. y
found : boolean; -- found a chassis; k6 c9 a" F9 q* F# R- J
counter : integer; -- position in store4 ?- A: @- |3 A$ U# k
do 5 ]7 e9 R: \/ w b. y* N+ h; d
-- make sure there is a carbody in the store 8 V" R# O( w% f6 { if not StoreCarbody.empty() then' O% p/ R5 M5 [. c( i0 y3 y
found := false;2 V K, ~ d8 ~& s" J0 m
counter := 1;# H: S: S9 _- w5 q
2 Y- P7 H$ j% d! j# p
-- iterate through the store: B) q4 R( z6 o% \/ k6 U
while not found and counter <= StoreCarbody.xDim loop ~( u: L2 m1 k% g6 P obj := StoreCarbody.pe(counter,1).cont; q* j, a y' A) ]' [6 M
if(obj /= void) then 3 ~6 R" V8 Z, g$ x+ J found := true;# { P' D5 ^: W* Z
end; -- if8 h( |6 h( d7 N( I0 Q
counter := counter + 1;, w! X7 z e" H- X4 m% |% _1 @
end; -- while 1 |; c) Y _" ]/ f + ^/ b' h; ~& ~
if found then5 g2 W7 g) L g9 }" {7 V) n
-- put the carbody on a skid. N1 g+ N* ?6 T& q) ~+ d- L
obj.move(@);3 f5 x% l9 C* r8 K# ?# z# M2 o" k
end; -- if0 \& O v. ^2 p8 [- n
end; -- if not StoreCarbody.empty + T! p4 t& m1 E3 M, Y0 p4 }end;3 ]3 _# S5 K+ @
里面的found急整个循环不太懂,求高手讲解下?急~~~~