From 7f24eb0cf646431681c05e7de14121eb0bf595bc Mon Sep 17 00:00:00 2001 From: Igor Mats Date: Wed, 8 Apr 2015 21:55:24 +0300 Subject: [PATCH 1/4] Add setStroke method. --- cocos/2d/CCMotionStreak.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocos/2d/CCMotionStreak.h b/cocos/2d/CCMotionStreak.h index 11111b47b9..b836e7864c 100644 --- a/cocos/2d/CCMotionStreak.h +++ b/cocos/2d/CCMotionStreak.h @@ -86,6 +86,11 @@ public: * @param bFastMode True if enabled fast mode. */ inline void setFastMode(bool bFastMode) { _fastMode = bFastMode; } + /** Set stroke. + * + * @param float stroke. + */ + inline void setStroke(float stroke) { _stroke = stroke; } /** Is the starting position initialized or not. * From 60759764ff6283b8378a426ea919f872d9a8ae48 Mon Sep 17 00:00:00 2001 From: Igor Mats Date: Thu, 9 Apr 2015 12:05:21 +0300 Subject: [PATCH 2/4] Add getStroke method. --- cocos/2d/CCMotionStreak.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocos/2d/CCMotionStreak.h b/cocos/2d/CCMotionStreak.h index b836e7864c..f7cfc30dc9 100644 --- a/cocos/2d/CCMotionStreak.h +++ b/cocos/2d/CCMotionStreak.h @@ -86,6 +86,11 @@ public: * @param bFastMode True if enabled fast mode. */ inline void setFastMode(bool bFastMode) { _fastMode = bFastMode; } + /** Get stroke. + * + * @return float stroke. + */ + inline float getStroke() { return _stroke; } /** Set stroke. * * @param float stroke. From f5c61b4f9a50e01071bccabbf69c5527ad3c2ab4 Mon Sep 17 00:00:00 2001 From: Igor Mats Date: Thu, 9 Apr 2015 13:36:17 +0300 Subject: [PATCH 3/4] Ooops. --- cocos/2d/CCMotionStreak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCMotionStreak.h b/cocos/2d/CCMotionStreak.h index f7cfc30dc9..4c1ff56931 100644 --- a/cocos/2d/CCMotionStreak.h +++ b/cocos/2d/CCMotionStreak.h @@ -90,7 +90,7 @@ public: * * @return float stroke. */ - inline float getStroke() { return _stroke; } + inline float getStroke() const { return _stroke; } /** Set stroke. * * @param float stroke. From e54a51be0221c309e5432fa57af9ca24425e9716 Mon Sep 17 00:00:00 2001 From: Igor Mats Date: Mon, 13 Apr 2015 19:24:19 +0300 Subject: [PATCH 4/4] Fix comment. --- cocos/2d/CCMotionStreak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCMotionStreak.h b/cocos/2d/CCMotionStreak.h index 4c1ff56931..5e9f1d6cfd 100644 --- a/cocos/2d/CCMotionStreak.h +++ b/cocos/2d/CCMotionStreak.h @@ -93,7 +93,7 @@ public: inline float getStroke() const { return _stroke; } /** Set stroke. * - * @param float stroke. + * @param stroke The width of stroke. */ inline void setStroke(float stroke) { _stroke = stroke; }