is - k: b2 I9 K5 k. P) x# E# _ obj : object; -- first carbody in store ; c+ t, T! T( ]( U4 i- u5 u: T found : boolean; -- found a chassis$ ]5 Q; p/ o1 W# g' y; C" l
counter : integer; -- position in store, e2 O2 h1 b3 i/ b
do 9 A+ k D; e+ u6 D- e* H; [
-- make sure there is a carbody in the store/ @, Q/ }: `& i, y' s
if not StoreCarbody.empty() then' g. O- O/ q7 g" G
found := false; N# \+ n2 U; S
counter := 1;: s: ]1 k1 y5 w1 x) Z- Q
8 c \; a9 f" t& `' o4 J2 e1 E4 z+ Y
-- iterate through the store0 ^+ A: |$ Y1 `# p7 y
while not found and counter <= StoreCarbody.xDim loop z ~ O& z0 p- Q! `5 } obj := StoreCarbody.pe(counter,1).cont;/ l% w* i" u+ C4 \! \
if(obj /= void) then! Z8 m9 F4 O& r6 _* F! a
found := true; 2 ^8 K9 K. l% I; x* r! ? end; -- if5 l# j, x9 h Y4 }( m. ?9 f
counter := counter + 1;# R6 w7 G+ Z' s- [, v M) h
end; -- while " Q: w$ N: I( U$ N& ? & G1 t0 h, |# t" J
if found then9 N5 v4 k a% p6 ]( s# l
-- put the carbody on a skid- e" f O9 H. M" k0 t$ Y" v
obj.move(@); ( @: d% p% b/ B; L end; -- if 6 ^. l. }) q M2 R' @+ H end; -- if not StoreCarbody.empty& d( U1 |4 L% J, i6 o! z4 c- @: o2 i
end; 1 U% X% @. u: \1 w8 |里面的found急整个循环不太懂,求高手讲解下?急~~~~