|
原模型的代码是:
8 ] A+ x, J/ w* S4 w- s5 W3 Z3 y( o( M1 \
if(content(current)>1)
, Z+ J' A9 k. R1 A+ f+ J. Y{1 r3 a+ }1 t* C2 u
treenode item1=rank(current,1);# f4 J r" N8 Z* ^9 U
treenode item2=rank(current,2);
4 h7 Y1 q1 c/ X$ D
) i" j# u* W( u treenode ts=createemptytasksequence(centerobject(current,1),0,0);
9 _: q$ b& W o9 Y$ a# H2 c( N3 K& L 5 `# J, D# m, V
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
( h1 g8 E5 B9 \; Y inserttask(ts,TASKTYPE_FRLOAD,item1,current,0);* P9 K( f$ {% R5 L* y
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);
- g( Q* c% L* j0 e! E$ z% |/ s inserttask(ts,TASKTYPE_TRAVEL,centerobject(current,2),NULL);
: t3 f, J; T# e, `# e inserttask(ts,TASKTYPE_FRUNLOAD,item1,centerobject(current,2),0);
* s; y& T5 o% J( i+ a5 G. {1 R * e; a) L: c& _* Q1 P
dispatchtasksequence(ts); 2 k6 a( ~( C1 ~. B
}
2 Q# ^3 u A ^9 ^! F) {7 k
( {4 M2 s$ J$ ]7 t. ?, i5 z只是用rank函数获取了流动实体的指针,为啥不行呢? |
|