is 2 R. m- Q, g6 P- N! u obj : object; -- first carbody in store8 B w" }# M( v* b7 \: }" Q4 o6 @# n
found : boolean; -- found a chassis( `- i" J; \0 c+ m7 T: u
counter : integer; -- position in store$ x) y* }$ X. ?/ O1 E$ a* x N; H1 Y
do 8 ^- M2 F" R* w/ T* u. o% S -- make sure there is a carbody in the store( e( F: o& e% @/ `$ A
if not StoreCarbody.empty() then ; N" [# K& X0 c" C9 ^ found := false;: K, _' c4 l; ?4 t" N
counter := 1; 5 X9 k, y3 V8 K# P4 @1 B2 h6 n , ]1 X- u/ ~3 D& Q( z3 D R: K9 J- a -- iterate through the store6 N9 Z+ J7 i/ h+ f: ?0 M
while not found and counter <= StoreCarbody.xDim loop/ n5 g9 Y2 O0 d3 v( G
obj := StoreCarbody.pe(counter,1).cont; M4 \& U3 D( D E
if(obj /= void) then B8 R' u) M* ^" x |4 t
found := true; % _, X7 p4 R+ h end; -- if , e" l2 y& B# Z i) m- T7 l5 }0 n counter := counter + 1;) {- v$ {3 F3 h( Z
end; -- while # z7 D( r4 t, ?1 v. P: D4 ` 3 k0 J" v6 l2 O3 ^1 b# U5 Y
if found then$ E' W( R* D: E |2 ?3 a
-- put the carbody on a skid - D( A0 r4 N4 Y/ j4 t obj.move(@); 0 o, D5 d+ z1 Z+ |; H end; -- if , n O8 f4 ^% z0 E end; -- if not StoreCarbody.empty( S- r, Y' c3 F- V
end;% e& K. f% L5 D- S3 c+ y- t6 _9 p
里面的found急整个循环不太懂,求高手讲解下?急~~~~