| 46 | } |
| 47 | |
| 48 | void Highlight::tweenTo(const c2d::Vector2f &position) { |
| 49 | if (tween != nullptr) { |
| 50 | float seconds = (float) c2d_renderer->getInput()->getRepeatDelay() * 0.001f / 5; |
| 51 | tween->setFromTo(getPosition(), position, seconds); |
| 52 | tween->play(TweenDirection::Forward, true); |
| 53 | } else { |
| 54 | Transformable::setPosition(position); |
| 55 | } |
| 56 | } |
no outgoing calls
no test coverage detected