is " D( C+ v( O$ @ obj : object; -- first carbody in store3 m! B0 U1 {. U( o
found : boolean; -- found a chassis+ m" Y0 ~9 o: e% b0 Q; N/ ]
counter : integer; -- position in store . B0 h7 Q) O1 ~2 i' [# Odo ; o9 {5 m3 F; y) r, `
-- make sure there is a carbody in the store 9 B. l, s% i" P2 |' F7 t if not StoreCarbody.empty() then ! J1 P9 p( C8 }# m% [ found := false;3 A T5 G, @$ z) c+ j: M5 M
counter := 1; + m2 y4 y- C3 I1 p/ F# Y6 \ 8 S/ R8 b X0 |7 p -- iterate through the store; y) e- j$ x; x/ O
while not found and counter <= StoreCarbody.xDim loop0 J4 X$ i2 m; s1 u' a
obj := StoreCarbody.pe(counter,1).cont;) X1 ^* f- P! g d, H
if(obj /= void) then 8 v- y/ x+ I& h7 K2 B; g found := true; 9 z* m* y$ F& L7 F2 L' l) [ end; -- if % D8 C4 @9 @' S% l! Z s: x counter := counter + 1; / X) N0 @! { @' F0 f end; -- while 6 g/ G. e) G( j1 p; a # D# q6 ]! B* M% m; B; f
if found then 6 o$ q* e- o& d8 H7 h( R/ R -- put the carbody on a skid , g, X0 F) @1 ^5 ^& w obj.move(@); + }, i& S' z0 X3 M end; -- if5 V* |+ j N" G% ?3 b0 J
end; -- if not StoreCarbody.empty5 u& |9 n$ T+ d2 k
end; ; l# H3 r; m, R& |- @里面的found急整个循环不太懂,求高手讲解下?急~~~~