is & L! J* N. `! B6 G obj : object; -- first carbody in store 1 x! h. L4 s: W. v( \! h6 X3 l6 r found : boolean; -- found a chassis; I/ E+ j9 d- o, r$ f( B
counter : integer; -- position in store( z$ T ^. h/ {0 W+ B% K! v
do $ ^$ i( p0 q5 W4 A( L
-- make sure there is a carbody in the store ( s. R+ o% E4 t' h- f5 {: `' i/ I if not StoreCarbody.empty() then5 f- a- y! x7 u+ \9 y
found := false; + E4 V* p7 H. F. Q8 Z counter := 1; 9 D$ |' D( N! u: M 8 S" x- ]; ~# u, P* W -- iterate through the store 8 j! W' x$ t9 `' a2 z8 N3 L while not found and counter <= StoreCarbody.xDim loop+ p* _1 Q' j; O1 Z" ^5 O
obj := StoreCarbody.pe(counter,1).cont;8 b0 q2 y) L& E b6 m& N Y
if(obj /= void) then7 }9 R5 H, V5 ?% g- l; l
found := true;! d1 i7 ~$ |+ n
end; -- if # x, k( C3 ?! n8 W1 {0 I! n+ ?: `5 d counter := counter + 1;6 ]2 Q8 _9 g z$ y! \
end; -- while% z& w/ o: ]! Q; N8 _
% d4 Z) Y3 z" n+ g
if found then. H; J3 ~0 O q" ]( P0 Q+ w/ ~* Z
-- put the carbody on a skid+ k* k/ `# T( B. y) x4 I7 r
obj.move(@);5 O' a! @% S( j+ a
end; -- if; g {% n" m2 W2 V0 L. f; J
end; -- if not StoreCarbody.empty " a) P6 ~! q- H/ N6 Lend; / _' a4 z' s9 X7 [2 y5 y2 J# I里面的found急整个循环不太懂,求高手讲解下?急~~~~