is8 O. w# D$ \' {0 z
obj : object; -- first carbody in store- ?2 \, n, m1 O; u3 o3 U8 _, ^: s
found : boolean; -- found a chassis ! l% I0 X9 n, m counter : integer; -- position in store $ U9 G0 G$ Q' X( `1 V% z5 Vdo ' {# G1 V6 F% \1 w
-- make sure there is a carbody in the store- d0 H' g4 k* r
if not StoreCarbody.empty() then# L* D1 B7 b$ c8 M
found := false; . r {9 |9 B, _ ^, B counter := 1; + P# K& e' d! P# O6 D d/ c & m6 S4 ]/ T6 F7 z! l
-- iterate through the store" G! _- l% Y: N# i
while not found and counter <= StoreCarbody.xDim loop* [0 z( ]% @6 _6 m* F! l& @, L
obj := StoreCarbody.pe(counter,1).cont;& u; k# i$ m0 Y/ o0 j! k
if(obj /= void) then s' F8 p/ R& ?+ S( [$ g/ E7 O: U
found := true; 6 q7 x6 e$ T: n! E) h. s& E end; -- if6 ^' _5 N0 y* C% E, e
counter := counter + 1; 8 Q2 y" ]+ }( o- S5 n9 s( E5 f end; -- while5 L) f( z; d9 Y5 x* A2 z2 S3 e& V
& k) n" X- s; m# N
if found then 0 u' T- s1 `1 l% A9 E6 I -- put the carbody on a skid4 _" G" \; m; L* y1 o$ m7 [1 g
obj.move(@); / B4 G+ o. R7 Y, u2 ^' M end; -- if" Z7 D( N8 \6 F: c- O( R3 x* |" h
end; -- if not StoreCarbody.empty6 |! Q! U& Z7 b4 n1 s$ x
end; b# W9 }7 B, X里面的found急整个循环不太懂,求高手讲解下?急~~~~