is + W! @7 U4 e. J obj : object; -- first carbody in store& Q: V) N, j: J! ?; z
found : boolean; -- found a chassis% m# r; H2 M1 P4 i7 d U+ S
counter : integer; -- position in store+ ^* x% W7 _( m/ y6 R
do & o$ p- i6 |2 x# j" ] -- make sure there is a carbody in the store' D$ R! }2 X- V3 {$ X" r' K# b
if not StoreCarbody.empty() then ; D4 u7 Q/ A* {& ?0 w, } found := false; 6 A- e' U4 D. B0 q4 Z1 }6 y# R4 |) ] counter := 1; 3 z( P, G+ e; R* p! u4 ~2 V + Q% H, u/ ]$ K# j( Z
-- iterate through the store' V3 t2 P, I: \ H9 x
while not found and counter <= StoreCarbody.xDim loop$ r; J# L# a1 {2 j4 D
obj := StoreCarbody.pe(counter,1).cont; * ]' a9 l# X6 D* \0 u" T if(obj /= void) then( t1 _; N4 ]$ \; k
found := true; ) b4 R1 q8 L0 u( p: K8 \6 f; t" | end; -- if2 P& Y7 k. z3 H& e
counter := counter + 1; $ ^1 j! T5 l& J1 J- l end; -- while/ S ~9 i1 s- R& j, }0 d
' h7 t6 \5 Q5 c) n/ Y if found then & v9 u, V# o0 `( {+ q -- put the carbody on a skid 4 V% w9 n8 C/ F obj.move(@); # R" Z+ o; C) n0 e6 H end; -- if1 e0 D9 O2 j8 ^: u
end; -- if not StoreCarbody.empty2 v# _; w5 @8 n" S& n/ c5 A l
end;$ B' e% r) U- D- I6 ^ M3 H
里面的found急整个循环不太懂,求高手讲解下?急~~~~