const DuckList selected_ducks(duckmatic->get_selected_ducks());
DuckList::const_iterator iter;
+ Time time(duckmatic->get_time());
+
// do the Vertex and Position ducks first
for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
if ((*iter)->get_type() == Duck::TYPE_VERTEX ||
if (axis==AXIS_X) p[0] = -(p[0]-center[0]) + center[0];
else if (axis==AXIS_Y) p[1] = -(p[1]-center[1]) + center[1];
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
// then do the other ducks
if (axis==AXIS_X) p[0] = -(p[0]-center[0]) + center[0];
else if (axis==AXIS_Y) p[1] = -(p[1]-center[1]) + center[1];
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
}
int i;
+ Time time(duckmatic->get_time());
+
// process vertex and position ducks first
for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
{
dist=0;
last_[i]=vect*dist;
- (*iter)->set_trans_point(p+last_[i]);
+ (*iter)->set_trans_point(p+last_[i], time);
}
// then process non vertex and non position ducks
dist=0;
last_[i]=vect*dist;
- (*iter)->set_trans_point(p+last_[i]);
+ (*iter)->set_trans_point(p+last_[i], time);
}
last_translate_=vect;
p[1]=-sine*x[0]+cosine*x[1];
if(scale)p*=mag;
p+=center;
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
{
p[1]=-sine*x[0]+cosine*x[1];
if(scale)p*=mag;
p+=center;
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
} else if (scale)
{
p[0]*=vect[0];
p[1]*=vect[1];
p+=center;
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
{
p[0]*=vect[0];
p[1]*=vect[1];
p+=center;
- (*iter)->set_trans_point(p);
+ (*iter)->set_trans_point(p, time);
}
}
last_move=vect;