is6 {% F9 R5 j- N d
obj : object; -- first carbody in store/ p0 d6 g2 P# B8 X0 Z0 ~
found : boolean; -- found a chassis4 D4 |: s& N4 ^9 w0 y8 Q
counter : integer; -- position in store3 T2 F5 `# D/ o5 C- h
do ' k+ T& \. Z6 G; E. o
-- make sure there is a carbody in the store5 O8 ?$ M i# O, v- a1 s1 G2 m- R
if not StoreCarbody.empty() then, o. z/ D. B# X7 \' U
found := false;) N/ x" p S$ ?. U: n8 t2 M. |6 ~
counter := 1;& n% e/ ]% i* t0 O, o
0 Z* r" ?( t3 M -- iterate through the store7 d5 f% u9 {9 }: ^1 |4 r
while not found and counter <= StoreCarbody.xDim loop6 E* X- P# \8 n2 H) [, t
obj := StoreCarbody.pe(counter,1).cont;8 Y ?" R. O H' Z- ` c
if(obj /= void) then3 N3 C" U% W/ k% Y1 [ D: J8 F# w( X
found := true; ' Y7 O B: {$ r1 @, n# c0 Q end; -- if , y. K0 q3 S% g counter := counter + 1;0 Y% T& T* f$ j, Z Q
end; -- while 1 G$ V/ X6 x+ J T # d' O2 n! l! ~3 ?# Q, E
if found then4 L- q' d: h7 L+ y
-- put the carbody on a skid 2 l; X5 U# x2 f- a* c/ r* o obj.move(@); , C' e1 L4 z/ n+ D end; -- if' ]# ?$ s! G1 b( D4 F' c
end; -- if not StoreCarbody.empty& Z* O( E4 ^* M2 e7 w( R- I& I5 d
end;2 M& I( v6 b) v2 Q) |) T( q3 ^
里面的found急整个循环不太懂,求高手讲解下?急~~~~