disable MoveTo::reverse()

This commit is contained in:
Jacky 2015-03-10 13:50:53 +08:00
parent 8e6d9d5dd2
commit 605ce58293
2 changed files with 7 additions and 0 deletions

View File

@ -1171,6 +1171,12 @@ void MoveTo::startWithTarget(Node *target)
_positionDelta = _endPosition - target->getPosition3D();
}
MoveTo* MoveTo::reverse() const
{
CCASSERT(false, "reverse() not supported in MoveTo");
return nullptr;
}
//
// SkewTo

View File

@ -549,6 +549,7 @@ public:
// Overrides
//
virtual MoveTo* clone() const override;
virtual MoveTo* reverse() const override;
virtual void startWithTarget(Node *target) override;
CC_CONSTRUCTOR_ACCESS: