is 2 Z# A2 R& M7 T' n' y8 w obj : object; -- first carbody in store$ |( L1 F9 E& x! l; ]8 _: F
found : boolean; -- found a chassis ) [1 z6 P5 }$ D1 _2 ]! j counter : integer; -- position in store 2 @# r' Y7 p" g% y9 U: v' `do * ^2 ~" R: Y- }! E; o0 E -- make sure there is a carbody in the store + V. \2 r/ \* k1 S: K if not StoreCarbody.empty() then $ w u9 J* \( X/ m" I found := false;# z9 N1 ]. `8 p( o8 F, Z7 h" E
counter := 1; / c S* Y' {7 R" O& t . q& x$ V; w0 W7 V
-- iterate through the store0 B4 `. C+ a7 A- f8 K$ D* L
while not found and counter <= StoreCarbody.xDim loop q6 K8 a2 K" C9 y! g obj := StoreCarbody.pe(counter,1).cont;# w" }5 l& J: P, S% `
if(obj /= void) then: P+ ]0 y ]9 N: G+ I# j5 B3 s
found := true;# S. @, ?; }5 D! m
end; -- if ; Y$ d( M& K* L" T" K counter := counter + 1;% e6 T1 J* C6 K8 C6 L
end; -- while" ]; H, f$ B* n! G
0 J0 D; r) i9 L S# ^3 @ if found then ' v& Q% C- T F5 d: ?( O -- put the carbody on a skid7 V1 I/ D1 Z, f( a3 L& Z
obj.move(@);* q0 x( N" @1 O. B9 {4 D
end; -- if- G- }& C h# @/ ?2 C, c
end; -- if not StoreCarbody.empty8 o0 }9 }; n, }. ~) H3 i7 W1 Q
end; 6 K+ B6 j. P# h4 h5 L: [里面的found急整个循环不太懂,求高手讲解下?急~~~~