CCActionGrid3D.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. /****************************************************************************
  2. Copyright (c) 2009 On-Core
  3. Copyright (c) 2010-2012 cocos2d-x.org
  4. Copyright (c) 2013-2016 Chukong Technologies Inc.
  5. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
  6. http://www.cocos2d-x.org
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. THE SOFTWARE.
  22. ****************************************************************************/
  23. #ifndef __ACTION_CCGRID3D_ACTION_H__
  24. #define __ACTION_CCGRID3D_ACTION_H__
  25. #include "2d/CCActionGrid.h"
  26. NS_CC_BEGIN
  27. /**
  28. * @addtogroup actions
  29. * @{
  30. */
  31. /**
  32. @brief Waves3D action.
  33. @details This action is used for take effect on the target node as 3D waves.
  34. You can control the effect by these parameters:
  35. duration, grid size, waves count, amplitude.
  36. */
  37. class CC_DLL Waves3D : public Grid3DAction
  38. {
  39. public:
  40. /**
  41. @brief Create an action with duration, grid size, waves and amplitude.
  42. @param duration Specify the duration of the Waves3D action. It's a value in seconds.
  43. @param gridSize Specify the size of the grid.
  44. @param waves Specify the waves count of the Waves3D action.
  45. @param amplitude Specify the amplitude of the Waves3D action.
  46. @return If the creation success, return a pointer of Waves3D action; otherwise, return nil.
  47. */
  48. static Waves3D* create(float duration, const Size& gridSize, unsigned int waves, float amplitude);
  49. /**
  50. @brief Get the amplitude of the effect.
  51. @return Return the amplitude of the effect.
  52. */
  53. float getAmplitude() const { return _amplitude; }
  54. /**
  55. @brief Set the amplitude to the effect.
  56. @param amplitude The value of amplitude will be set.
  57. */
  58. void setAmplitude(float amplitude) { _amplitude = amplitude; }
  59. /**
  60. @brief Get the amplitude rate of the effect.
  61. @return Return the amplitude rate of the effect.
  62. */
  63. float getAmplitudeRate() const { return _amplitudeRate; }
  64. /**
  65. @brief Set the amplitude rate of the effect.
  66. @param amplitudeRate The value of amplitude rate will be set.
  67. */
  68. void setAmplitudeRate(float amplitudeRate) { _amplitudeRate = amplitudeRate; }
  69. // Overrides
  70. virtual Waves3D* clone() const override;
  71. virtual void update(float time) override;
  72. CC_CONSTRUCTOR_ACCESS:
  73. Waves3D() {}
  74. virtual ~Waves3D() {}
  75. /**
  76. @brief Initializes an action with duration, grid size, waves and amplitude.
  77. @param duration Specify the duration of the Waves3D action. It's a value in seconds.
  78. @param gridSize Specify the size of the grid.
  79. @param waves Specify the waves count of the Waves3D action.
  80. @param amplitude Specify the amplitude of the Waves3D action.
  81. @return If the initialization success, return true; otherwise, return false.
  82. */
  83. bool initWithDuration(float duration, const Size& gridSize, unsigned int waves, float amplitude);
  84. protected:
  85. unsigned int _waves;
  86. float _amplitude;
  87. float _amplitudeRate;
  88. private:
  89. CC_DISALLOW_COPY_AND_ASSIGN(Waves3D);
  90. };
  91. /**
  92. @brief FlipX3D action.
  93. @details This action is used for flipping the target node on the x axis.
  94. */
  95. class CC_DLL FlipX3D : public Grid3DAction
  96. {
  97. public:
  98. /**
  99. @brief Create the action with duration.
  100. @param duration Specify the duration of the FilpX3D action. It's a value in seconds.
  101. @return If the creation success, return a pointer of FilpX3D action; otherwise, return nil.
  102. */
  103. static FlipX3D* create(float duration);
  104. // Override
  105. virtual FlipX3D* clone() const override;
  106. virtual void update(float time) override;
  107. CC_CONSTRUCTOR_ACCESS:
  108. FlipX3D() {}
  109. virtual ~FlipX3D() {}
  110. /**
  111. @brief Initializes an action with duration.
  112. @param duration Specify the duration of the FlipX3D action. It's a value in seconds.
  113. @return If the initialization success, return true; otherwise, return false.
  114. */
  115. bool initWithDuration(float duration);
  116. /**
  117. @brief Initializes an action with duration and grid size.
  118. @param gridSize Specify the grid size of the FlipX3D action.
  119. @param duration Specify the duration of the FlipX3D action. It's a value in seconds.
  120. @return If the initialization success, return true; otherwise, return false.
  121. */
  122. virtual bool initWithSize(const Size& gridSize, float duration);
  123. private:
  124. CC_DISALLOW_COPY_AND_ASSIGN(FlipX3D);
  125. };
  126. /**
  127. @brief FlipY3D action.
  128. @details This action is used for flipping the target node on the y axis.
  129. */
  130. class CC_DLL FlipY3D : public FlipX3D
  131. {
  132. public:
  133. /**
  134. @brief Create the action with duration.
  135. @param duration Specify the duration of the FlipY3D action. It's a value in seconds.
  136. @return If the creation success, return a pointer of FlipY3D action; otherwise, return nil.
  137. */
  138. static FlipY3D* create(float duration);
  139. // Overrides
  140. virtual void update(float time) override;
  141. virtual FlipY3D* clone() const override;
  142. CC_CONSTRUCTOR_ACCESS:
  143. FlipY3D() {}
  144. virtual ~FlipY3D() {}
  145. private:
  146. CC_DISALLOW_COPY_AND_ASSIGN(FlipY3D);
  147. };
  148. /**
  149. @brief Lens3D action.
  150. @details This action is used for take effect on the target node as lens.
  151. You can create the action by these parameters:
  152. duration, grid size, center position of lens, radius of lens.
  153. Also you can change the lens effect value & whether effect is concave by the setter methods.
  154. */
  155. class CC_DLL Lens3D : public Grid3DAction
  156. {
  157. public:
  158. /**
  159. @brief Create the action with center position, radius, a grid size and duration.
  160. @param duration Specify the duration of the Lens3D action. It's a value in seconds.
  161. @param gridSize Specify the size of the grid.
  162. @param position Specify the center position of the lens.
  163. @param radius Specify the radius of the lens.
  164. @return If the creation success, return a pointer of Lens3D action; otherwise, return nil.
  165. */
  166. static Lens3D* create(float duration, const Size& gridSize, const Vec2& position, float radius);
  167. /**
  168. @brief Get the value of lens effect. Default value is 0.7.
  169. @return The value of lens effect.
  170. */
  171. float getLensEffect() const { return _lensEffect; }
  172. /**
  173. @brief Set the value of lens effect.
  174. @param lensEffect The value of lens effect will be set.
  175. */
  176. void setLensEffect(float lensEffect) { _lensEffect = lensEffect; }
  177. /**
  178. @brief Set whether lens is concave.
  179. @param concave Whether lens is concave.
  180. */
  181. void setConcave(bool concave) { _concave = concave; }
  182. /**
  183. @brief Get the center position of lens effect.
  184. @return The center position of lens effect.
  185. */
  186. const Vec2& getPosition() const { return _position; }
  187. /**
  188. @brief Set the center position of lens effect.
  189. @param position The center position will be set.
  190. */
  191. void setPosition(const Vec2& position);
  192. // Overrides
  193. virtual Lens3D* clone() const override;
  194. virtual void update(float time) override;
  195. CC_CONSTRUCTOR_ACCESS:
  196. Lens3D() {}
  197. virtual ~Lens3D() {}
  198. /**
  199. @brief Initializes the action with center position, radius, grid size and duration.
  200. @param duration Specify the duration of the Lens3D action. It's a value in seconds.
  201. @param gridSize Specify the size of the grid.
  202. @param position Specify the center position of the lens effect.
  203. @param radius Specify the radius of the lens effect.
  204. @return If the initialization success, return true; otherwise, return false.
  205. */
  206. bool initWithDuration(float duration, const Size& gridSize, const Vec2& position, float radius);
  207. protected:
  208. /* lens center position */
  209. Vec2 _position;
  210. float _radius;
  211. /** lens effect. Defaults to 0.7 - 0 means no effect, 1 is very strong effect */
  212. float _lensEffect;
  213. /** lens is concave. (true = concave, false = convex) default is convex i.e. false */
  214. bool _concave;
  215. bool _dirty;
  216. private:
  217. CC_DISALLOW_COPY_AND_ASSIGN(Lens3D);
  218. };
  219. /**
  220. @brief Ripple3D action.
  221. @details This action is used for take effect on the target node as ripple.
  222. You can create the action by these parameters:
  223. duration, grid size, center position of ripple,
  224. radius of ripple, waves count, amplitude.
  225. */
  226. class CC_DLL Ripple3D : public Grid3DAction
  227. {
  228. public:
  229. /**
  230. @brief Create the action with center position, radius, number of waves, amplitude, a grid size and duration.
  231. @param duration Specify the duration of the Ripple3D action. It's a value in seconds.
  232. @param gridSize Specify the size of the grid.
  233. @param position Specify the center position of the ripple effect.
  234. @param radius Specify the radius of the ripple effect.
  235. @param waves Specify the waves count of the ripple effect.
  236. @param amplitude Specify the amplitude of the ripple effect.
  237. @return If the creation success, return a pointer of Ripple3D action; otherwise, return nil.
  238. */
  239. static Ripple3D* create(float duration, const Size& gridSize, const Vec2& position, float radius, unsigned int waves, float amplitude);
  240. /**
  241. @brief Get the center position of ripple effect.
  242. @return The center position of ripple effect.
  243. */
  244. const Vec2& getPosition() const { return _position; }
  245. /**
  246. @brief Set the center position of ripple effect.
  247. @param position The center position of ripple effect will be set.
  248. */
  249. void setPosition(const Vec2& position);
  250. /**
  251. @brief Get the amplitude of ripple effect.
  252. @return The amplitude of ripple effect.
  253. */
  254. float getAmplitude() const { return _amplitude; }
  255. /**
  256. @brief Set the amplitude of ripple effect.
  257. @param fAmplitude The amplitude of ripple effect.
  258. */
  259. void setAmplitude(float fAmplitude) { _amplitude = fAmplitude; }
  260. /**
  261. @brief Get the amplitude rate of ripple effect.
  262. @return The amplitude rate of ripple effect.
  263. */
  264. float getAmplitudeRate() const { return _amplitudeRate; }
  265. /**
  266. @brief Set the amplitude rate of ripple effect.
  267. @param fAmplitudeRate The amplitude rate of ripple effect.
  268. */
  269. void setAmplitudeRate(float fAmplitudeRate) { _amplitudeRate = fAmplitudeRate; }
  270. // Override
  271. virtual Ripple3D* clone() const override;
  272. virtual void update(float time) override;
  273. CC_CONSTRUCTOR_ACCESS:
  274. Ripple3D() {}
  275. virtual ~Ripple3D() {}
  276. /**
  277. @brief Initializes the action with center position, radius, number of waves, amplitude, a grid size and duration.
  278. @param duration Specify the duration of the Ripple3D action. It's a value in seconds.
  279. @param gridSize Specify the size of the grid.
  280. @param position Specify the center position of the ripple effect.
  281. @param radius Specify the radius of the ripple effect.
  282. @param waves Specify the waves count of the ripple effect.
  283. @param amplitude Specify the amplitude of the ripple effect.
  284. @return If the initialization success, return true; otherwise, return false.
  285. */
  286. bool initWithDuration(float duration, const Size& gridSize, const Vec2& position, float radius, unsigned int waves, float amplitude);
  287. protected:
  288. /* center position */
  289. Vec2 _position;
  290. float _radius;
  291. unsigned int _waves;
  292. float _amplitude;
  293. float _amplitudeRate;
  294. private:
  295. CC_DISALLOW_COPY_AND_ASSIGN(Ripple3D);
  296. };
  297. /**
  298. @brief Shaky3D action.
  299. @details This action is used for take effect on the target node as shaky.
  300. You can create the action by these parameters:
  301. duration, grid size, range, whether shake on the z axis.
  302. */
  303. class CC_DLL Shaky3D : public Grid3DAction
  304. {
  305. public:
  306. /**
  307. @brief Create the action with a range, shake Z vertices, a grid and duration.
  308. @param initWithDuration Specify the duration of the Shaky3D action. It's a value in seconds.
  309. @param gridSize Specify the size of the grid.
  310. @param range Specify the range of the shaky effect.
  311. @param shakeZ Specify whether shake on the z axis.
  312. @return If the creation success, return a pointer of Shaky3D action; otherwise, return nil.
  313. */
  314. static Shaky3D* create(float initWithDuration, const Size& gridSize, int range, bool shakeZ);
  315. // Overrides
  316. virtual Shaky3D* clone() const override;
  317. virtual void update(float time) override;
  318. CC_CONSTRUCTOR_ACCESS:
  319. Shaky3D() {}
  320. virtual ~Shaky3D() {}
  321. /**
  322. @brief Initializes the action with a range, shake Z vertices, grid size and duration.
  323. @param duration Specify the duration of the Shaky3D action. It's a value in seconds.
  324. @param gridSize Specify the size of the grid.
  325. @param range Specify the range of the shaky effect.
  326. @param shakeZ Specify whether shake on the z axis.
  327. @return If the Initialization success, return true; otherwise, return false.
  328. */
  329. bool initWithDuration(float duration, const Size& gridSize, int range, bool shakeZ);
  330. protected:
  331. int _randrange;
  332. bool _shakeZ;
  333. private:
  334. CC_DISALLOW_COPY_AND_ASSIGN(Shaky3D);
  335. };
  336. /**
  337. @brief Liquid action.
  338. @details This action is used for take effect on the target node as liquid.
  339. You can create the action by these parameters:
  340. duration, grid size, waves count, amplitude of the liquid effect.
  341. */
  342. class CC_DLL Liquid : public Grid3DAction
  343. {
  344. public:
  345. /**
  346. @brief Create the action with amplitude, grid size, waves count and duration.
  347. @param duration Specify the duration of the Liquid action. It's a value in seconds.
  348. @param gridSize Specify the size of the grid.
  349. @param waves Specify the waves count of the Liquid action.
  350. @param amplitude Specify the amplitude of the Liquid action.
  351. @return If the creation success, return a pointer of Liquid action; otherwise, return nil.
  352. */
  353. static Liquid* create(float duration, const Size& gridSize, unsigned int waves, float amplitude);
  354. /**
  355. @brief Get the amplitude of the effect.
  356. @return Return the amplitude of the effect.
  357. */
  358. float getAmplitude() const { return _amplitude; }
  359. /**
  360. @brief Set the amplitude to the effect.
  361. @param amplitude The value of amplitude will be set.
  362. */
  363. void setAmplitude(float amplitude) { _amplitude = amplitude; }
  364. /**
  365. @brief Get the amplitude rate of the effect.
  366. @return Return the amplitude rate of the effect.
  367. */
  368. float getAmplitudeRate() const { return _amplitudeRate; }
  369. /**
  370. @brief Set the amplitude rate of the effect.
  371. @param amplitudeRate The value of amplitude rate will be set.
  372. */
  373. void setAmplitudeRate(float amplitudeRate) { _amplitudeRate = amplitudeRate; }
  374. // Overrides
  375. virtual Liquid* clone() const override;
  376. virtual void update(float time) override;
  377. CC_CONSTRUCTOR_ACCESS:
  378. Liquid() {}
  379. virtual ~Liquid() {}
  380. /**
  381. @brief Initializes the action with amplitude, grid size, waves count and duration.
  382. @param duration Specify the duration of the Liquid action. It's a value in seconds.
  383. @param gridSize Specify the size of the grid.
  384. @param waves Specify the waves count of the Liquid action.
  385. @param amplitude Specify the amplitude of the Liquid action.
  386. @return If the initialization success, return true; otherwise, return false.
  387. */
  388. bool initWithDuration(float duration, const Size& gridSize, unsigned int waves, float amplitude);
  389. protected:
  390. unsigned int _waves;
  391. float _amplitude;
  392. float _amplitudeRate;
  393. private:
  394. CC_DISALLOW_COPY_AND_ASSIGN(Liquid);
  395. };
  396. /**
  397. @brief Waves action.
  398. @details This action is used for take effect on the target node as waves.
  399. You can control the effect by these parameters:
  400. duration, grid size, waves count, amplitude,
  401. whether waves on horizontal and whether waves on vertical.
  402. */
  403. class CC_DLL Waves : public Grid3DAction
  404. {
  405. public:
  406. /**
  407. @brief Create the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.
  408. @param duration Specify the duration of the Waves action. It's a value in seconds.
  409. @param gridSize Specify the size of the grid.
  410. @param waves Specify the waves count of the Waves action.
  411. @param amplitude Specify the amplitude of the Waves action.
  412. @param horizontal Specify whether waves on horizontal.
  413. @param vertical Specify whether waves on vertical.
  414. @return If the creation success, return a pointer of Waves action; otherwise, return nil.
  415. */
  416. static Waves* create(float duration, const Size& gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical);
  417. /**
  418. @brief Get the amplitude of the effect.
  419. @return Return the amplitude of the effect.
  420. */
  421. float getAmplitude() const { return _amplitude; }
  422. /**
  423. @brief Set the amplitude to the effect.
  424. @param amplitude The value of amplitude will be set.
  425. */
  426. void setAmplitude(float amplitude) { _amplitude = amplitude; }
  427. /**
  428. @brief Get the amplitude rate of the effect.
  429. @return Return the amplitude rate of the effect.
  430. */
  431. float getAmplitudeRate() const { return _amplitudeRate; }
  432. /**
  433. @brief Set the amplitude rate of the effect.
  434. @param amplitudeRate The value of amplitude rate will be set.
  435. */
  436. void setAmplitudeRate(float amplitudeRate) { _amplitudeRate = amplitudeRate; }
  437. // Overrides
  438. virtual Waves* clone() const override;
  439. virtual void update(float time) override;
  440. CC_CONSTRUCTOR_ACCESS:
  441. Waves() {}
  442. virtual ~Waves() {}
  443. /**
  444. @brief Initializes the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.
  445. @param duration Specify the duration of the Waves action. It's a value in seconds.
  446. @param gridSize Specify the size of the grid.
  447. @param waves Specify the waves count of the Waves action.
  448. @param amplitude Specify the amplitude of the Waves action.
  449. @param horizontal Specify whether waves on horizontal.
  450. @param vertical Specify whether waves on vertical.
  451. @return If the initialization success, return true; otherwise, return false.
  452. */
  453. bool initWithDuration(float duration, const Size& gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical);
  454. protected:
  455. unsigned int _waves;
  456. float _amplitude;
  457. float _amplitudeRate;
  458. bool _vertical;
  459. bool _horizontal;
  460. private:
  461. CC_DISALLOW_COPY_AND_ASSIGN(Waves);
  462. };
  463. /**
  464. @brief Twirl action.
  465. @details This action is used for take effect on the target node as twirl.
  466. You can control the effect by these parameters:
  467. duration, grid size, center position, twirls count, amplitude.
  468. */
  469. class CC_DLL Twirl : public Grid3DAction
  470. {
  471. public:
  472. /**
  473. @brief Create the action with center position, number of twirls, amplitude, a grid size and duration.
  474. @param duration Specify the duration of the Twirl action. It's a value in seconds.
  475. @param gridSize Specify the size of the grid.
  476. @param position Specify the center position of the twirl action.
  477. @param twirls Specify the twirls count of the Twirl action.
  478. @param amplitude Specify the amplitude of the Twirl action.
  479. @return If the creation success, return a pointer of Twirl action; otherwise, return nil.
  480. */
  481. static Twirl* create(float duration, const Size& gridSize, const Vec2& position, unsigned int twirls, float amplitude);
  482. /**
  483. @brief Get the center position of twirl action.
  484. @return The center position of twirl action.
  485. */
  486. const Vec2& getPosition() const { return _position; }
  487. /**
  488. @brief Set the center position of twirl action.
  489. @param position The center position of twirl action will be set.
  490. */
  491. void setPosition(const Vec2& position);
  492. /**
  493. @brief Get the amplitude of the effect.
  494. @return Return the amplitude of the effect.
  495. */
  496. float getAmplitude() const { return _amplitude; }
  497. /**
  498. @brief Set the amplitude to the effect.
  499. @param amplitude The value of amplitude will be set.
  500. */
  501. void setAmplitude(float amplitude) { _amplitude = amplitude; }
  502. /**
  503. @brief Get the amplitude rate of the effect.
  504. @return Return the amplitude rate of the effect.
  505. */
  506. float getAmplitudeRate() const { return _amplitudeRate; }
  507. /**
  508. @brief Set the amplitude rate of the effect.
  509. @param amplitudeRate The value of amplitude rate will be set.
  510. */
  511. void setAmplitudeRate(float amplitudeRate) { _amplitudeRate = amplitudeRate; }
  512. // Overrides
  513. virtual Twirl* clone() const override;
  514. virtual void update(float time) override;
  515. CC_CONSTRUCTOR_ACCESS:
  516. Twirl() {}
  517. virtual ~Twirl() {}
  518. /**
  519. @brief Initializes the action with center position, number of twirls, amplitude, a grid size and duration.
  520. @param duration Specify the duration of the Twirl action. It's a value in seconds.
  521. @param gridSize Specify the size of the grid.
  522. @param position Specify the center position of the twirl action.
  523. @param twirls Specify the twirls count of the Twirl action.
  524. @param amplitude Specify the amplitude of the Twirl action.
  525. @return If the initialization success, return true; otherwise, return false.
  526. */
  527. bool initWithDuration(float duration, const Size& gridSize, const Vec2& position, unsigned int twirls, float amplitude);
  528. protected:
  529. /* twirl center */
  530. Vec2 _position;
  531. unsigned int _twirls;
  532. float _amplitude;
  533. float _amplitudeRate;
  534. private:
  535. CC_DISALLOW_COPY_AND_ASSIGN(Twirl);
  536. };
  537. // end of actions group
  538. /// @}
  539. NS_CC_END
  540. #endif // __ACTION_CCGRID3D_ACTION_H__