joybox 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile.lock +1 -1
  3. data/LICENSE +1 -1
  4. data/LICENSE_Box2D +20 -0
  5. data/LICENSE_Cocos2D +24 -0
  6. data/README.md +34 -66
  7. data/Rakefile +2 -3
  8. data/bin/joybox +49 -0
  9. data/command/joybox/USAGE +24 -0
  10. data/command/joybox/templates/layer.erb +11 -0
  11. data/command/joybox/templates/layer_spec.erb +3 -0
  12. data/command/joybox/templates/scene.erb +11 -0
  13. data/command/joybox/templates/scene_spec.erb +3 -0
  14. data/command/joybox/templates/sprite.erb +11 -0
  15. data/command/joybox/templates/sprite_spec.erb +3 -0
  16. data/command/joybox_generate_command.rb +114 -0
  17. data/joybox.gemspec +44 -0
  18. data/lib/joybox/joybox-ios.rb +47 -0
  19. data/lib/joybox/joybox-osx.rb +47 -0
  20. data/lib/joybox/version.rb +1 -1
  21. data/lib/joybox.rb +18 -36
  22. data/{lib/joybox/cocos2d → motion/joybox}/actions/actions.rb +0 -0
  23. data/motion/joybox/actions/animate.rb +22 -0
  24. data/motion/joybox/actions/bezier.rb +33 -0
  25. data/motion/joybox/actions/blink.rb +24 -0
  26. data/motion/joybox/actions/ease.rb +149 -0
  27. data/motion/joybox/actions/fade.rb +38 -0
  28. data/motion/joybox/actions/jump.rb +39 -0
  29. data/{lib/joybox/cocos2d → motion/joybox}/actions/move.rb +4 -2
  30. data/motion/joybox/actions/place.rb +22 -0
  31. data/{lib/joybox/cocos2d → motion/joybox}/actions/repeat.rb +10 -1
  32. data/{lib/joybox/cocos2d → motion/joybox}/actions/rotate.rb +4 -2
  33. data/{lib/joybox/cocos2d → motion/joybox}/actions/scale.rb +4 -2
  34. data/{lib/joybox/cocos2d → motion/joybox}/actions/sequence.rb +3 -3
  35. data/{lib/joybox/cocos2d → motion/joybox}/actions/skew.rb +0 -0
  36. data/motion/joybox/actions/spawn.rb +22 -0
  37. data/motion/joybox/actions/tint.rb +37 -0
  38. data/motion/joybox/animations/animation.rb +60 -0
  39. data/{lib/joybox/cocos2d → motion/joybox}/common/color.rb +12 -1
  40. data/{lib/joybox/cocos2d → motion/joybox}/common/gc_size.rb +4 -4
  41. data/{lib/joybox/cocos2d → motion/joybox}/common/ns_set.rb +0 -0
  42. data/{lib/joybox/cocos2d → motion/joybox}/common/numeric.rb +0 -0
  43. data/{lib/joybox/cocos2d → motion/joybox}/common/screen.rb +4 -4
  44. data/motion/joybox/core/layer.rb +51 -0
  45. data/{lib/joybox/cocos2d → motion/joybox}/core/node.rb +0 -0
  46. data/{lib/joybox/cocos2d → motion/joybox}/core/scene.rb +0 -0
  47. data/{lib/joybox/cocos2d → motion/joybox}/core/sprite.rb +22 -3
  48. data/{lib/joybox/cocos2d → motion/joybox}/core/sprite_batch.rb +0 -0
  49. data/motion/joybox/core/sprite_frame_cache.rb +147 -0
  50. data/{lib/joybox/cocos2d/cocos2d.rb → motion/joybox/joybox.rb} +3 -1
  51. data/{lib/joybox/cocos2d → motion/joybox}/macros.rb +0 -0
  52. data/{lib/joybox/box2d → motion/joybox/physics}/body.rb +44 -17
  53. data/{lib/joybox/cocos2d/core → motion/joybox/physics}/physics_sprite.rb +1 -1
  54. data/motion/joybox/physics/world.rb +79 -0
  55. data/{lib/joybox/cocos2d → motion/joybox}/ui/label.rb +3 -2
  56. data/{lib/joybox/cocos2d → motion/joybox}/ui/menu.rb +0 -0
  57. data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_image.rb +0 -0
  58. data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_label.rb +0 -0
  59. data/{lib/joybox/cocos2d → motion/joybox}/ui/ui.rb +0 -0
  60. data/{lib/joybox/cocos2d → motion/joybox-ios}/common/cg_point.rb +9 -2
  61. data/{lib/joybox/cocos2d → motion/joybox-ios}/common/ui_touch.rb +1 -1
  62. data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/configuration.rb +0 -0
  63. data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/file_utils.rb +0 -3
  64. data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/gl_view.rb +0 -0
  65. data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/texture_2d.rb +0 -0
  66. data/{lib/joybox/cocos2d → motion/joybox-ios}/core/layer.rb +1 -45
  67. data/{lib/joybox/cocos2d → motion/joybox-ios}/director.rb +6 -6
  68. data/motion/joybox-osx/common/ats_point.rb +48 -0
  69. data/motion/joybox-osx/common/ns_event.rb +8 -0
  70. data/motion/joybox-osx/configuration/configuration.rb +46 -0
  71. data/motion/joybox-osx/configuration/gl_view.rb +57 -0
  72. data/motion/joybox-osx/core/layer.rb +135 -0
  73. data/motion/joybox-osx/director.rb +42 -0
  74. data/template/joybox-ios/files/Rakefile.erb +9 -0
  75. data/{app → template/joybox-ios/files/app}/app_delegate.rb +1 -5
  76. data/{resources → template/joybox-ios/files/resources}/fps_images-hd.png +0 -0
  77. data/{resources → template/joybox-ios/files/resources}/fps_images-ipadhd.png +0 -0
  78. data/{resources → template/joybox-ios/files/resources}/fps_images.png +0 -0
  79. data/template/joybox-ios/files/spec/main_spec.rb.erb +9 -0
  80. data/template/joybox-osx/files/Rakefile.erb +9 -0
  81. data/template/joybox-osx/files/app/app_delegate.rb +23 -0
  82. data/template/joybox-osx/files/app/layers/default_layer.rb +5 -0
  83. data/template/joybox-osx/files/app/menu.rb +51 -0
  84. data/template/joybox-osx/files/resources/Credits.rtf +29 -0
  85. data/template/joybox-osx/files/resources/fps_images-hd.png +0 -0
  86. data/template/joybox-osx/files/resources/fps_images-ipadhd.png +0 -0
  87. data/template/joybox-osx/files/resources/fps_images.png +0 -0
  88. data/template/joybox-osx/files/spec/main_spec.rb.erb +9 -0
  89. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D +0 -0
  90. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D.framework.bridgesupport +47 -37
  91. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Box2D +0 -0
  92. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/B2DContactListener.h +0 -0
  93. data/vendor/vendor-ios/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DCircleShape.h +16 -0
  94. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DEdgeShape.h +0 -0
  95. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DPolygonShape.h +0 -0
  96. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DShape.h +0 -0
  97. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DBody.h +6 -6
  98. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DWorld.h +0 -0
  99. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/Box2DConfig.cmake +0 -0
  100. data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/CMakeLists.txt +0 -0
  101. data/vendor/vendor-ios/Box2D.framework/Versions/A/Resources/LICENSE +22 -0
  102. data/vendor/vendor-ios/cocos_2d/cocos_2d.bridgesupport +9154 -0
  103. data/vendor/vendor-ios/cocos_2d/cocos_2d_exceptions.bridgesupport +39 -0
  104. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAction.h +23 -23
  105. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCamera.h +21 -19
  106. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCatmullRom.h +18 -6
  107. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionEase.h +117 -31
  108. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid.h +19 -17
  109. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid3D.h +45 -42
  110. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInstant.h +21 -13
  111. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInterval.h +123 -81
  112. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionManager.h +2 -2
  113. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionPageTurn3D.h +2 -1
  114. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionProgressTimer.h +4 -4
  115. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTiledGrid.h +46 -38
  116. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTween.h +3 -3
  117. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimation.h +8 -8
  118. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimationCache.h +2 -2
  119. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAtlasNode.h +19 -17
  120. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCCamera.h +12 -12
  121. data/vendor/vendor-ios/cocos_2d/include/CCClippingNode.h +77 -0
  122. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCConfiguration.h +31 -13
  123. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDirector.h +51 -42
  124. data/vendor/vendor-ios/cocos_2d/include/CCDrawNode.h +65 -0
  125. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDrawingPrimitives.h +42 -8
  126. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGLProgram.h +56 -21
  127. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrabber.h +2 -2
  128. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrid.h +29 -29
  129. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelAtlas.h +5 -2
  130. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelBMFont.h +56 -32
  131. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelTTF.h +20 -20
  132. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLayer.h +107 -79
  133. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenu.h +10 -14
  134. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenuItem.h +37 -32
  135. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMotionStreak.h +18 -19
  136. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode+Debug.h +0 -0
  137. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode.h +87 -37
  138. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParallaxNode.h +2 -2
  139. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleBatchNode.h +2 -2
  140. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleExamples.h +22 -0
  141. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystem.h +51 -40
  142. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystemQuad.h +4 -4
  143. data/vendor/vendor-ios/cocos_2d/include/CCPhysicsDebugNode.h +58 -0
  144. data/vendor/vendor-ios/cocos_2d/include/CCPhysicsSprite.h +82 -0
  145. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProgressTimer.h +9 -11
  146. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProtocols.h +54 -26
  147. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCRenderTexture.h +29 -9
  148. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScene.h +4 -0
  149. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScheduler.h +94 -40
  150. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCShaderCache.h +1 -1
  151. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSprite.h +21 -28
  152. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteBatchNode.h +16 -9
  153. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrame.h +10 -10
  154. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrameCache.h +6 -6
  155. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXLayer.h +16 -16
  156. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXObjectGroup.h +4 -4
  157. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXTiledMap.h +9 -9
  158. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXXMLParser.h +44 -33
  159. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexture2D.h +17 -25
  160. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureAtlas.h +10 -10
  161. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureCache.h +4 -4
  162. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexturePVR.h +25 -8
  163. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTileMapAtlas.h +6 -6
  164. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransition.h +57 -12
  165. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionPageTurn.h +2 -2
  166. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionProgress.h +27 -5
  167. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCGL.h +4 -2
  168. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCNS.h +0 -0
  169. data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCDirectorMac.h +110 -0
  170. data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCEventDispatcher.h +343 -0
  171. data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCGLView.h +103 -0
  172. data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCWindow.h +41 -0
  173. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCDirectorIOS.h +12 -5
  174. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCES2Renderer.h +12 -12
  175. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCESRenderer.h +0 -0
  176. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCGLView.h +28 -13
  177. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDelegateProtocol.h +4 -4
  178. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDispatcher.h +2 -2
  179. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchHandler.h +7 -7
  180. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCArray.h +1 -1
  181. data/vendor/vendor-ios/cocos_2d/include/Support/CCFileUtils.h +394 -0
  182. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCProfiling.h +0 -0
  183. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCVertex.h +1 -1
  184. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CGPointExtension.h +4 -2
  185. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/NSThread+performBlock.h +0 -0
  186. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/OpenGL_Internal.h +0 -0
  187. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TGAlib.h +0 -0
  188. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TransformUtils.h +0 -0
  189. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ZipUtils.h +4 -4
  190. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/base64.h +0 -0
  191. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccCArray.h +15 -15
  192. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccUtils.h +0 -0
  193. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/uthash.h +129 -184
  194. data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/utlist.h +298 -55
  195. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccConfig.h +56 -9
  196. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccDeprecated.h +131 -0
  197. data/vendor/vendor-ios/cocos_2d/include/ccFPSImages.h +39 -0
  198. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccGLStateCache.h +44 -26
  199. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccMacros.h +9 -9
  200. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_frag.h +41 -0
  201. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_vert.h +47 -0
  202. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_frag.h +37 -0
  203. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_vert.h +40 -0
  204. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_frag.h +41 -0
  205. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_vert.h +45 -0
  206. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
  207. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_frag.h +39 -0
  208. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_vert.h +45 -0
  209. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_frag.h +38 -0
  210. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_frag.h +41 -0
  211. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_vert.h +41 -0
  212. data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_vert.h +41 -0
  213. data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_frag.h +37 -0
  214. data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_vert.h +43 -0
  215. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccShaders.h +11 -0
  216. data/vendor/vendor-ios/cocos_2d/include/ccTypes.h +392 -0
  217. data/vendor/vendor-ios/cocos_2d/include/cocos2d-ios-exceptions.bridgesupport +39 -0
  218. data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/cocos2d.h +28 -3
  219. data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_bridgesupport.sh +17 -0
  220. data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_complement.sh +17 -0
  221. data/vendor/vendor-ios/cocos_2d/libcocos2d.a +0 -0
  222. data/vendor/vendor-osx/box_2d/box_2d.bridgesupport +176 -0
  223. data/vendor/vendor-osx/box_2d/include/B2DBody.h +46 -0
  224. data/vendor/vendor-osx/box_2d/include/B2DCircleShape.h +16 -0
  225. data/vendor/vendor-osx/box_2d/include/B2DContactListener.h +30 -0
  226. data/vendor/vendor-osx/box_2d/include/B2DEdgeShape.h +17 -0
  227. data/vendor/vendor-osx/box_2d/include/B2DPolygonShape.h +16 -0
  228. data/vendor/vendor-osx/box_2d/include/B2DShape.h +18 -0
  229. data/vendor/vendor-osx/box_2d/include/B2DWorld.h +44 -0
  230. data/vendor/vendor-osx/box_2d/libBox2D.a +0 -0
  231. data/vendor/vendor-osx/cocos_2d/cocos_2d.bridgesupport +8292 -0
  232. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAction.h +195 -0
  233. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCamera.h +75 -0
  234. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCatmullRom.h +151 -0
  235. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionEase.h +245 -0
  236. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid.h +167 -0
  237. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid3D.h +208 -0
  238. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInstant.h +235 -0
  239. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInterval.h +473 -0
  240. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionManager.h +113 -0
  241. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionPageTurn3D.h +43 -0
  242. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionProgressTimer.h +59 -0
  243. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTiledGrid.h +219 -0
  244. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTween.h +62 -0
  245. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimation.h +150 -0
  246. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimationCache.h +74 -0
  247. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAtlasNode.h +98 -0
  248. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCCamera.h +98 -0
  249. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCClippingNode.h +77 -0
  250. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCConfiguration.h +144 -0
  251. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDirector.h +353 -0
  252. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawNode.h +65 -0
  253. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawingPrimitives.h +173 -0
  254. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGLProgram.h +185 -0
  255. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrabber.h +44 -0
  256. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrid.h +130 -0
  257. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelAtlas.h +71 -0
  258. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelBMFont.h +240 -0
  259. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelTTF.h +132 -0
  260. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLayer.h +308 -0
  261. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenu.h +96 -0
  262. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenuItem.h +428 -0
  263. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMotionStreak.h +86 -0
  264. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode+Debug.h +39 -0
  265. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode.h +619 -0
  266. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParallaxNode.h +50 -0
  267. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleBatchNode.h +99 -0
  268. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleExamples.h +117 -0
  269. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystem.h +464 -0
  270. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystemQuad.h +73 -0
  271. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsDebugNode.h +58 -0
  272. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsSprite.h +82 -0
  273. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProgressTimer.h +92 -0
  274. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProtocols.h +160 -0
  275. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCRenderTexture.h +159 -0
  276. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScene.h +47 -0
  277. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScheduler.h +284 -0
  278. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCShaderCache.h +60 -0
  279. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSprite.h +281 -0
  280. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteBatchNode.h +145 -0
  281. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrame.h +126 -0
  282. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrameCache.h +121 -0
  283. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXLayer.h +164 -0
  284. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXObjectGroup.h +67 -0
  285. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXTiledMap.h +145 -0
  286. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXXMLParser.h +228 -0
  287. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexture2D.h +349 -0
  288. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureAtlas.h +188 -0
  289. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureCache.h +146 -0
  290. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexturePVR.h +146 -0
  291. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTileMapAtlas.h +83 -0
  292. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransition.h +341 -0
  293. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionPageTurn.h +60 -0
  294. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionProgress.h +84 -0
  295. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCGL.h +74 -0
  296. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCNS.h +54 -0
  297. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCDirectorMac.h +110 -0
  298. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCEventDispatcher.h +343 -0
  299. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCGLView.h +103 -0
  300. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCWindow.h +41 -0
  301. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCArray.h +119 -0
  302. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCFileUtils.h +394 -0
  303. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCProfiling.h +89 -0
  304. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCVertex.h +36 -0
  305. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CGPointExtension.h +346 -0
  306. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/NSThread+performBlock.h +22 -0
  307. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/OpenGL_Internal.h +86 -0
  308. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TGAlib.h +55 -0
  309. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TransformUtils.h +36 -0
  310. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ZipUtils.h +91 -0
  311. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/base64.h +33 -0
  312. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccCArray.h +229 -0
  313. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccUtils.h +36 -0
  314. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/uthash.h +917 -0
  315. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/utlist.h +733 -0
  316. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccConfig.h +292 -0
  317. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccDeprecated.h +431 -0
  318. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccFPSImages.h +39 -0
  319. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccGLStateCache.h +156 -0
  320. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccMacros.h +353 -0
  321. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_frag.h +41 -0
  322. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_vert.h +47 -0
  323. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_frag.h +37 -0
  324. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_vert.h +40 -0
  325. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_frag.h +41 -0
  326. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_vert.h +45 -0
  327. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
  328. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_frag.h +39 -0
  329. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_vert.h +45 -0
  330. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_frag.h +38 -0
  331. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_frag.h +41 -0
  332. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_vert.h +41 -0
  333. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_vert.h +41 -0
  334. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_frag.h +37 -0
  335. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_vert.h +43 -0
  336. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShaders.h +56 -0
  337. data/vendor/{Cocos2D/include → vendor-osx/cocos_2d/cocos_2d_include}/ccTypes.h +39 -35
  338. data/vendor/vendor-osx/cocos_2d/cocos_2d_include/cocos2d.h +203 -0
  339. data/vendor/vendor-osx/cocos_2d/libcocos2d.a +0 -0
  340. metadata +363 -195
  341. data/app/layers/box2d_layer.rb +0 -109
  342. data/app/layers/cocos2d_layer.rb +0 -14
  343. data/app/layers/cocos_motion_layer.rb +0 -145
  344. data/app/layers/menu_layer.rb +0 -59
  345. data/lib/joybox/box2d/world.rb +0 -79
  346. data/resources/box2d/blocks_sprite_sheet.png +0 -0
  347. data/resources/cocos_motion/dot.png +0 -0
  348. data/resources/cocos_motion/dot_selected.png +0 -0
  349. data/resources/cocos_motion/grossini.png +0 -0
  350. data/resources/cocos_motion/grossinis_sister.png +0 -0
  351. data/resources/cocos_motion/grossinis_sister_two.png +0 -0
  352. data/resources/cocos_motion/left_arrow.png +0 -0
  353. data/resources/cocos_motion/left_arrow_selected.png +0 -0
  354. data/resources/cocos_motion/right_arrow.png +0 -0
  355. data/resources/cocos_motion/right_arrow_selected.png +0 -0
  356. data/vendor/Cocos2D/Cocos2D.bridgesupport +0 -7808
  357. data/vendor/Cocos2D/include/CCFileUtils.h +0 -188
  358. data/vendor/Cocos2D/include/CocosDenshion/CDAudioManager.h +0 -243
  359. data/vendor/Cocos2D/include/CocosDenshion/CDConfig.h +0 -60
  360. data/vendor/Cocos2D/include/CocosDenshion/CDOpenALSupport.h +0 -77
  361. data/vendor/Cocos2D/include/CocosDenshion/CDXPropertyModifierAction.h +0 -45
  362. data/vendor/Cocos2D/include/CocosDenshion/CocosDenshion.h +0 -440
  363. data/vendor/Cocos2D/include/CocosDenshion/SimpleAudioEngine.h +0 -90
  364. data/vendor/Cocos2D/include/RubyMotionSchedule.h +0 -7
  365. data/vendor/Cocos2D/include/ccShader_PositionColor_frag.h +0 -12
  366. data/vendor/Cocos2D/include/ccShader_PositionColor_vert.h +0 -17
  367. data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_frag.h +0 -16
  368. data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_vert.h +0 -21
  369. data/vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h +0 -23
  370. data/vendor/Cocos2D/include/ccShader_PositionTextureColor_frag.h +0 -14
  371. data/vendor/Cocos2D/include/ccShader_PositionTextureColor_vert.h +0 -22
  372. data/vendor/Cocos2D/include/ccShader_PositionTexture_frag.h +0 -13
  373. data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_frag.h +0 -16
  374. data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_vert.h +0 -18
  375. data/vendor/Cocos2D/include/ccShader_PositionTexture_vert.h +0 -17
  376. data/vendor/Cocos2D/include/ccShader_Position_uColor_frag.h +0 -12
  377. data/vendor/Cocos2D/include/ccShader_Position_uColor_vert.h +0 -19
  378. data/vendor/Cocos2D/include/kazmath/GL/mat4stack.h +0 -51
  379. data/vendor/Cocos2D/include/kazmath/GL/matrix.h +0 -58
  380. data/vendor/Cocos2D/include/kazmath/aabb.h +0 -53
  381. data/vendor/Cocos2D/include/kazmath/kazmath.h +0 -39
  382. data/vendor/Cocos2D/include/kazmath/mat3.h +0 -75
  383. data/vendor/Cocos2D/include/kazmath/mat4.h +0 -93
  384. data/vendor/Cocos2D/include/kazmath/neon_matrix_impl.h +0 -41
  385. data/vendor/Cocos2D/include/kazmath/plane.h +0 -70
  386. data/vendor/Cocos2D/include/kazmath/quaternion.h +0 -113
  387. data/vendor/Cocos2D/include/kazmath/ray2.h +0 -50
  388. data/vendor/Cocos2D/include/kazmath/utility.h +0 -74
  389. data/vendor/Cocos2D/include/kazmath/vec2.h +0 -64
  390. data/vendor/Cocos2D/include/kazmath/vec3.h +0 -68
  391. data/vendor/Cocos2D/include/kazmath/vec4.h +0 -68
  392. data/vendor/Cocos2D/libCocosDenshion.a +0 -0
  393. data/vendor/Cocos2D/libcocos2d.a +0 -0
@@ -49,8 +49,8 @@ Example:
49
49
  */
50
50
  @interface CCActionInterval: CCFiniteTimeAction <NSCopying>
51
51
  {
52
- ccTime elapsed_;
53
- BOOL firstTick_;
52
+ ccTime _elapsed;
53
+ BOOL _firstTick;
54
54
  }
55
55
 
56
56
  /** how many seconds had elapsed since the actions started to run. */
@@ -70,13 +70,15 @@ Example:
70
70
  */
71
71
  @interface CCSequence : CCActionInterval <NSCopying>
72
72
  {
73
- CCFiniteTimeAction *actions_[2];
74
- ccTime split_;
75
- int last_;
73
+ CCFiniteTimeAction *_actions[2];
74
+ ccTime _split;
75
+ int _last;
76
76
  }
77
- /** helper contructor to create an array of sequenceable actions */
77
+ /** helper constructor to create an array of sequence-able actions */
78
78
  +(id) actions: (CCFiniteTimeAction*) action1, ... NS_REQUIRES_NIL_TERMINATION;
79
- /** helper contructor to create an array of sequenceable actions given an array */
79
+ /** helper constructor to create an array of sequence-able actions */
80
+ +(id) actions: (CCFiniteTimeAction*) action1 vaList:(va_list) args;
81
+ /** helper constructor to create an array of sequence-able actions given an array */
80
82
  +(id) actionWithArray: (NSArray*) arrayOfActions;
81
83
  /** creates the action */
82
84
  +(id) actionOne:(CCFiniteTimeAction*)actionOne two:(CCFiniteTimeAction*)actionTwo;
@@ -90,11 +92,11 @@ Example:
90
92
  */
91
93
  @interface CCRepeat : CCActionInterval <NSCopying>
92
94
  {
93
- NSUInteger times_;
94
- NSUInteger total_;
95
- ccTime nextDt_;
96
- BOOL isActionInstant_;
97
- CCFiniteTimeAction *innerAction_;
95
+ NSUInteger _times;
96
+ NSUInteger _total;
97
+ ccTime _nextDt;
98
+ BOOL _isActionInstant;
99
+ CCFiniteTimeAction *_innerAction;
98
100
  }
99
101
 
100
102
  /** Inner action */
@@ -111,12 +113,14 @@ Example:
111
113
  */
112
114
  @interface CCSpawn : CCActionInterval <NSCopying>
113
115
  {
114
- CCFiniteTimeAction *one_;
115
- CCFiniteTimeAction *two_;
116
+ CCFiniteTimeAction *_one;
117
+ CCFiniteTimeAction *_two;
116
118
  }
117
119
  /** helper constructor to create an array of spawned actions */
118
120
  +(id) actions: (CCFiniteTimeAction*) action1, ... NS_REQUIRES_NIL_TERMINATION;
119
- /** helper contructor to create an array of spawned actions given an array */
121
+ /** helper constructor to create an array of spawned actions */
122
+ +(id) actions: (CCFiniteTimeAction*) action1 vaList:(va_list)args;
123
+ /** helper constructor to create an array of spawned actions given an array */
120
124
  +(id) actionWithArray: (NSArray*) arrayOfActions;
121
125
  /** creates the Spawn action */
122
126
  +(id) actionOne: (CCFiniteTimeAction*) one two:(CCFiniteTimeAction*) two;
@@ -130,54 +134,74 @@ Example:
130
134
  */
131
135
  @interface CCRotateTo : CCActionInterval <NSCopying>
132
136
  {
133
- float dstAngle_;
134
- float startAngle_;
135
- float diffAngle_;
137
+ float _dstAngleX;
138
+ float _startAngleX;
139
+ float _diffAngleX;
140
+
141
+ float _dstAngleY;
142
+ float _startAngleY;
143
+ float _diffAngleY;
136
144
  }
137
145
  /** creates the action */
138
146
  +(id) actionWithDuration:(ccTime)duration angle:(float)angle;
139
147
  /** initializes the action */
140
148
  -(id) initWithDuration:(ccTime)duration angle:(float)angle;
149
+
150
+ /** creates the action with separate rotation angles */
151
+ +(id) actionWithDuration: (ccTime) t angleX:(float) aX angleY:(float) aY;
152
+ -(id) initWithDuration: (ccTime) t angleX:(float) aX angleY:(float) aY;
141
153
  @end
142
154
 
143
- /** Rotates a CCNode object clockwise a number of degrees by modiying its rotation attribute.
155
+ /** Rotates a CCNode object clockwise a number of degrees by modifying its rotation attribute.
144
156
  */
145
157
  @interface CCRotateBy : CCActionInterval <NSCopying>
146
158
  {
147
- float angle_;
148
- float startAngle_;
159
+ float _angleX;
160
+ float _startAngleX;
161
+ float _angleY;
162
+ float _startAngleY;
149
163
  }
150
164
  /** creates the action */
151
165
  +(id) actionWithDuration:(ccTime)duration angle:(float)deltaAngle;
152
166
  /** initializes the action */
153
167
  -(id) initWithDuration:(ccTime)duration angle:(float)deltaAngle;
168
+
169
+ /** creates the action with separate rotation angles */
170
+ +(id) actionWithDuration: (ccTime) t angleX:(float) aX angleY:(float) aY;
171
+ -(id) initWithDuration: (ccTime) t angleX:(float) aX angleY:(float) aY;
154
172
  @end
155
173
 
156
- /** Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying its position attribute.
157
- */
158
- @interface CCMoveTo : CCActionInterval <NSCopying>
174
+ /** Moves a CCNode object x,y pixels by modifying it's position attribute.
175
+ x and y are relative to the position of the object.
176
+ Several CCMoveBy actions can be concurrently called, and the resulting
177
+ movement will be the sum of individual movements.
178
+ @since v2.1beta2-custom
179
+ */
180
+ @interface CCMoveBy : CCActionInterval <NSCopying>
159
181
  {
160
- CGPoint endPosition_;
161
- CGPoint startPosition_;
162
- CGPoint delta_;
182
+ CGPoint _positionDelta;
183
+ CGPoint _startPos;
184
+ CGPoint _previousPos;
163
185
  }
164
186
  /** creates the action */
165
- +(id) actionWithDuration:(ccTime)duration position:(CGPoint)position;
187
+ +(id) actionWithDuration: (ccTime)duration position:(CGPoint)deltaPosition;
166
188
  /** initializes the action */
167
- -(id) initWithDuration:(ccTime)duration position:(CGPoint)position;
189
+ -(id) initWithDuration: (ccTime)duration position:(CGPoint)deltaPosition;
168
190
  @end
169
191
 
170
- /** Moves a CCNode object x,y pixels by modifying its position attribute.
171
- x and y are relative to the position of the object.
172
- Duration is is seconds.
173
- */
174
- @interface CCMoveBy : CCMoveTo <NSCopying>
192
+ /** Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying it's position attribute.
193
+ Several CCMoveTo actions can be concurrently called, and the resulting
194
+ movement will be the sum of individual movements.
195
+ @since v2.1beta2-custom
196
+ */
197
+ @interface CCMoveTo : CCMoveBy
175
198
  {
199
+ CGPoint _endPosition;
176
200
  }
177
201
  /** creates the action */
178
- +(id) actionWithDuration: (ccTime)duration position:(CGPoint)deltaPosition;
202
+ +(id) actionWithDuration:(ccTime)duration position:(CGPoint)position;
179
203
  /** initializes the action */
180
- -(id) initWithDuration: (ccTime)duration position:(CGPoint)deltaPosition;
204
+ -(id) initWithDuration:(ccTime)duration position:(CGPoint)position;
181
205
  @end
182
206
 
183
207
  /** Skews a CCNode object to given angles by modifying its skewX and skewY attributes
@@ -185,18 +209,18 @@ Example:
185
209
  */
186
210
  @interface CCSkewTo : CCActionInterval <NSCopying>
187
211
  {
188
- float skewX_;
189
- float skewY_;
190
- float startSkewX_;
191
- float startSkewY_;
192
- float endSkewX_;
193
- float endSkewY_;
194
- float deltaX_;
195
- float deltaY_;
212
+ float _skewX;
213
+ float _skewY;
214
+ float _startSkewX;
215
+ float _startSkewY;
216
+ float _endSkewX;
217
+ float _endSkewY;
218
+ float _deltaX;
219
+ float _deltaY;
196
220
  }
197
221
  /** creates the action */
198
222
  +(id) actionWithDuration:(ccTime)t skewX:(float)sx skewY:(float)sy;
199
- /** initializes the action */
223
+ /** initializes the action with duration, skew X and skew Y */
200
224
  -(id) initWithDuration:(ccTime)t skewX:(float)sx skewY:(float)sy;
201
225
  @end
202
226
 
@@ -206,16 +230,19 @@ Example:
206
230
  @interface CCSkewBy : CCSkewTo <NSCopying>
207
231
  {
208
232
  }
233
+ /** initializes the action with duration, skew X and skew Y */
234
+ -(id) initWithDuration:(ccTime)t skewX:(float)sx skewY:(float)sy;
209
235
  @end
210
236
 
211
237
  /** Moves a CCNode object simulating a parabolic jump movement by modifying its position attribute.
212
238
  */
213
- @interface CCJumpBy : CCActionInterval <NSCopying>
239
+ @interface CCJumpBy : CCActionInterval <NSCopying>
214
240
  {
215
- CGPoint startPosition_;
216
- CGPoint delta_;
217
- ccTime height_;
218
- NSUInteger jumps_;
241
+ CGPoint _startPosition;
242
+ CGPoint _delta;
243
+ ccTime _height;
244
+ NSUInteger _jumps;
245
+ CGPoint _previousPos;
219
246
  }
220
247
  /** creates the action */
221
248
  +(id) actionWithDuration: (ccTime)duration position:(CGPoint)position height:(ccTime)height jumps:(NSUInteger)jumps;
@@ -225,9 +252,11 @@ Example:
225
252
 
226
253
  /** Moves a CCNode object to a parabolic position simulating a jump movement by modifying its position attribute.
227
254
  */
228
- @interface CCJumpTo : CCJumpBy <NSCopying>
255
+ @interface CCJumpTo : CCJumpBy <NSCopying>
229
256
  {
230
257
  }
258
+ // XXX: Added to prevent bug on BridgeSupport
259
+ -(void) startWithTarget:(CCNode *)aTarget;
231
260
  @end
232
261
 
233
262
  /** bezier configuration structure
@@ -245,8 +274,9 @@ typedef struct _ccBezierConfig {
245
274
  */
246
275
  @interface CCBezierBy : CCActionInterval <NSCopying>
247
276
  {
248
- ccBezierConfig config_;
249
- CGPoint startPosition_;
277
+ ccBezierConfig _config;
278
+ CGPoint _startPosition;
279
+ CGPoint _previousPosition;
250
280
  }
251
281
 
252
282
  /** creates the action with a duration and a bezier configuration */
@@ -261,7 +291,10 @@ typedef struct _ccBezierConfig {
261
291
  */
262
292
  @interface CCBezierTo : CCBezierBy
263
293
  {
294
+ ccBezierConfig _toConfig;
264
295
  }
296
+ // XXX: Added to prevent bug on BridgeSupport
297
+ -(void) startWithTarget:(CCNode *)aTarget;
265
298
  @end
266
299
 
267
300
  /** Scales a CCNode object to a zoom factor by modifying its scale attribute.
@@ -269,14 +302,14 @@ typedef struct _ccBezierConfig {
269
302
  */
270
303
  @interface CCScaleTo : CCActionInterval <NSCopying>
271
304
  {
272
- float scaleX_;
273
- float scaleY_;
274
- float startScaleX_;
275
- float startScaleY_;
276
- float endScaleX_;
277
- float endScaleY_;
278
- float deltaX_;
279
- float deltaY_;
305
+ float _scaleX;
306
+ float _scaleY;
307
+ float _startScaleX;
308
+ float _startScaleY;
309
+ float _endScaleX;
310
+ float _endScaleY;
311
+ float _deltaX;
312
+ float _deltaY;
280
313
  }
281
314
  /** creates the action with the same scale factor for X and Y */
282
315
  +(id) actionWithDuration: (ccTime)duration scale:(float) s;
@@ -293,17 +326,20 @@ typedef struct _ccBezierConfig {
293
326
  @interface CCScaleBy : CCScaleTo <NSCopying>
294
327
  {
295
328
  }
329
+ // XXX: Added to prevent bug on BridgeSupport
330
+ -(void) startWithTarget:(CCNode *)aTarget;
296
331
  @end
297
332
 
298
333
  /** Blinks a CCNode object by modifying its visible attribute
299
334
  */
300
335
  @interface CCBlink : CCActionInterval <NSCopying>
301
336
  {
302
- NSUInteger times_;
337
+ NSUInteger _times;
338
+ BOOL _originalState;
303
339
  }
304
340
  /** creates the action */
305
341
  +(id) actionWithDuration: (ccTime)duration blinks:(NSUInteger)blinks;
306
- /** initilizes the action */
342
+ /** initializes the action */
307
343
  -(id) initWithDuration: (ccTime)duration blinks:(NSUInteger)blinks;
308
344
  @end
309
345
 
@@ -313,6 +349,8 @@ typedef struct _ccBezierConfig {
313
349
  @interface CCFadeIn : CCActionInterval <NSCopying>
314
350
  {
315
351
  }
352
+ // XXX: Added to prevent bug on BridgeSupport
353
+ -(void) update:(ccTime)dt;
316
354
  @end
317
355
 
318
356
  /** Fades Out an object that implements the CCRGBAProtocol protocol. It modifies the opacity from 255 to 0.
@@ -321,6 +359,8 @@ typedef struct _ccBezierConfig {
321
359
  @interface CCFadeOut : CCActionInterval <NSCopying>
322
360
  {
323
361
  }
362
+ // XXX: Added to prevent bug on BridgeSupport
363
+ -(void) update:(ccTime)dt;
324
364
  @end
325
365
 
326
366
  /** Fades an object that implements the CCRGBAProtocol protocol. It modifies the opacity from the current value to a custom one.
@@ -328,10 +368,10 @@ typedef struct _ccBezierConfig {
328
368
  */
329
369
  @interface CCFadeTo : CCActionInterval <NSCopying>
330
370
  {
331
- GLubyte toOpacity_;
332
- GLubyte fromOpacity_;
371
+ GLubyte _toOpacity;
372
+ GLubyte _fromOpacity;
333
373
  }
334
- /** creates an action with duration and opactiy */
374
+ /** creates an action with duration and opacity */
335
375
  +(id) actionWithDuration:(ccTime)duration opacity:(GLubyte)opactiy;
336
376
  /** initializes the action with duration and opacity */
337
377
  -(id) initWithDuration:(ccTime)duration opacity:(GLubyte)opacity;
@@ -343,8 +383,8 @@ typedef struct _ccBezierConfig {
343
383
  */
344
384
  @interface CCTintTo : CCActionInterval <NSCopying>
345
385
  {
346
- ccColor3B to_;
347
- ccColor3B from_;
386
+ ccColor3B _to;
387
+ ccColor3B _from;
348
388
  }
349
389
  /** creates an action with duration and color */
350
390
  +(id) actionWithDuration:(ccTime)duration red:(GLubyte)red green:(GLubyte)green blue:(GLubyte)blue;
@@ -357,8 +397,8 @@ typedef struct _ccBezierConfig {
357
397
  */
358
398
  @interface CCTintBy : CCActionInterval <NSCopying>
359
399
  {
360
- GLshort deltaR_, deltaG_, deltaB_;
361
- GLshort fromR_, fromG_, fromB_;
400
+ GLshort _deltaR, _deltaG, _deltaB;
401
+ GLshort _fromR, _fromG, _fromB;
362
402
  }
363
403
  /** creates an action with duration and color */
364
404
  +(id) actionWithDuration:(ccTime)duration red:(GLshort)deltaRed green:(GLshort)deltaGreen blue:(GLshort)deltaBlue;
@@ -371,18 +411,20 @@ typedef struct _ccBezierConfig {
371
411
  @interface CCDelayTime : CCActionInterval <NSCopying>
372
412
  {
373
413
  }
414
+ // XXX: Added to prevent bug on BridgeSupport
415
+ -(void) update:(ccTime)dt;
374
416
  @end
375
417
 
376
418
  /** Executes an action in reverse order, from time=duration to time=0
377
419
 
378
420
  @warning Use this action carefully. This action is not
379
- sequenceable. Use it as the default "reversed" method
421
+ sequence-able. Use it as the default "reversed" method
380
422
  of your own actions, but using it outside the "reversed"
381
423
  scope is not recommended.
382
424
  */
383
425
  @interface CCReverseTime : CCActionInterval <NSCopying>
384
426
  {
385
- CCFiniteTimeAction * other_;
427
+ CCFiniteTimeAction * _other;
386
428
  }
387
429
  /** creates the action */
388
430
  +(id) actionWithAction: (CCFiniteTimeAction*) action;
@@ -396,18 +438,18 @@ typedef struct _ccBezierConfig {
396
438
  /** Animates a sprite given the name of an Animation */
397
439
  @interface CCAnimate : CCActionInterval <NSCopying>
398
440
  {
399
- NSMutableArray *splitTimes_;
400
- NSInteger nextFrame_;
401
- CCAnimation *animation_;
402
- id origFrame_;
403
- NSUInteger executedLoops_;
441
+ NSMutableArray *_splitTimes;
442
+ NSInteger _nextFrame;
443
+ CCAnimation *_animation;
444
+ id _origFrame;
445
+ NSUInteger _executedLoops;
404
446
  }
405
- /** animation used for the animage */
447
+ /** animation used for the image */
406
448
  @property (readwrite,nonatomic,retain) CCAnimation * animation;
407
449
 
408
450
  /** creates the action with an Animation and will restore the original frame when the animation is over */
409
451
  +(id) actionWithAnimation:(CCAnimation*)animation;
410
- /** initializes the action with an Animation and will restore the original frame when the animtion is over */
452
+ /** initializes the action with an Animation and will restore the original frame when the animation is over */
411
453
  -(id) initWithAnimation:(CCAnimation*)animation;
412
454
  @end
413
455
 
@@ -416,8 +458,8 @@ typedef struct _ccBezierConfig {
416
458
  */
417
459
  @interface CCTargetedAction : CCActionInterval <NSCopying>
418
460
  {
419
- id forcedTarget_;
420
- CCFiniteTimeAction* action_;
461
+ id _forcedTarget;
462
+ CCFiniteTimeAction* _action;
421
463
  }
422
464
  /** This is the target that the action will be forced to run with */
423
465
  @property(readwrite,nonatomic,retain) id forcedTarget;
@@ -47,7 +47,7 @@ typedef struct _hashElement
47
47
 
48
48
  /** CCActionManager the object that manages all the actions.
49
49
  Normally you won't need to use this API directly. 99% of the cases you will use the CCNode interface, which uses this object.
50
- But there are some cases where you might need to use this API dirctly:
50
+ But there are some cases where you might need to use this API directly:
51
51
  Examples:
52
52
  - When you want to run an action where the target is different from a CCNode.
53
53
  - When you want to pause / resume the actions
@@ -70,7 +70,7 @@ typedef struct _hashElement
70
70
  When the target is paused, the queued actions won't be 'ticked'.
71
71
  */
72
72
  -(void) addAction: (CCAction*) action target:(id)target paused:(BOOL)paused;
73
- /** Removes all actions from all the targers.
73
+ /** Removes all actions from all the targets.
74
74
  */
75
75
  -(void) removeAllActions;
76
76
 
@@ -38,5 +38,6 @@
38
38
  @interface CCPageTurn3D : CCGrid3DAction
39
39
  {
40
40
  }
41
-
41
+ // XXX: To make BridgeSupport happy
42
+ -(void)update:(ccTime)time;
42
43
  @end
@@ -34,8 +34,8 @@
34
34
  */
35
35
  @interface CCProgressTo : CCActionInterval <NSCopying>
36
36
  {
37
- float to_;
38
- float from_;
37
+ float _to;
38
+ float _from;
39
39
  }
40
40
  /** Creates and initializes with a duration and a percent */
41
41
  +(id) actionWithDuration:(ccTime)duration percent:(float)percent;
@@ -49,8 +49,8 @@
49
49
  */
50
50
  @interface CCProgressFromTo : CCActionInterval <NSCopying>
51
51
  {
52
- float to_;
53
- float from_;
52
+ float _to;
53
+ float _from;
54
54
  }
55
55
  /** Creates and initializes the action with a duration, a "from" percentage and a "to" percentage */
56
56
  +(id) actionWithDuration:(ccTime)duration from:(float)fromPercentage to:(float) toPercentage;
@@ -28,14 +28,14 @@
28
28
  /** CCShakyTiles3D action */
29
29
  @interface CCShakyTiles3D : CCTiledGrid3DAction
30
30
  {
31
- int randrange;
32
- BOOL shakeZ;
31
+ int _randrange;
32
+ BOOL _shakeZ;
33
33
  }
34
34
 
35
35
  /** creates the action with a range, whether or not to shake Z vertices, a grid size, and duration */
36
- +(id)actionWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d;
36
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize range:(int)range shakeZ:(BOOL)shakeZ;
37
37
  /** initializes the action with a range, whether or not to shake Z vertices, a grid size, and duration */
38
- -(id)initWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d;
38
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize range:(int)range shakeZ:(BOOL)shakeZ;
39
39
 
40
40
  @end
41
41
 
@@ -44,15 +44,15 @@
44
44
  /** CCShatteredTiles3D action */
45
45
  @interface CCShatteredTiles3D : CCTiledGrid3DAction
46
46
  {
47
- int randrange;
48
- BOOL once;
49
- BOOL shatterZ;
47
+ int _randrange;
48
+ BOOL _once;
49
+ BOOL _shatterZ;
50
50
  }
51
51
 
52
52
  /** creates the action with a range, whether of not to shatter Z vertices, a grid size and duration */
53
- +(id)actionWithRange:(int)range shatterZ:(BOOL)shatterZ grid:(ccGridSize)gridSize duration:(ccTime)d;
53
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize range:(int)range shatterZ:(BOOL)shatterZ;
54
54
  /** initializes the action with a range, whether or not to shatter Z vertices, a grid size and duration */
55
- -(id)initWithRange:(int)range shatterZ:(BOOL)shatterZ grid:(ccGridSize)gridSize duration:(ccTime)d;
55
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize range:(int)range shatterZ:(BOOL)shatterZ;
56
56
 
57
57
  @end
58
58
 
@@ -63,16 +63,16 @@
63
63
  */
64
64
  @interface CCShuffleTiles : CCTiledGrid3DAction
65
65
  {
66
- int seed;
67
- NSUInteger tilesCount;
68
- int *tilesOrder;
69
- void *tiles;
66
+ unsigned _seed;
67
+ NSUInteger _tilesCount;
68
+ NSUInteger *_tilesOrder;
69
+ void *_tiles;
70
70
  }
71
71
 
72
72
  /** creates the action with a random seed, the grid size and the duration */
73
- +(id)actionWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d;
73
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize seed:(unsigned)seed;
74
74
  /** initializes the action with a random seed, the grid size and the duration */
75
- -(id)initWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d;
75
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize seed:(unsigned)seed;
76
76
 
77
77
  @end
78
78
 
@@ -84,6 +84,8 @@
84
84
  @interface CCFadeOutTRTiles : CCTiledGrid3DAction
85
85
  {
86
86
  }
87
+ // XXX: private, but added to make BridgeSupport happy
88
+ -(float)testFunc:(CGSize)pos time:(ccTime)time;
87
89
  @end
88
90
 
89
91
  ////////////////////////////////////////////////////////////
@@ -94,6 +96,8 @@
94
96
  @interface CCFadeOutBLTiles : CCFadeOutTRTiles
95
97
  {
96
98
  }
99
+ // XXX: private, but added to make BridgeSupport happy
100
+ -(float)testFunc:(CGSize)pos time:(ccTime)time;
97
101
  @end
98
102
 
99
103
  ////////////////////////////////////////////////////////////
@@ -104,6 +108,8 @@
104
108
  @interface CCFadeOutUpTiles : CCFadeOutTRTiles
105
109
  {
106
110
  }
111
+ // XXX: private, but added to make BridgeSupport happy
112
+ -(float)testFunc:(CGSize)pos time:(ccTime)time;
107
113
  @end
108
114
 
109
115
  ////////////////////////////////////////////////////////////
@@ -114,6 +120,8 @@
114
120
  @interface CCFadeOutDownTiles : CCFadeOutUpTiles
115
121
  {
116
122
  }
123
+ // XXX: private, but added to make BridgeSupport happy
124
+ -(float)testFunc:(CGSize)pos time:(ccTime)time;
117
125
  @end
118
126
 
119
127
  ////////////////////////////////////////////////////////////
@@ -123,15 +131,15 @@
123
131
  */
124
132
  @interface CCTurnOffTiles : CCTiledGrid3DAction
125
133
  {
126
- int seed;
127
- NSUInteger tilesCount;
128
- int *tilesOrder;
134
+ unsigned _seed;
135
+ NSUInteger _tilesCount;
136
+ NSUInteger *_tilesOrder;
129
137
  }
130
138
 
131
139
  /** creates the action with a random seed, the grid size and the duration */
132
- +(id)actionWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d;
140
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize seed:(unsigned)seed;
133
141
  /** initializes the action with a random seed, the grid size and the duration */
134
- -(id)initWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d;
142
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize seed:(unsigned)seed;
135
143
  @end
136
144
 
137
145
  ////////////////////////////////////////////////////////////
@@ -139,9 +147,9 @@
139
147
  /** CCWavesTiles3D action. */
140
148
  @interface CCWavesTiles3D : CCTiledGrid3DAction
141
149
  {
142
- int waves;
143
- float amplitude;
144
- float amplitudeRate;
150
+ NSUInteger _waves;
151
+ float _amplitude;
152
+ float _amplitudeRate;
145
153
  }
146
154
 
147
155
  /** waves amplitude */
@@ -150,9 +158,9 @@
150
158
  @property (nonatomic,readwrite) float amplitudeRate;
151
159
 
152
160
  /** creates the action with a number of waves, the waves amplitude, the grid size and the duration */
153
- +(id)actionWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
161
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize waves:(NSUInteger)wav amplitude:(float)amp;
154
162
  /** initializes the action with a number of waves, the waves amplitude, the grid size and the duration */
155
- -(id)initWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
163
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize waves:(NSUInteger)wav amplitude:(float)amp;
156
164
 
157
165
  @end
158
166
 
@@ -163,9 +171,9 @@
163
171
  */
164
172
  @interface CCJumpTiles3D : CCTiledGrid3DAction
165
173
  {
166
- int jumps;
167
- float amplitude;
168
- float amplitudeRate;
174
+ NSUInteger _jumps;
175
+ float _amplitude;
176
+ float _amplitudeRate;
169
177
  }
170
178
 
171
179
  /** amplitude of the sin*/
@@ -174,9 +182,9 @@
174
182
  @property (nonatomic,readwrite) float amplitudeRate;
175
183
 
176
184
  /** creates the action with the number of jumps, the sin amplitude, the grid size and the duration */
177
- +(id)actionWithJumps:(int)j amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
185
+ +(id)actionWithDuration:(ccTime)duration size:(CGSize)gridSize jumps:(NSUInteger)numberOfJumps amplitude:(float)amplitude;
178
186
  /** initializes the action with the number of jumps, the sin amplitude, the grid size and the duration */
179
- -(id)initWithJumps:(int)j amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
187
+ -(id)initWithDuration:(ccTime)duration size:(CGSize)gridSize jumps:(NSUInteger)numberOfJumps amplitude:(float)amplitude;
180
188
 
181
189
  @end
182
190
 
@@ -185,13 +193,13 @@
185
193
  /** CCSplitRows action */
186
194
  @interface CCSplitRows : CCTiledGrid3DAction
187
195
  {
188
- int rows;
189
- CGSize winSize;
196
+ NSUInteger _rows;
197
+ CGSize _winSize;
190
198
  }
191
199
  /** creates the action with the number of rows to split and the duration */
192
- +(id)actionWithRows:(int)rows duration:(ccTime)duration;
200
+ +(id)actionWithDuration:(ccTime)duration rows:(NSUInteger)rows;
193
201
  /** initializes the action with the number of rows to split and the duration */
194
- -(id)initWithRows:(int)rows duration:(ccTime)duration;
202
+ -(id)initWithDuration:(ccTime)duration rows:(NSUInteger)rows;
195
203
 
196
204
  @end
197
205
 
@@ -200,12 +208,12 @@
200
208
  /** CCSplitCols action */
201
209
  @interface CCSplitCols : CCTiledGrid3DAction
202
210
  {
203
- int cols;
204
- CGSize winSize;
211
+ NSUInteger _cols;
212
+ CGSize _winSize;
205
213
  }
206
214
  /** creates the action with the number of columns to split and the duration */
207
- +(id)actionWithCols:(int)cols duration:(ccTime)duration;
215
+ +(id)actionWithDuration:(ccTime)duration cols:(NSUInteger)cols;
208
216
  /** initializes the action with the number of columns to split and the duration */
209
- -(id)initWithCols:(int)cols duration:(ccTime)duration;
217
+ -(id)initWithDuration:(ccTime)duration cols:(NSUInteger)cols;
210
218
 
211
219
  @end
@@ -47,10 +47,10 @@
47
47
  */
48
48
  @interface CCActionTween : CCActionInterval
49
49
  {
50
- NSString *key_;
50
+ NSString *_key;
51
51
 
52
- float from_, to_;
53
- float delta_;
52
+ float _from, _to;
53
+ float _delta;
54
54
  }
55
55
 
56
56
  /** creates an initializes the action with the property name (key), and the from and to parameters. */