is 4 A2 A5 Z+ }* c& e+ B1 G8 j( y obj : object; -- first carbody in store* W$ Q: Q& e, n. o9 P
found : boolean; -- found a chassis" |2 [. D1 i% Y4 l* w
counter : integer; -- position in store ) l* M1 z& R8 k5 [% a* J- L7 ?% c- ~do 5 b9 b: k! H! n3 F4 e* I" [6 d; J# x' q -- make sure there is a carbody in the store $ `4 q) V$ [6 u {! J6 |5 {3 Q if not StoreCarbody.empty() then ; _" Z( T* l" z. J+ d- s+ ^" C) M: G& b found := false; 2 J# n+ a+ Z" I5 B0 p, p/ n3 R) c counter := 1; / @# Z3 r; T6 C' ]5 c# y 4 K o0 q+ E$ {7 w9 x
-- iterate through the store* a5 S! v: J; k' V$ V, S
while not found and counter <= StoreCarbody.xDim loop 2 Q3 c! \# T! V1 [; Z8 \% s obj := StoreCarbody.pe(counter,1).cont;. j3 X& n* F" F; r6 ]8 p$ j/ ?( a. P
if(obj /= void) then: r, X& K0 w7 T. Q7 K; A
found := true;4 l% I) t+ p# {, A! Y6 I- K
end; -- if1 d9 T7 V; g9 Y9 y
counter := counter + 1;; l8 r$ n( B7 V7 w" \: Z, y
end; -- while / K& V. N; Z, \6 j; b9 c, p q% z* o( D& p1 J if found then8 }: x4 n* z9 v1 ?1 q1 Q5 w
-- put the carbody on a skid! [8 T& a/ k0 \7 Y" B
obj.move(@);0 a! a! n$ R) b( Z/ B
end; -- if2 N2 c6 D0 D d! i) N( H
end; -- if not StoreCarbody.empty+ f/ w' f `) ?; Z, ]& ?1 H8 _
end;# `# |/ x* w p& F) \$ J' [+ W! J; I- C
里面的found急整个循环不太懂,求高手讲解下?急~~~~