CCActionGrid3D.h 22 KB

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