is / \2 v/ J7 {0 q. O& P+ Y0 r0 z obj : object; -- first carbody in store. a6 e( O/ i* t7 p. L; S
found : boolean; -- found a chassis9 v- O, A: c: r6 g0 }- T X7 V
counter : integer; -- position in store) R$ e- I: Q5 H$ p0 S5 X, G" M
do % n0 [9 T1 m6 D U% v
-- make sure there is a carbody in the store4 Q7 W4 c1 J8 s: k0 L( F! ~
if not StoreCarbody.empty() then4 _ a9 S( e4 R1 }6 {' n' v; D$ Q ~
found := false; # T" }2 ^ H$ {% c2 y counter := 1;9 S2 t4 R& U9 e7 M W- l
) m6 O {- ^8 q, t' K9 g/ e
-- iterate through the store 1 } V- R3 k3 T5 } while not found and counter <= StoreCarbody.xDim loop " O5 e% ~' r# o) |2 i obj := StoreCarbody.pe(counter,1).cont; . ^! O ^) b/ m0 V5 q8 Y# C7 i if(obj /= void) then 6 `5 H8 O+ E, M" z found := true;' o) E( ^( g z; Z5 E! C
end; -- if 0 g& @$ w- T! ?0 v X counter := counter + 1;, y" `4 ?3 N, A% f9 c# U. h) I, v
end; -- while% h) P+ a7 F9 T& K" k
. P7 p3 B( [5 I( V7 G7 j, U
if found then) V- \/ U6 a. m9 O
-- put the carbody on a skid * n4 m& j4 k. x- b" O obj.move(@);4 s5 R+ ~! z8 Q4 k. A& W
end; -- if3 v3 ~ a9 n1 B0 O
end; -- if not StoreCarbody.empty8 C( o, d1 S7 T1 L
end;; M# ]6 ~, T5 Z1 S& K; f1 }! J
里面的found急整个循环不太懂,求高手讲解下?急~~~~