is . g. i3 {6 A7 A3 b obj : object; -- first carbody in store 3 d* E5 p W! s( W# H found : boolean; -- found a chassis6 Y+ Z- L* l1 N5 x" M, x
counter : integer; -- position in store$ W% e8 i: n- R, F; |& j" Y
do 6 T9 h' q. I/ m& A" Q/ M
-- make sure there is a carbody in the store ' d0 C2 j# O, S! v/ B if not StoreCarbody.empty() then) Y4 f3 p5 O7 }8 J1 V
found := false;; |1 |5 K/ _8 D9 {- U
counter := 1; * r2 |" O! a% o4 t/ c0 f. ~ : u, C/ o) |4 H9 e
-- iterate through the store # h5 K3 Q0 \6 h9 } while not found and counter <= StoreCarbody.xDim loop * U, ]7 C. A2 i/ \ obj := StoreCarbody.pe(counter,1).cont;6 q4 Y' m/ z+ [ i5 e
if(obj /= void) then" p4 F. V3 s a$ _2 Y' x, y
found := true;# M4 p& _8 _- i+ w' g! i
end; -- if 9 P$ l: s* R$ w4 a4 P counter := counter + 1; $ w O$ `9 z: W; C3 g) z end; -- while 0 K% ]3 z! g9 }/ g ( J' I- H! v4 u2 A' m if found then/ f' B9 \4 b% M+ w6 u
-- put the carbody on a skid . b. \# U9 `/ n obj.move(@); ' [* d) e8 `- W& M0 C( S end; -- if1 A- m/ y( a! w6 ~
end; -- if not StoreCarbody.empty% t2 R8 N: ~5 p5 `5 L1 [
end; D2 ?; [& d) O1 `0 _) O/ \! Y里面的found急整个循环不太懂,求高手讲解下?急~~~~