joybox 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,39 @@
1
+ <?xml version='1.0'?>
2
+ <!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
3
+ <signatures version='1.0'>
4
+ <class name='NSObject'>
5
+ <method selector='ccTouchesBegan:withEvent:'>
6
+ <arg declared_type='UIEvent*' index='1' />
7
+ </method>
8
+ <method selector='ccTouchesCancelled:withEvent:'>
9
+ <arg declared_type='UIEvent*' index='1' />
10
+ </method>
11
+ <method selector='ccTouchesEnded:withEvent:'>
12
+ <arg declared_type='UIEvent*' index='1' />
13
+ </method>
14
+ <method selector='ccTouchesMoved:withEvent:'>
15
+ <arg declared_type='UIEvent*' index='1' />
16
+ </method>
17
+ <method selector='ccTouchBegan:withEvent:' >
18
+ <arg declared_type='UITouch*' index='0' />
19
+ <arg declared_type='UIEvent*' index='1' />
20
+ </method>
21
+ <method selector='ccTouchCancelled:withEvent:' >
22
+ <arg declared_type='UITouch*' index='0' />
23
+ <arg declared_type='UIEvent*' index='1' />
24
+ </method>
25
+ <method selector='ccTouchEnded:withEvent:' >
26
+ <arg declared_type='UITouch*' index='0' />
27
+ <arg declared_type='UIEvent*' index='1' />
28
+ </method>
29
+ <method selector='ccTouchMoved:withEvent:' >
30
+ <arg declared_type='UITouch*' index='0' />
31
+ <arg declared_type='UIEvent*' index='1' />
32
+ </method>
33
+ </class>
34
+ <class name='CCDirector'>
35
+ <method selector='convertTouchToGL:'>
36
+ <arg declared_type='UITouch*' index='0'/>
37
+ </method>
38
+ </class>
39
+ </signatures>
@@ -39,9 +39,9 @@ enum {
39
39
  */
40
40
  @interface CCAction : NSObject <NSCopying>
41
41
  {
42
- id originalTarget_;
43
- id target_;
44
- NSInteger tag_;
42
+ id _originalTarget;
43
+ id _target;
44
+ NSInteger _tag;
45
45
  }
46
46
 
47
47
  /** The "target". The action will modify the target properties.
@@ -91,12 +91,12 @@ enum {
91
91
  Possible actions:
92
92
  - An action with a duration of 0 seconds
93
93
  - An action with a duration of 35.5 seconds
94
- Infitite time actions are valid
94
+ Infinite time actions are valid
95
95
  */
96
96
  @interface CCFiniteTimeAction : CCAction <NSCopying>
97
97
  {
98
98
  //! duration in seconds
99
- ccTime duration_;
99
+ ccTime _duration;
100
100
  }
101
101
  //! duration in seconds of the action
102
102
  @property (nonatomic,readwrite) ccTime duration;
@@ -109,11 +109,11 @@ enum {
109
109
  @class CCActionInterval;
110
110
  /** Repeats an action for ever.
111
111
  To repeat the an action for a limited number of times use the Repeat action.
112
- @warning This action can't be Sequenceable because it is not an IntervalAction
112
+ @warning This action can't be Sequence-able because it is not an IntervalAction
113
113
  */
114
114
  @interface CCRepeatForever : CCAction <NSCopying>
115
115
  {
116
- CCActionInterval *innerAction_;
116
+ CCActionInterval *_innerAction;
117
117
  }
118
118
  /** Inner action */
119
119
  @property (nonatomic, readwrite, retain) CCActionInterval *innerAction;
@@ -127,22 +127,22 @@ enum {
127
127
  /** Changes the speed of an action, making it take longer (speed<1)
128
128
  or less (speed>1) time.
129
129
  Useful to simulate 'slow motion' or 'fast forward' effect.
130
- @warning This action can't be Sequenceable because it is not an CCIntervalAction
130
+ @warning This action can't be Sequence-able because it is not an CCIntervalAction
131
131
  */
132
132
  @interface CCSpeed : CCAction <NSCopying>
133
133
  {
134
- CCActionInterval *innerAction_;
135
- float speed_;
134
+ CCActionInterval *_innerAction;
135
+ CGFloat _speed;
136
136
  }
137
137
  /** alter the speed of the inner function in runtime */
138
- @property (nonatomic,readwrite) float speed;
138
+ @property (nonatomic,readwrite) CGFloat speed;
139
139
  /** Inner action of CCSpeed */
140
140
  @property (nonatomic, readwrite, retain) CCActionInterval *innerAction;
141
141
 
142
142
  /** creates the action */
143
- +(id) actionWithAction: (CCActionInterval*) action speed:(float)value;
143
+ +(id) actionWithAction: (CCActionInterval*) action speed:(CGFloat)value;
144
144
  /** initializes the action */
145
- -(id) initWithAction: (CCActionInterval*) action speed:(float)value;
145
+ -(id) initWithAction: (CCActionInterval*) action speed:(CGFloat)value;
146
146
  @end
147
147
 
148
148
  @class CCNode;
@@ -157,23 +157,23 @@ enum {
157
157
  @interface CCFollow : CCAction <NSCopying>
158
158
  {
159
159
  /* node to follow */
160
- CCNode *followedNode_;
160
+ CCNode *_followedNode;
161
161
 
162
162
  /* whether camera should be limited to certain area */
163
- BOOL boundarySet;
163
+ BOOL _boundarySet;
164
164
 
165
- /* if screensize is bigger than the boundary - update not needed */
166
- BOOL boundaryFullyCovered;
165
+ /* if screen-size is bigger than the boundary - update not needed */
166
+ BOOL _boundaryFullyCovered;
167
167
 
168
168
  /* fast access to the screen dimensions */
169
- CGPoint halfScreenSize;
170
- CGPoint fullScreenSize;
169
+ CGPoint _halfScreenSize;
170
+ CGPoint _fullScreenSize;
171
171
 
172
172
  /* world boundaries */
173
- float leftBoundary;
174
- float rightBoundary;
175
- float topBoundary;
176
- float bottomBoundary;
173
+ float _leftBoundary;
174
+ float _rightBoundary;
175
+ float _topBoundary;
176
+ float _bottomBoundary;
177
177
  }
178
178
 
179
179
  /** alter behavior - turn on/off boundary */
@@ -32,18 +32,20 @@
32
32
  */
33
33
  @interface CCActionCamera : CCActionInterval <NSCopying>
34
34
  {
35
- float centerXOrig_;
36
- float centerYOrig_;
37
- float centerZOrig_;
35
+ float _centerXOrig;
36
+ float _centerYOrig;
37
+ float _centerZOrig;
38
38
 
39
- float eyeXOrig_;
40
- float eyeYOrig_;
41
- float eyeZOrig_;
39
+ float _eyeXOrig;
40
+ float _eyeYOrig;
41
+ float _eyeZOrig;
42
42
 
43
- float upXOrig_;
44
- float upYOrig_;
45
- float upZOrig_;
43
+ float _upXOrig;
44
+ float _upYOrig;
45
+ float _upZOrig;
46
46
  }
47
+ // XXX Needed for BridgeSupport
48
+ -(void) startWithTarget:(id)aTarget;
47
49
  @end
48
50
 
49
51
  /** CCOrbitCamera action
@@ -51,17 +53,17 @@
51
53
  */
52
54
  @interface CCOrbitCamera : CCActionCamera <NSCopying>
53
55
  {
54
- float radius_;
55
- float deltaRadius_;
56
- float angleZ_;
57
- float deltaAngleZ_;
58
- float angleX_;
59
- float deltaAngleX_;
56
+ float _radius;
57
+ float _deltaRadius;
58
+ float _angleZ;
59
+ float _deltaAngleZ;
60
+ float _angleX;
61
+ float _deltaAngleX;
60
62
 
61
- float radZ_;
62
- float radDeltaZ_;
63
- float radX_;
64
- float radDeltaX_;
63
+ float _radZ;
64
+ float _radDeltaZ;
65
+ float _radX;
66
+ float _radDeltaX;
65
67
 
66
68
  }
67
69
  /** creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
@@ -40,7 +40,7 @@
40
40
  */
41
41
  @interface CCPointArray : NSObject <NSCopying>
42
42
  {
43
- NSMutableArray *controlPoints_;
43
+ NSMutableArray *_controlPoints;
44
44
  }
45
45
 
46
46
  /** Array that contains the control points */
@@ -82,9 +82,11 @@
82
82
  */
83
83
  @interface CCCardinalSplineTo : CCActionInterval
84
84
  {
85
- CCPointArray *points_;
86
- CGFloat deltaT_;
87
- CGFloat tension_;
85
+ CCPointArray *_points;
86
+ CGFloat _deltaT;
87
+ CGFloat _tension;
88
+ CGPoint _previousPosition;
89
+ CGPoint _accumulatedDiff;
88
90
  }
89
91
 
90
92
  /** Array of control points */
@@ -103,8 +105,10 @@
103
105
  */
104
106
  @interface CCCardinalSplineBy : CCCardinalSplineTo
105
107
  {
106
- CGPoint startPosition_;
108
+ CGPoint _startPosition;
107
109
  }
110
+ // XXX: To make BridgeSupport happy
111
+ -(void) startWithTarget:(id)target;
108
112
  @end
109
113
 
110
114
  /** An action that moves the target with a CatmullRom curve to a destination point.
@@ -135,5 +139,13 @@
135
139
  -(id) initWithDuration:(ccTime)dt points:(CCPointArray*)points;
136
140
  @end
137
141
 
142
+ #ifdef __cplusplus
143
+ extern "C" {
144
+ #endif
145
+
138
146
  /** Returns the Cardinal Spline position for a given set of control points, tension and time */
139
- CGPoint ccCardinalSplineAt( CGPoint p0, CGPoint p1, CGPoint p2, CGPoint p3, CGFloat tension, ccTime t );
147
+ CGPoint ccCardinalSplineAt( CGPoint p0, CGPoint p1, CGPoint p2, CGPoint p3, CGFloat tension, ccTime t );
148
+
149
+ #ifdef __cplusplus
150
+ }
151
+ #endif
@@ -30,8 +30,11 @@
30
30
  */
31
31
  @interface CCActionEase : CCActionInterval <NSCopying>
32
32
  {
33
- CCActionInterval * other;
33
+ CCActionInterval *_inner;
34
34
  }
35
+ /** The inner action */
36
+ @property (nonatomic, readonly) CCActionInterval *inner;
37
+
35
38
  /** creates the action */
36
39
  +(id) actionWithAction: (CCActionInterval*) action;
37
40
  /** initializes the action */
@@ -42,7 +45,7 @@
42
45
  */
43
46
  @interface CCEaseRateAction : CCActionEase <NSCopying>
44
47
  {
45
- float rate;
48
+ float _rate;
46
49
  }
47
50
  /** rate value for the actions */
48
51
  @property (nonatomic,readwrite,assign) float rate;
@@ -54,41 +57,82 @@
54
57
 
55
58
  /** CCEaseIn action with a rate
56
59
  */
57
- @interface CCEaseIn : CCEaseRateAction <NSCopying> {} @end
60
+ @interface CCEaseIn : CCEaseRateAction <NSCopying>
61
+ {}
62
+ // Needed for BridgeSupport
63
+ -(void) update: (ccTime) t;
64
+ @end
58
65
 
59
66
  /** CCEaseOut action with a rate
60
67
  */
61
- @interface CCEaseOut : CCEaseRateAction <NSCopying> {} @end
68
+ @interface CCEaseOut : CCEaseRateAction <NSCopying>
69
+ {}
70
+ // Needed for BridgeSupport
71
+ -(void) update: (ccTime) t;
72
+ @end
62
73
 
63
74
  /** CCEaseInOut action with a rate
64
75
  */
65
- @interface CCEaseInOut : CCEaseRateAction <NSCopying> {} @end
76
+ @interface CCEaseInOut : CCEaseRateAction <NSCopying>
77
+ {}
78
+ // Needed for BridgeSupport
79
+ -(void) update: (ccTime) t;
80
+ @end
66
81
 
67
82
  /** CCEase Exponential In
68
83
  */
69
- @interface CCEaseExponentialIn : CCActionEase <NSCopying> {} @end
84
+ @interface CCEaseExponentialIn : CCActionEase <NSCopying>
85
+ {}
86
+ // Needed for BridgeSupport
87
+ -(void) update: (ccTime) t;
88
+ @end
89
+
70
90
  /** Ease Exponential Out
71
91
  */
72
- @interface CCEaseExponentialOut : CCActionEase <NSCopying> {} @end
92
+ @interface CCEaseExponentialOut : CCActionEase <NSCopying>
93
+ {}
94
+ // Needed for BridgeSupport
95
+ -(void) update: (ccTime) t;
96
+ @end
97
+
73
98
  /** Ease Exponential InOut
74
99
  */
75
- @interface CCEaseExponentialInOut : CCActionEase <NSCopying> {} @end
100
+ @interface CCEaseExponentialInOut : CCActionEase <NSCopying>
101
+ {}
102
+ // Needed for BridgeSupport
103
+ -(void) update: (ccTime) t;
104
+ @end
105
+
76
106
  /** Ease Sine In
77
107
  */
78
- @interface CCEaseSineIn : CCActionEase <NSCopying> {} @end
108
+ @interface CCEaseSineIn : CCActionEase <NSCopying>
109
+ {}
110
+ // Needed for BridgeSupport
111
+ -(void) update: (ccTime) t;
112
+ @end
113
+
79
114
  /** Ease Sine Out
80
115
  */
81
- @interface CCEaseSineOut : CCActionEase <NSCopying> {} @end
116
+ @interface CCEaseSineOut : CCActionEase <NSCopying>
117
+ {}
118
+ // Needed for BridgeSupport
119
+ -(void) update: (ccTime) t;
120
+ @end
121
+
82
122
  /** Ease Sine InOut
83
123
  */
84
- @interface CCEaseSineInOut : CCActionEase <NSCopying> {} @end
124
+ @interface CCEaseSineInOut : CCActionEase <NSCopying>
125
+ {}
126
+ // Needed for BridgeSupport
127
+ -(void) update: (ccTime) t;
128
+ @end
85
129
 
86
130
  /** Ease Elastic abstract class
87
131
  @since v0.8.2
88
132
  */
89
133
  @interface CCEaseElastic : CCActionEase <NSCopying>
90
134
  {
91
- float period_;
135
+ float _period;
92
136
  }
93
137
 
94
138
  /** period of the wave in radians. default is 0.3 */
@@ -101,59 +145,101 @@
101
145
  @end
102
146
 
103
147
  /** Ease Elastic In action.
104
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
148
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
105
149
  @since v0.8.2
106
150
  */
107
- @interface CCEaseElasticIn : CCEaseElastic <NSCopying> {} @end
151
+ @interface CCEaseElasticIn : CCEaseElastic <NSCopying>
152
+ {}
153
+ // Needed for BridgeSupport
154
+ -(void) update: (ccTime) t;
155
+ @end
156
+
108
157
  /** Ease Elastic Out action.
109
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
158
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
110
159
  @since v0.8.2
111
160
  */
112
- @interface CCEaseElasticOut : CCEaseElastic <NSCopying> {} @end
161
+ @interface CCEaseElasticOut : CCEaseElastic <NSCopying>
162
+ {}
163
+ // Needed for BridgeSupport
164
+ -(void) update: (ccTime) t;
165
+ @end
166
+
113
167
  /** Ease Elastic InOut action.
114
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
168
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
115
169
  @since v0.8.2
116
170
  */
117
- @interface CCEaseElasticInOut : CCEaseElastic <NSCopying> {} @end
171
+ @interface CCEaseElasticInOut : CCEaseElastic <NSCopying>
172
+ {}
173
+ // Needed for BridgeSupport
174
+ -(void) update: (ccTime) t;
175
+ @end
118
176
 
119
177
  /** CCEaseBounce abstract class.
120
178
  @since v0.8.2
121
179
  */
122
- @interface CCEaseBounce : CCActionEase <NSCopying> {} @end
180
+ @interface CCEaseBounce : CCActionEase <NSCopying>
181
+ {}
182
+ // Needed for BridgeSupport
183
+ -(ccTime) bounceTime:(ccTime) t;
184
+ @end
123
185
 
124
186
  /** CCEaseBounceIn action.
125
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
187
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
126
188
  @since v0.8.2
127
189
  */
128
- @interface CCEaseBounceIn : CCEaseBounce <NSCopying> {} @end
190
+ @interface CCEaseBounceIn : CCEaseBounce <NSCopying>
191
+ {}
192
+ // Needed for BridgeSupport
193
+ -(void) update: (ccTime) t;
194
+ @end
129
195
 
130
196
  /** EaseBounceOut action.
131
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
197
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
132
198
  @since v0.8.2
133
199
  */
134
- @interface CCEaseBounceOut : CCEaseBounce <NSCopying> {} @end
200
+ @interface CCEaseBounceOut : CCEaseBounce <NSCopying>
201
+ {}
202
+ // Needed for BridgeSupport
203
+ -(void) update: (ccTime) t;
204
+ @end
135
205
 
136
206
  /** CCEaseBounceInOut action.
137
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
207
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
138
208
  @since v0.8.2
139
209
  */
140
- @interface CCEaseBounceInOut : CCEaseBounce <NSCopying> {} @end
210
+ @interface CCEaseBounceInOut : CCEaseBounce <NSCopying>
211
+ {}
212
+ // Needed for BridgeSupport
213
+ -(void) update: (ccTime) t;
214
+ @end
141
215
 
142
216
  /** CCEaseBackIn action.
143
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
217
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
144
218
  @since v0.8.2
145
219
  */
146
- @interface CCEaseBackIn : CCActionEase <NSCopying> {} @end
220
+ @interface CCEaseBackIn : CCActionEase <NSCopying>
221
+ {}
222
+ // Needed for BridgeSupport
223
+ -(void) update: (ccTime) t;
224
+ @end
147
225
 
148
226
  /** CCEaseBackOut action.
149
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
227
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
150
228
  @since v0.8.2
151
229
  */
152
- @interface CCEaseBackOut : CCActionEase <NSCopying> {} @end
230
+ @interface CCEaseBackOut : CCActionEase <NSCopying>
231
+ {}
232
+ // Needed for BridgeSupport
233
+ -(void) update: (ccTime) t;
234
+ @end
153
235
 
154
236
  /** CCEaseBackInOut action.
155
- @warning This action doesn't use a bijective fucntion. Actions like Sequence might have an unexpected result when used with this action.
237
+ @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
156
238
  @since v0.8.2
157
239
  */
158
- @interface CCEaseBackInOut : CCActionEase <NSCopying> {} @end
240
+ @interface CCEaseBackInOut : CCActionEase <NSCopying>
241
+ {}
242
+ // Needed for BridgeSupport
243
+ -(void) update: (ccTime) t;
244
+ @end
159
245
 
@@ -33,16 +33,16 @@
33
33
  /** Base class for Grid actions */
34
34
  @interface CCGridAction : CCActionInterval
35
35
  {
36
- ccGridSize gridSize_;
36
+ CGSize _gridSize;
37
37
  }
38
38
 
39
39
  /** size of the grid */
40
- @property (nonatomic,readwrite) ccGridSize gridSize;
40
+ @property (nonatomic,readwrite) CGSize gridSize;
41
41
 
42
42
  /** creates the action with size and duration */
43
- +(id) actionWithSize:(ccGridSize)size duration:(ccTime)d;
43
+ +(id) actionWithDuration:(ccTime)duration size:(CGSize)gridSize;
44
44
  /** initializes the action with size and duration */
45
- -(id) initWithSize:(ccGridSize)gridSize duration:(ccTime)d;
45
+ -(id) initWithDuration:(ccTime)duration size:(CGSize)gridSize;
46
46
  /** returns the grid */
47
47
  -(CCGridBase *)grid;
48
48
 
@@ -58,11 +58,11 @@
58
58
  }
59
59
 
60
60
  /** returns the vertex than belongs to certain position in the grid */
61
- -(ccVertex3F)vertex:(ccGridSize)pos;
61
+ -(ccVertex3F)vertex:(CGPoint)position;
62
62
  /** returns the non-transformed vertex than belongs to certain position in the grid */
63
- -(ccVertex3F)originalVertex:(ccGridSize)pos;
63
+ -(ccVertex3F)originalVertex:(CGPoint)position;
64
64
  /** sets a new vertex to a certain position of the grid */
65
- -(void)setVertex:(ccGridSize)pos vertex:(ccVertex3F)vertex;
65
+ -(void)setVertex:(CGPoint)position vertex:(ccVertex3F)vertex;
66
66
 
67
67
  @end
68
68
 
@@ -74,11 +74,11 @@
74
74
  }
75
75
 
76
76
  /** returns the tile that belongs to a certain position of the grid */
77
- -(ccQuad3)tile:(ccGridSize)pos;
77
+ -(ccQuad3)tile:(CGPoint)position;
78
78
  /** returns the non-transformed tile that belongs to a certain position of the grid */
79
- -(ccQuad3)originalTile:(ccGridSize)pos;
79
+ -(ccQuad3)originalTile:(CGPoint)position;
80
80
  /** sets a new tile to a certain position of the grid */
81
- -(void)setTile:(ccGridSize)pos coords:(ccQuad3)coords;
81
+ -(void)setTile:(CGPoint)position coords:(ccQuad3)coords;
82
82
 
83
83
  @end
84
84
 
@@ -87,8 +87,8 @@
87
87
  /** CCAccelDeccelAmplitude action */
88
88
  @interface CCAccelDeccelAmplitude : CCActionInterval
89
89
  {
90
- float rate_;
91
- CCActionInterval *other_;
90
+ float _rate;
91
+ CCActionInterval *_other;
92
92
  }
93
93
 
94
94
  /** amplitude rate */
@@ -106,8 +106,8 @@
106
106
  /** CCAccelAmplitude action */
107
107
  @interface CCAccelAmplitude : CCActionInterval
108
108
  {
109
- float rate_;
110
- CCActionInterval *other_;
109
+ float _rate;
110
+ CCActionInterval *_other;
111
111
  }
112
112
 
113
113
  /** amplitude rate */
@@ -125,8 +125,8 @@
125
125
  /** CCDeccelAmplitude action */
126
126
  @interface CCDeccelAmplitude : CCActionInterval
127
127
  {
128
- float rate_;
129
- CCActionInterval *other_;
128
+ float _rate;
129
+ CCActionInterval *_other;
130
130
  }
131
131
 
132
132
  /** amplitude rate */
@@ -149,6 +149,8 @@
149
149
  @interface CCStopGrid : CCActionInstant
150
150
  {
151
151
  }
152
+ // to make BridgeSupport happy
153
+ -(void)startWithTarget:(id)aTarget;
152
154
  @end
153
155
 
154
156
  ////////////////////////////////////////////////////////////
@@ -156,7 +158,7 @@
156
158
  /** CCReuseGrid action */
157
159
  @interface CCReuseGrid : CCActionInstant
158
160
  {
159
- int t_;
161
+ int _times;
160
162
  }
161
163
  /** creates an action with the number of times that the current grid will be reused */
162
164
  +(id) actionWithTimes: (int) times;