is8 u: _" h' F) U* Y
obj : object; -- first carbody in store% ^, |7 m. w$ j3 A# b
found : boolean; -- found a chassis+ O/ h* c! F) @
counter : integer; -- position in store4 V# w- f4 G; T O
do 5 B0 d# N% G9 y% L( w' F; q
-- make sure there is a carbody in the store " S( g- [* U ^3 V" i! o$ G if not StoreCarbody.empty() then + Y" \4 x8 I% \; G- I! w found := false; 1 w, t. @4 i( _9 j% _& }6 a1 O counter := 1;6 ^. |4 M& U1 l
* ]1 Z2 p0 ?$ e/ w$ N/ @7 m: a -- iterate through the store" O0 i5 d( D8 Z% a- C7 {+ Y
while not found and counter <= StoreCarbody.xDim loop4 }/ V' y2 H$ _) H
obj := StoreCarbody.pe(counter,1).cont;/ }8 x" J- J6 z6 {
if(obj /= void) then6 E8 V" ~4 o" C& a
found := true;# s. U( W) N5 n( y3 m
end; -- if2 u# T" ~7 ~. B. P4 @1 O! G
counter := counter + 1;- I+ r* }. m# @* n
end; -- while ; O& r; J* n9 p. P4 F J * H# c7 y+ X( w0 y! q8 d8 F# }, P if found then" _5 ~" B! C- |3 Z
-- put the carbody on a skid9 K7 s3 o! G# k& I$ L9 [
obj.move(@);2 U* K3 j$ v; R9 W
end; -- if$ @ }9 E: H. @! Q k- g
end; -- if not StoreCarbody.empty3 c/ D1 I2 W& @* J
end;2 b: Z( A! a, M4 Y
里面的found急整个循环不太懂,求高手讲解下?急~~~~