is* B6 x' g) l) H' M5 _* f
obj : object; -- first carbody in store6 C4 e$ ~, S; Y2 U; h
found : boolean; -- found a chassis + L0 c; |( G' m: Q" e counter : integer; -- position in store+ s& E o4 M: e. p7 P
do 9 N) M" o: X" {' d1 y
-- make sure there is a carbody in the store; ?4 _% s# O1 T# l
if not StoreCarbody.empty() then 3 x* r, ?% e& |# ~ found := false;; }' k: S5 `4 j, S: L4 E
counter := 1; z/ F. y1 I7 J( ?# |, \9 o) M2 a
5 K8 T# T" k3 ^4 |/ q3 c/ t2 M
-- iterate through the store # D, v5 y8 h: [ b while not found and counter <= StoreCarbody.xDim loop1 D, p) e/ b0 C! A) g* D; L
obj := StoreCarbody.pe(counter,1).cont; 4 X' h+ x9 I/ t0 }& A, y if(obj /= void) then" p5 x! r; e8 R, k/ c! z! m
found := true; ) i3 I# A4 J1 k2 z end; -- if( `, _' B b$ j% y
counter := counter + 1; ~" h+ O. j( q; J& k
end; -- while 6 }+ G2 ^1 _1 N" P- D6 u 9 B3 R/ b9 V* M/ X
if found then a8 N/ G# P/ t" U -- put the carbody on a skid/ I N7 e. O3 L/ P+ a6 K% M
obj.move(@); " F' D5 _& i4 U end; -- if! D5 Q( D3 w) P0 n
end; -- if not StoreCarbody.empty5 t p1 {7 b* s5 J
end; 9 |% u) K5 ]; V; b! g" _1 K里面的found急整个循环不太懂,求高手讲解下?急~~~~