|
原模型的代码是:
' J$ Z7 ?" w' T" M' J: E6 |. R# K; ^
if(content(current)>1)
/ x+ `! e1 j7 R5 E6 N% F! c9 m& P{' c+ V( G, O2 B0 D% u
treenode item1=rank(current,1);
" n+ A- a3 F6 F treenode item2=rank(current,2);, z6 g7 _/ y7 J- _
4 i9 ~' y. G- J q. Z2 S
treenode ts=createemptytasksequence(centerobject(current,1),0,0);
! y+ M2 a i4 t0 K% ~2 h; D& c
/ Z- _# o" v. P T0 x inserttask(ts,TASKTYPE_TRAVEL,current,NULL);% N+ V/ V- k! p* z4 P
inserttask(ts,TASKTYPE_FRLOAD,item1,current,0);& w7 `1 @9 ^5 ~
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);
9 N! l0 v% Q' w% j% ~ inserttask(ts,TASKTYPE_TRAVEL,centerobject(current,2),NULL);- W& a3 R" e4 k: k$ J$ p
inserttask(ts,TASKTYPE_FRUNLOAD,item1,centerobject(current,2),0);1 S3 o7 \8 T B- {, u9 J
" s* }% P7 S. D9 ~' U, I5 D. q dispatchtasksequence(ts); ) L+ P, w6 e9 x* w6 v
}
; U" j7 v" {, ?* G0 [. |- s0 b( m* Q. s' e3 q0 n9 ~4 `9 g
只是用rank函数获取了流动实体的指针,为啥不行呢? |
|