Index: cc/CCAnimationCurve.cpp |
diff --git a/cc/CCAnimationCurve.cpp b/cc/CCAnimationCurve.cpp |
index ae5ccdf2b0ae9c597b3ed22ece845ce30de229ba..7cd01587d4b29a7b57c93a3ebdf287f936936008 100644 |
--- a/cc/CCAnimationCurve.cpp |
+++ b/cc/CCAnimationCurve.cpp |
@@ -14,10 +14,20 @@ const CCFloatAnimationCurve* CCAnimationCurve::toFloatAnimationCurve() const |
return static_cast<const CCFloatAnimationCurve*>(this); |
} |
+CCAnimationCurve::Type CCFloatAnimationCurve::type() const |
+{ |
+ return Float; |
+} |
+ |
const CCTransformAnimationCurve* CCAnimationCurve::toTransformAnimationCurve() const |
{ |
ASSERT(type() == CCAnimationCurve::Transform); |
return static_cast<const CCTransformAnimationCurve*>(this); |
} |
+CCAnimationCurve::Type CCTransformAnimationCurve::type() const |
+{ |
+ return Transform; |
+} |
+ |
} // namespace cc |