|
原模型的代码是:
9 |# |$ T( d% X- d3 ?
) Y: F; N% G# T% W, cif(content(current)>1)- q+ _0 y( j$ n2 i; h
{
. {4 Y) X4 {/ n. z- y% |! V, ] treenode item1=rank(current,1);
# G" C4 Y: y4 E$ `+ a2 x treenode item2=rank(current,2);
8 |) ~5 ?. q2 u( k! B4 E
- V% q: y& O- ~! z6 }5 ] treenode ts=createemptytasksequence(centerobject(current,1),0,0); i' T, l" G2 a, W% Y9 ^
- @$ X! V" B+ i! I; U inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
, C6 N$ v, g% v( E5 P# Y, ^' g: M# l inserttask(ts,TASKTYPE_FRLOAD,item1,current,0);
, F9 S& O: ^8 J% w/ s inserttask(ts,TASKTYPE_BREAK,NULL,NULL);6 {2 p( p/ t% G% o2 X7 @0 V
inserttask(ts,TASKTYPE_TRAVEL,centerobject(current,2),NULL);
, r9 h4 m, j% m2 w, ]7 E; y inserttask(ts,TASKTYPE_FRUNLOAD,item1,centerobject(current,2),0);6 z( g) F9 z) t, b. {
, P& r- f6 h4 `' h9 W# o
dispatchtasksequence(ts); ) O) [; J9 G8 h: [; M
}) g/ e% |# b( O& P$ d- F
" t' s. @4 m' o. W0 s5 u4 r1 |只是用rank函数获取了流动实体的指针,为啥不行呢? |
|