|
在基本传送带上,当临时实体达到某一点后 停止运动20S,然后继续运动(这个过程仿真钟是一直运行的),拟采用发送消息的方式,求解答:
/ C0 ^, q' w9 j! G$ @' l* N已写代码:switch(messagetype)3 ?( I3 E; ?4 f: d% u& B! _
{case enterheatm:
" g7 W* r1 ~: n+ Sstopinput(current);1 H8 U; m) ` {5 K ]/ q; ^4 w3 [
senddelayedmessage(current,20,current,outheatm,0,0);
- n: U+ l; e* z2 i break;9 r6 e- A8 O! t- H4 V
case outheatm:
e2 ^8 s$ O4 I3 }6 k openoutput(current); 1 N1 J% [+ M4 H) P
break;, `, @" `; _" L4 ~
}红色的部分不知道用什么!!消息也不知道对否。 |
|