|
原模型的代码是:+ a( l. V* h. K- Z8 M6 Y
$ ^) F/ R3 r% N. R
if(content(current)>1)2 d6 s0 f" V8 U: i: m
{
: |6 z2 T! G8 v treenode item1=rank(current,1);' k/ G3 a" l0 i
treenode item2=rank(current,2);
Z6 A% `8 J# W; D" b ' G" @! ~8 }9 u$ `4 w8 L8 f
treenode ts=createemptytasksequence(centerobject(current,1),0,0);; }1 t% ]# h- Z9 j7 L
; _6 E. @% J4 O
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);9 H0 \" d( b' m0 z7 D
inserttask(ts,TASKTYPE_FRLOAD,item1,current,0);
4 \8 ]+ O0 ]) o$ t5 y inserttask(ts,TASKTYPE_BREAK,NULL,NULL);
: | t! |' [; Y inserttask(ts,TASKTYPE_TRAVEL,centerobject(current,2),NULL);
" X0 c+ ~# [" ^5 u& I inserttask(ts,TASKTYPE_FRUNLOAD,item1,centerobject(current,2),0);
# P5 n' f% w. a 9 D$ G# r/ _( E7 d, u- Z C
dispatchtasksequence(ts);
+ B0 i# k- J9 w j- r G+ Y }' ?, c# k6 q+ ?% T! t1 h6 x. s
& S {* o, t5 q) [ ]
只是用rank函数获取了流动实体的指针,为啥不行呢? |
|