is * P# N; }0 d" s" W: Z# i obj : object; -- first carbody in store$ ^8 \2 T, n1 I! w; X: M; P
found : boolean; -- found a chassis 0 s* e( R% B+ W- K1 W5 i& p counter : integer; -- position in store0 B& O9 d6 g$ Y* o( U2 @$ J
do " p! a% T( D& r- v -- make sure there is a carbody in the store ( u2 ^' C1 m3 P0 }( I9 G$ C if not StoreCarbody.empty() then+ M9 [* T; Y! ~
found := false; ( d/ k& e% N3 h, ` counter := 1;3 {! L2 ^5 K* _2 ~$ W! B. b. g
* r( F2 M5 C9 ?! y8 q0 G7 F -- iterate through the store, w9 z3 m; u0 `0 V+ ]
while not found and counter <= StoreCarbody.xDim loop- e+ l7 n4 r" G4 T& _
obj := StoreCarbody.pe(counter,1).cont; n* A) \, T. \, D$ l/ M! u- t& W$ D5 u if(obj /= void) then9 p5 X1 u8 x( W3 L
found := true;9 L- |( K5 Q4 X- B6 V6 k W
end; -- if" m) k3 w) f! t1 X1 i! m. r
counter := counter + 1; , ~2 s7 a& G% ?/ J1 ^; c end; -- while 3 {5 G+ O9 i3 y 5 G3 D; l' A" G
if found then* | f8 b! ?% N9 v4 \3 J
-- put the carbody on a skid' r( K8 N5 r: v& m) ^ b7 I
obj.move(@); 9 `3 ~7 q; Q5 g. j( G7 s end; -- if ( M, C! l. Q6 u+ R7 \- E7 f end; -- if not StoreCarbody.empty1 p0 L; ^( j0 ^3 G: |9 b
end; " \! Q3 `, U# j里面的found急整个循环不太懂,求高手讲解下?急~~~~