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.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/LICENSE +1 -1
- data/LICENSE_Box2D +20 -0
- data/LICENSE_Cocos2D +24 -0
- data/README.md +34 -66
- data/Rakefile +2 -3
- data/bin/joybox +49 -0
- data/command/joybox/USAGE +24 -0
- data/command/joybox/templates/layer.erb +11 -0
- data/command/joybox/templates/layer_spec.erb +3 -0
- data/command/joybox/templates/scene.erb +11 -0
- data/command/joybox/templates/scene_spec.erb +3 -0
- data/command/joybox/templates/sprite.erb +11 -0
- data/command/joybox/templates/sprite_spec.erb +3 -0
- data/command/joybox_generate_command.rb +114 -0
- data/joybox.gemspec +44 -0
- data/lib/joybox/joybox-ios.rb +47 -0
- data/lib/joybox/joybox-osx.rb +47 -0
- data/lib/joybox/version.rb +1 -1
- data/lib/joybox.rb +18 -36
- data/{lib/joybox/cocos2d → motion/joybox}/actions/actions.rb +0 -0
- data/motion/joybox/actions/animate.rb +22 -0
- data/motion/joybox/actions/bezier.rb +33 -0
- data/motion/joybox/actions/blink.rb +24 -0
- data/motion/joybox/actions/ease.rb +149 -0
- data/motion/joybox/actions/fade.rb +38 -0
- data/motion/joybox/actions/jump.rb +39 -0
- data/{lib/joybox/cocos2d → motion/joybox}/actions/move.rb +4 -2
- data/motion/joybox/actions/place.rb +22 -0
- data/{lib/joybox/cocos2d → motion/joybox}/actions/repeat.rb +10 -1
- data/{lib/joybox/cocos2d → motion/joybox}/actions/rotate.rb +4 -2
- data/{lib/joybox/cocos2d → motion/joybox}/actions/scale.rb +4 -2
- data/{lib/joybox/cocos2d → motion/joybox}/actions/sequence.rb +3 -3
- data/{lib/joybox/cocos2d → motion/joybox}/actions/skew.rb +0 -0
- data/motion/joybox/actions/spawn.rb +22 -0
- data/motion/joybox/actions/tint.rb +37 -0
- data/motion/joybox/animations/animation.rb +60 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/color.rb +12 -1
- data/{lib/joybox/cocos2d → motion/joybox}/common/gc_size.rb +4 -4
- data/{lib/joybox/cocos2d → motion/joybox}/common/ns_set.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/numeric.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/screen.rb +4 -4
- data/motion/joybox/core/layer.rb +51 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/node.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/scene.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/sprite.rb +22 -3
- data/{lib/joybox/cocos2d → motion/joybox}/core/sprite_batch.rb +0 -0
- data/motion/joybox/core/sprite_frame_cache.rb +147 -0
- data/{lib/joybox/cocos2d/cocos2d.rb → motion/joybox/joybox.rb} +3 -1
- data/{lib/joybox/cocos2d → motion/joybox}/macros.rb +0 -0
- data/{lib/joybox/box2d → motion/joybox/physics}/body.rb +44 -17
- data/{lib/joybox/cocos2d/core → motion/joybox/physics}/physics_sprite.rb +1 -1
- data/motion/joybox/physics/world.rb +79 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/label.rb +3 -2
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_image.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_label.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/ui.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/common/cg_point.rb +9 -2
- data/{lib/joybox/cocos2d → motion/joybox-ios}/common/ui_touch.rb +1 -1
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/configuration.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/file_utils.rb +0 -3
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/gl_view.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/texture_2d.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/core/layer.rb +1 -45
- data/{lib/joybox/cocos2d → motion/joybox-ios}/director.rb +6 -6
- data/motion/joybox-osx/common/ats_point.rb +48 -0
- data/motion/joybox-osx/common/ns_event.rb +8 -0
- data/motion/joybox-osx/configuration/configuration.rb +46 -0
- data/motion/joybox-osx/configuration/gl_view.rb +57 -0
- data/motion/joybox-osx/core/layer.rb +135 -0
- data/motion/joybox-osx/director.rb +42 -0
- data/template/joybox-ios/files/Rakefile.erb +9 -0
- data/{app → template/joybox-ios/files/app}/app_delegate.rb +1 -5
- data/{resources → template/joybox-ios/files/resources}/fps_images-hd.png +0 -0
- data/{resources → template/joybox-ios/files/resources}/fps_images-ipadhd.png +0 -0
- data/{resources → template/joybox-ios/files/resources}/fps_images.png +0 -0
- data/template/joybox-ios/files/spec/main_spec.rb.erb +9 -0
- data/template/joybox-osx/files/Rakefile.erb +9 -0
- data/template/joybox-osx/files/app/app_delegate.rb +23 -0
- data/template/joybox-osx/files/app/layers/default_layer.rb +5 -0
- data/template/joybox-osx/files/app/menu.rb +51 -0
- data/template/joybox-osx/files/resources/Credits.rtf +29 -0
- data/template/joybox-osx/files/resources/fps_images-hd.png +0 -0
- data/template/joybox-osx/files/resources/fps_images-ipadhd.png +0 -0
- data/template/joybox-osx/files/resources/fps_images.png +0 -0
- data/template/joybox-osx/files/spec/main_spec.rb.erb +9 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D.framework.bridgesupport +47 -37
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Box2D +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/B2DContactListener.h +0 -0
- data/vendor/vendor-ios/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DCircleShape.h +16 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DEdgeShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DPolygonShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DBody.h +6 -6
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DWorld.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/Box2DConfig.cmake +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/CMakeLists.txt +0 -0
- data/vendor/vendor-ios/Box2D.framework/Versions/A/Resources/LICENSE +22 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d.bridgesupport +9154 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_exceptions.bridgesupport +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAction.h +23 -23
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCamera.h +21 -19
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCatmullRom.h +18 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionEase.h +117 -31
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid.h +19 -17
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid3D.h +45 -42
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInstant.h +21 -13
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInterval.h +123 -81
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionManager.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionPageTurn3D.h +2 -1
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionProgressTimer.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTiledGrid.h +46 -38
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTween.h +3 -3
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimation.h +8 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimationCache.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAtlasNode.h +19 -17
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCCamera.h +12 -12
- data/vendor/vendor-ios/cocos_2d/include/CCClippingNode.h +77 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCConfiguration.h +31 -13
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDirector.h +51 -42
- data/vendor/vendor-ios/cocos_2d/include/CCDrawNode.h +65 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDrawingPrimitives.h +42 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGLProgram.h +56 -21
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrabber.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrid.h +29 -29
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelAtlas.h +5 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelBMFont.h +56 -32
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelTTF.h +20 -20
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLayer.h +107 -79
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenu.h +10 -14
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenuItem.h +37 -32
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMotionStreak.h +18 -19
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode+Debug.h +0 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode.h +87 -37
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParallaxNode.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleBatchNode.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleExamples.h +22 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystem.h +51 -40
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystemQuad.h +4 -4
- data/vendor/vendor-ios/cocos_2d/include/CCPhysicsDebugNode.h +58 -0
- data/vendor/vendor-ios/cocos_2d/include/CCPhysicsSprite.h +82 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProgressTimer.h +9 -11
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProtocols.h +54 -26
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCRenderTexture.h +29 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScene.h +4 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScheduler.h +94 -40
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCShaderCache.h +1 -1
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSprite.h +21 -28
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteBatchNode.h +16 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrame.h +10 -10
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrameCache.h +6 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXLayer.h +16 -16
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXObjectGroup.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXTiledMap.h +9 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXXMLParser.h +44 -33
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexture2D.h +17 -25
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureAtlas.h +10 -10
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureCache.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexturePVR.h +25 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTileMapAtlas.h +6 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransition.h +57 -12
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionPageTurn.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionProgress.h +27 -5
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCGL.h +4 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCNS.h +0 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCDirectorMac.h +110 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCEventDispatcher.h +343 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCGLView.h +103 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCWindow.h +41 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCDirectorIOS.h +12 -5
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCES2Renderer.h +12 -12
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCESRenderer.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCGLView.h +28 -13
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDelegateProtocol.h +4 -4
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDispatcher.h +2 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchHandler.h +7 -7
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCArray.h +1 -1
- data/vendor/vendor-ios/cocos_2d/include/Support/CCFileUtils.h +394 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCProfiling.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCVertex.h +1 -1
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CGPointExtension.h +4 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/NSThread+performBlock.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/OpenGL_Internal.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TGAlib.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TransformUtils.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ZipUtils.h +4 -4
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/base64.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccCArray.h +15 -15
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccUtils.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/uthash.h +129 -184
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/utlist.h +298 -55
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccConfig.h +56 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccDeprecated.h +131 -0
- data/vendor/vendor-ios/cocos_2d/include/ccFPSImages.h +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccGLStateCache.h +44 -26
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccMacros.h +9 -9
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_vert.h +47 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_frag.h +37 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_vert.h +40 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_vert.h +45 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_frag.h +39 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_vert.h +45 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_frag.h +38 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_vert.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_vert.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_frag.h +37 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_vert.h +43 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccShaders.h +11 -0
- data/vendor/vendor-ios/cocos_2d/include/ccTypes.h +392 -0
- data/vendor/vendor-ios/cocos_2d/include/cocos2d-ios-exceptions.bridgesupport +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/cocos2d.h +28 -3
- data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_bridgesupport.sh +17 -0
- data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_complement.sh +17 -0
- data/vendor/vendor-ios/cocos_2d/libcocos2d.a +0 -0
- data/vendor/vendor-osx/box_2d/box_2d.bridgesupport +176 -0
- data/vendor/vendor-osx/box_2d/include/B2DBody.h +46 -0
- data/vendor/vendor-osx/box_2d/include/B2DCircleShape.h +16 -0
- data/vendor/vendor-osx/box_2d/include/B2DContactListener.h +30 -0
- data/vendor/vendor-osx/box_2d/include/B2DEdgeShape.h +17 -0
- data/vendor/vendor-osx/box_2d/include/B2DPolygonShape.h +16 -0
- data/vendor/vendor-osx/box_2d/include/B2DShape.h +18 -0
- data/vendor/vendor-osx/box_2d/include/B2DWorld.h +44 -0
- data/vendor/vendor-osx/box_2d/libBox2D.a +0 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d.bridgesupport +8292 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAction.h +195 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCamera.h +75 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCatmullRom.h +151 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionEase.h +245 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid.h +167 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid3D.h +208 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInstant.h +235 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInterval.h +473 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionManager.h +113 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionPageTurn3D.h +43 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionProgressTimer.h +59 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTiledGrid.h +219 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTween.h +62 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimation.h +150 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimationCache.h +74 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAtlasNode.h +98 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCCamera.h +98 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCClippingNode.h +77 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCConfiguration.h +144 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDirector.h +353 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawNode.h +65 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawingPrimitives.h +173 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGLProgram.h +185 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrabber.h +44 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrid.h +130 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelAtlas.h +71 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelBMFont.h +240 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelTTF.h +132 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLayer.h +308 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenu.h +96 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenuItem.h +428 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMotionStreak.h +86 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode+Debug.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode.h +619 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParallaxNode.h +50 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleBatchNode.h +99 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleExamples.h +117 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystem.h +464 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystemQuad.h +73 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsDebugNode.h +58 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsSprite.h +82 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProgressTimer.h +92 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProtocols.h +160 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCRenderTexture.h +159 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScene.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScheduler.h +284 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCShaderCache.h +60 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSprite.h +281 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteBatchNode.h +145 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrame.h +126 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrameCache.h +121 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXLayer.h +164 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXObjectGroup.h +67 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXTiledMap.h +145 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXXMLParser.h +228 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexture2D.h +349 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureAtlas.h +188 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureCache.h +146 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexturePVR.h +146 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTileMapAtlas.h +83 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransition.h +341 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionPageTurn.h +60 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionProgress.h +84 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCGL.h +74 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCNS.h +54 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCDirectorMac.h +110 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCEventDispatcher.h +343 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCGLView.h +103 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCWindow.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCArray.h +119 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCFileUtils.h +394 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCProfiling.h +89 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCVertex.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CGPointExtension.h +346 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/NSThread+performBlock.h +22 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/OpenGL_Internal.h +86 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TGAlib.h +55 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TransformUtils.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ZipUtils.h +91 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/base64.h +33 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccCArray.h +229 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccUtils.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/uthash.h +917 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/utlist.h +733 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccConfig.h +292 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccDeprecated.h +431 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccFPSImages.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccGLStateCache.h +156 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccMacros.h +353 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_vert.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_frag.h +37 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_vert.h +40 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_vert.h +45 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_frag.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_vert.h +45 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_frag.h +38 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_vert.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_vert.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_frag.h +37 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_vert.h +43 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShaders.h +56 -0
- data/vendor/{Cocos2D/include → vendor-osx/cocos_2d/cocos_2d_include}/ccTypes.h +39 -35
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/cocos2d.h +203 -0
- data/vendor/vendor-osx/cocos_2d/libcocos2d.a +0 -0
- metadata +363 -195
- data/app/layers/box2d_layer.rb +0 -109
- data/app/layers/cocos2d_layer.rb +0 -14
- data/app/layers/cocos_motion_layer.rb +0 -145
- data/app/layers/menu_layer.rb +0 -59
- data/lib/joybox/box2d/world.rb +0 -79
- data/resources/box2d/blocks_sprite_sheet.png +0 -0
- data/resources/cocos_motion/dot.png +0 -0
- data/resources/cocos_motion/dot_selected.png +0 -0
- data/resources/cocos_motion/grossini.png +0 -0
- data/resources/cocos_motion/grossinis_sister.png +0 -0
- data/resources/cocos_motion/grossinis_sister_two.png +0 -0
- data/resources/cocos_motion/left_arrow.png +0 -0
- data/resources/cocos_motion/left_arrow_selected.png +0 -0
- data/resources/cocos_motion/right_arrow.png +0 -0
- data/resources/cocos_motion/right_arrow_selected.png +0 -0
- data/vendor/Cocos2D/Cocos2D.bridgesupport +0 -7808
- data/vendor/Cocos2D/include/CCFileUtils.h +0 -188
- data/vendor/Cocos2D/include/CocosDenshion/CDAudioManager.h +0 -243
- data/vendor/Cocos2D/include/CocosDenshion/CDConfig.h +0 -60
- data/vendor/Cocos2D/include/CocosDenshion/CDOpenALSupport.h +0 -77
- data/vendor/Cocos2D/include/CocosDenshion/CDXPropertyModifierAction.h +0 -45
- data/vendor/Cocos2D/include/CocosDenshion/CocosDenshion.h +0 -440
- data/vendor/Cocos2D/include/CocosDenshion/SimpleAudioEngine.h +0 -90
- data/vendor/Cocos2D/include/RubyMotionSchedule.h +0 -7
- data/vendor/Cocos2D/include/ccShader_PositionColor_frag.h +0 -12
- data/vendor/Cocos2D/include/ccShader_PositionColor_vert.h +0 -17
- data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_frag.h +0 -16
- data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_vert.h +0 -21
- data/vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h +0 -23
- data/vendor/Cocos2D/include/ccShader_PositionTextureColor_frag.h +0 -14
- data/vendor/Cocos2D/include/ccShader_PositionTextureColor_vert.h +0 -22
- data/vendor/Cocos2D/include/ccShader_PositionTexture_frag.h +0 -13
- data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_frag.h +0 -16
- data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_vert.h +0 -18
- data/vendor/Cocos2D/include/ccShader_PositionTexture_vert.h +0 -17
- data/vendor/Cocos2D/include/ccShader_Position_uColor_frag.h +0 -12
- data/vendor/Cocos2D/include/ccShader_Position_uColor_vert.h +0 -19
- data/vendor/Cocos2D/include/kazmath/GL/mat4stack.h +0 -51
- data/vendor/Cocos2D/include/kazmath/GL/matrix.h +0 -58
- data/vendor/Cocos2D/include/kazmath/aabb.h +0 -53
- data/vendor/Cocos2D/include/kazmath/kazmath.h +0 -39
- data/vendor/Cocos2D/include/kazmath/mat3.h +0 -75
- data/vendor/Cocos2D/include/kazmath/mat4.h +0 -93
- data/vendor/Cocos2D/include/kazmath/neon_matrix_impl.h +0 -41
- data/vendor/Cocos2D/include/kazmath/plane.h +0 -70
- data/vendor/Cocos2D/include/kazmath/quaternion.h +0 -113
- data/vendor/Cocos2D/include/kazmath/ray2.h +0 -50
- data/vendor/Cocos2D/include/kazmath/utility.h +0 -74
- data/vendor/Cocos2D/include/kazmath/vec2.h +0 -64
- data/vendor/Cocos2D/include/kazmath/vec3.h +0 -68
- data/vendor/Cocos2D/include/kazmath/vec4.h +0 -68
- data/vendor/Cocos2D/libCocosDenshion.a +0 -0
- data/vendor/Cocos2D/libcocos2d.a +0 -0
@@ -43,9 +43,9 @@
|
|
43
43
|
Object than contains the delegate and priority of the event handler.
|
44
44
|
*/
|
45
45
|
@interface CCTouchHandler : NSObject {
|
46
|
-
id
|
47
|
-
int
|
48
|
-
ccTouchSelectorFlag
|
46
|
+
id _delegate;
|
47
|
+
int _priority;
|
48
|
+
ccTouchSelectorFlag _enabledSelectors;
|
49
49
|
}
|
50
50
|
|
51
51
|
/** delegate */
|
@@ -62,7 +62,7 @@
|
|
62
62
|
@end
|
63
63
|
|
64
64
|
/** CCStandardTouchHandler
|
65
|
-
It
|
65
|
+
It forwards each event to the delegate.
|
66
66
|
*/
|
67
67
|
@interface CCStandardTouchHandler : CCTouchHandler
|
68
68
|
{
|
@@ -71,12 +71,12 @@
|
|
71
71
|
|
72
72
|
/**
|
73
73
|
CCTargetedTouchHandler
|
74
|
-
Object than contains the claimed touches and if it
|
74
|
+
Object than contains the claimed touches and if it swallows touches.
|
75
75
|
Used internally by TouchDispatcher
|
76
76
|
*/
|
77
77
|
@interface CCTargetedTouchHandler : CCTouchHandler {
|
78
|
-
BOOL
|
79
|
-
NSMutableSet *
|
78
|
+
BOOL _swallowsTouches;
|
79
|
+
NSMutableSet *_claimedTouches;
|
80
80
|
}
|
81
81
|
/** whether or not the touches are swallowed */
|
82
82
|
@property(nonatomic, readwrite) BOOL swallowsTouches; // default NO
|
@@ -33,7 +33,7 @@
|
|
33
33
|
|
34
34
|
|
35
35
|
/** @def CCARRAY_FOREACH
|
36
|
-
A
|
36
|
+
A convenience macro to iterate over a CCArray using. It is faster than the "fast enumeration" interface.
|
37
37
|
@since v0.99.4
|
38
38
|
*/
|
39
39
|
|
@@ -0,0 +1,394 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2010 Ricardo Quesada
|
5
|
+
* Copyright (c) 2011 Zynga Inc.
|
6
|
+
*
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
12
|
+
* furnished to do so, subject to the following conditions:
|
13
|
+
*
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
15
|
+
* all copies or substantial portions of the Software.
|
16
|
+
*
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
* THE SOFTWARE.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
|
27
|
+
|
28
|
+
#import <Foundation/Foundation.h>
|
29
|
+
#import "../ccTypes.h"
|
30
|
+
|
31
|
+
// keys used for the suffix or directory dictionaries
|
32
|
+
extern NSString const *kCCFileUtilsDefault;
|
33
|
+
extern NSString const *kCCFileUtilsiPad;
|
34
|
+
extern NSString const *kCCFileUtilsiPadHD;
|
35
|
+
extern NSString const *kCCFileUtilsiPhone;
|
36
|
+
extern NSString const *kCCFileUtilsiPhoneHD;
|
37
|
+
extern NSString const *kCCFileUtilsiPhone5;
|
38
|
+
extern NSString const *kCCFileUtilsiPhone5HD;
|
39
|
+
extern NSString const *kCCFileUtilsMac;
|
40
|
+
extern NSString const *kCCFileUtilsMacHD;
|
41
|
+
|
42
|
+
extern NSString const *kCCFileUtilsDefaultSearchPath;
|
43
|
+
|
44
|
+
enum {
|
45
|
+
kCCFileUtilsSearchSuffixMode,
|
46
|
+
kCCFileUtilsSearchDirectoryMode,
|
47
|
+
};
|
48
|
+
|
49
|
+
|
50
|
+
/** Helper class to handle file operations */
|
51
|
+
@interface CCFileUtils : NSObject
|
52
|
+
{
|
53
|
+
NSFileManager *_fileManager;
|
54
|
+
NSBundle *_bundle;
|
55
|
+
|
56
|
+
NSMutableDictionary *_fullPathCache;
|
57
|
+
NSMutableDictionary *_fullPathNoResolutionsCache;
|
58
|
+
NSMutableDictionary *_removeSuffixCache;
|
59
|
+
|
60
|
+
NSMutableDictionary *_directoriesDict;
|
61
|
+
NSMutableDictionary *_suffixesDict;
|
62
|
+
|
63
|
+
NSMutableDictionary *_filenameLookup;
|
64
|
+
|
65
|
+
NSMutableArray *_searchResolutionsOrder;
|
66
|
+
NSMutableArray *_searchPath;
|
67
|
+
|
68
|
+
// it could be suffix (default) or directory
|
69
|
+
int _searchMode;
|
70
|
+
|
71
|
+
BOOL _enableiPhoneResourcesOniPad;
|
72
|
+
}
|
73
|
+
|
74
|
+
/** NSBundle used by CCFileUtils. By default it uses [NSBundle mainBundle].
|
75
|
+
@since v2.0
|
76
|
+
*/
|
77
|
+
@property (nonatomic, readwrite, retain) NSBundle *bundle;
|
78
|
+
|
79
|
+
/** NSFileManager used by CCFileUtils. By default it uses its own instance.
|
80
|
+
@since v2.0
|
81
|
+
*/
|
82
|
+
@property (nonatomic, readwrite, retain) NSFileManager *fileManager;
|
83
|
+
|
84
|
+
/** Whether of not the fallback suffixes is enabled.
|
85
|
+
When enabled it will try to search for the following suffixes in the following order until one is found:
|
86
|
+
* On iPad HD : iPad HD, iPad, iPhone HD, Resources without resolution
|
87
|
+
* On iPad : iPad, iPhone HD, Resources without resolution
|
88
|
+
* On iPhone HD: iPhone HD, Resources without resolution
|
89
|
+
* On Mac HD : Mac HD, Mac, Resources without resolution
|
90
|
+
* On Mac : Mac, Resources without resolution
|
91
|
+
|
92
|
+
By default this functionality is off;
|
93
|
+
*/
|
94
|
+
@property (nonatomic, readwrite, getter = isEnablediPhoneResourcesOniPad) BOOL enableiPhoneResourcesOniPad;
|
95
|
+
|
96
|
+
/** Dictionary that contians the search directories for the different devices. Default values:
|
97
|
+
- iPhone: "resources-iphone"
|
98
|
+
- iPhone HD: "resources-hd"
|
99
|
+
- iPhone5 : "resources-wide"
|
100
|
+
- iPhone5 HD: "resources-widehd"
|
101
|
+
- iPad: "resources-ipad"
|
102
|
+
- iPad HD: "resources-ipadhd"
|
103
|
+
- Mac: "resources-mac"
|
104
|
+
- Mac HD: "resources-machd"
|
105
|
+
|
106
|
+
If "search in directories" is enabled (disabled by default), it will try to get the resources from the directories according to the order of "searchResolutionsOrder" array.
|
107
|
+
@since v2.1
|
108
|
+
*/
|
109
|
+
@property (nonatomic, copy) NSMutableDictionary *directoriesDict;
|
110
|
+
|
111
|
+
/** Dictionary that contians the suffix for the different devices. Default values:
|
112
|
+
- iPhone: ""
|
113
|
+
- iPhone HD: "-hd"
|
114
|
+
- iPhone5 : "-wide"
|
115
|
+
- iPhone5 HD: "-widehd"
|
116
|
+
- iPad: "-ipad"
|
117
|
+
- iPad HD: "-ipadhd"
|
118
|
+
- Mac: ""
|
119
|
+
- Mac HD: "-machd"
|
120
|
+
|
121
|
+
If "search with suffixes" is enabled (enabled by default), it will try to get the resources by appending the suffixes according to the order of "searchResolutionsOrder" array.
|
122
|
+
@since v2.1
|
123
|
+
*/
|
124
|
+
@property (nonatomic, copy) NSMutableDictionary *suffixesDict;
|
125
|
+
|
126
|
+
/** Array that contains the search order of the resources based for the device.
|
127
|
+
By default it will try to load resources in the following order until one is found:
|
128
|
+
- On iPad HD: iPad HD resources, iPad resources, resources not associated with any device
|
129
|
+
- On iPad: iPad resources, resources not associated with any device
|
130
|
+
- On iPhone 5 HD: iPhone 5 HD resources, iPhone HD resouces, iPhone 5 resources, iPhone resources, resources not associated with any device
|
131
|
+
- On iPhone HD: iPhone HD resources, iPhone resouces, resources not associated with any device
|
132
|
+
- On iPhone: iPhone resources, resources not associated with any device
|
133
|
+
|
134
|
+
- On Mac HD: Mac HD resources, Mac resources, resources not associated with any device
|
135
|
+
- On Mac: Mac resources, resources not associated with any device
|
136
|
+
|
137
|
+
If the property "enableiPhoneResourcesOniPad" is enabled, it will also search for iPhone resources if you are in an iPad.
|
138
|
+
|
139
|
+
@since v2.1
|
140
|
+
*/
|
141
|
+
@property (nonatomic, copy) NSArray *searchResolutionsOrder;
|
142
|
+
|
143
|
+
/** Array of search paths.
|
144
|
+
You can use this array to modify the search path of the resources.
|
145
|
+
If you want to use "themes" or search resources in the "cache", you can do it easily by adding new entries in this array.
|
146
|
+
|
147
|
+
By default it is an array with only the "" (empty string) element.
|
148
|
+
|
149
|
+
@since v2.1
|
150
|
+
*/
|
151
|
+
@property (nonatomic, copy) NSArray *searchPath;
|
152
|
+
|
153
|
+
|
154
|
+
/** It determines how the "resolution resources" are to be searched.
|
155
|
+
Possible values:
|
156
|
+
- kCCFileUtilsSearchSuffix: It will search for resources by appending suffixes like "-hd", "-ipad", etc...
|
157
|
+
- kCCFileUtilsSearchDirectory: It will search the resoureces in subdirectories like "resources-hd", "resources-ipad", etc...
|
158
|
+
|
159
|
+
Default: kCCFileUtilsSearchSuffix
|
160
|
+
@since v2.1
|
161
|
+
*/
|
162
|
+
@property (nonatomic, readwrite) int searchMode;
|
163
|
+
|
164
|
+
/** Dictionary used to lookup filenames based on a key.
|
165
|
+
It is used internally by the following methods:
|
166
|
+
|
167
|
+
* -(NSString*) fullPathForFilename:(NSString*)key resolutionType:(ccResolutionType*)resolutionType;
|
168
|
+
* -(NSString*) fullPathForFilenameIgnoringResolutions:(NSString*)key;
|
169
|
+
|
170
|
+
@since v2.1
|
171
|
+
*/
|
172
|
+
@property (nonatomic, readwrite, copy) NSMutableDictionary *filenameLookup;
|
173
|
+
|
174
|
+
#ifdef __CC_PLATFORM_IOS
|
175
|
+
/** The iPhone RetinaDisplay suffixes to load resources.
|
176
|
+
By default it is "-hd" and "" in that order.
|
177
|
+
Only valid on iOS. Not valid for OS X.
|
178
|
+
|
179
|
+
@since v1.1
|
180
|
+
*/
|
181
|
+
-(void) setiPhoneRetinaDisplaySuffix:(NSString*)iPhoneRetinaDisplaySuffix;
|
182
|
+
|
183
|
+
/** The iPad suffixes to load resources.
|
184
|
+
By default it is "-ipad", "-hd", "", in that order.
|
185
|
+
Only valid on iOS. Not valid for OS X.
|
186
|
+
|
187
|
+
@since v1.1
|
188
|
+
*/
|
189
|
+
-(void) setiPadSuffix:(NSString*) iPadSuffix;
|
190
|
+
|
191
|
+
|
192
|
+
/** Sets the iPad Retina Display suffixes to load resources.
|
193
|
+
By default it is "-ipadhd", "-ipad", "-hd", "", in that order.
|
194
|
+
Only valid on iOS. Not valid for OS X.
|
195
|
+
|
196
|
+
@since v2.0
|
197
|
+
*/
|
198
|
+
-(void)setiPadRetinaDisplaySuffix:(NSString*)iPadRetinaDisplaySuffix;
|
199
|
+
|
200
|
+
#endif // __CC_PLATFORM_IOS
|
201
|
+
|
202
|
+
|
203
|
+
/** returns the shared file utils instance */
|
204
|
+
+(CCFileUtils*) sharedFileUtils;
|
205
|
+
|
206
|
+
|
207
|
+
/** Purge cached entries.
|
208
|
+
Will be called automatically by the Director when a memory warning is received
|
209
|
+
*/
|
210
|
+
-(void) purgeCachedEntries;
|
211
|
+
|
212
|
+
/** Calling this method will populate the searchResolutionsOrder property depending on the current device.
|
213
|
+
|
214
|
+
@since v2.1
|
215
|
+
*/
|
216
|
+
- (void) buildSearchResolutionsOrder;
|
217
|
+
|
218
|
+
/** Returns the fullpath of an filename.
|
219
|
+
|
220
|
+
If in iPhoneRetinaDisplay mode, and a RetinaDisplay file is found, it will return that path.
|
221
|
+
If in iPad mode, and an iPad file is found, it will return that path.
|
222
|
+
|
223
|
+
If the filename can't be found, it will return "relPath" instead of nil.
|
224
|
+
|
225
|
+
Examples:
|
226
|
+
|
227
|
+
* In iPad mode: "image.png" -> "/full/path/image-ipad.png" (in case the -ipad file exists)
|
228
|
+
* In iPhone RetinaDisplay mode: "image.png" -> "/full/path/image-hd.png" (in case the -hd file exists)
|
229
|
+
* In iPad RetinaDisplay mode: "image.png" -> "/full/path/image-ipadhd.png" (in case the -ipadhd file exists)
|
230
|
+
|
231
|
+
*/
|
232
|
+
-(NSString*) fullPathFromRelativePath:(NSString*) relPath;
|
233
|
+
|
234
|
+
/** Returns the fullpath of an filename. It will try to get the correct file for the current screen resolution.
|
235
|
+
Useful for loading images and other assets that are related for the screen resolution.
|
236
|
+
|
237
|
+
If in iPad mode, and an iPad file is found, it will return that path.
|
238
|
+
If in iPhoneRetinaDisplay mode, and a RetinaDisplay file is found, it will return that path. But if it is not found, it will try load an iPhone Non-RetinaDisplay file.
|
239
|
+
|
240
|
+
If the filename can't be found, it will return "relPath" instead of nil.
|
241
|
+
|
242
|
+
Examples:
|
243
|
+
|
244
|
+
* In iPad mode: "image.png" -> "/full/path/image-ipad.png" (in case the -ipad file exists)
|
245
|
+
* In iPhone RetinaDisplay mode: "image.png" -> "/full/path/image-hd.png" (in case the -hd file exists)
|
246
|
+
* In iPad RetinaDisplay mode: "image.png" -> "/full/path/image-ipadhd.png" (in case the -ipadhd file exists)
|
247
|
+
|
248
|
+
*/
|
249
|
+
-(NSString*) fullPathFromRelativePath:(NSString*)relPath resolutionType:(ccResolutionType*)resolutionType;
|
250
|
+
|
251
|
+
/** Returns the fullpath of an filename without taking into account the screen resolution suffixes or directories.
|
252
|
+
|
253
|
+
It will use the "searchPath" though.
|
254
|
+
If the file can't be found, it will return nil.
|
255
|
+
|
256
|
+
Useful for loading music files, shaders, "data" and other files that are not related to the screen resolution of the device.
|
257
|
+
|
258
|
+
@since v2.1
|
259
|
+
*/
|
260
|
+
-(NSString*) fullPathFromRelativePathIgnoringResolutions:(NSString*)relPath;
|
261
|
+
|
262
|
+
/** Returns the fullpath for a given filename.
|
263
|
+
|
264
|
+
First it will try to get a new filename from the "filenameLookup" dictionary. If a new filename can't be found on the dictionary, it will use the original filename.
|
265
|
+
Then it will try obtain the full path of the filename using the CCFileUtils search rules: resolutions, and search paths
|
266
|
+
|
267
|
+
If in iPad mode, and an iPad file is found, it will return that path.
|
268
|
+
If in iPhoneRetinaDisplay mode, and a RetinaDisplay file is found, it will return that path. But if it is not found, it will try load an iPhone Non-RetinaDisplay file.
|
269
|
+
|
270
|
+
If the filename can't be found on the file system, it will return nil.
|
271
|
+
|
272
|
+
This method was added to simplify multiplatform support. Whether you are using cocos2d-js or any cross-compilation toolchain like StellaSDK or Apportable,
|
273
|
+
you might need to load differerent resources for a given file in the different platforms.
|
274
|
+
|
275
|
+
Examples:
|
276
|
+
|
277
|
+
* In iPad mode: "image.png" -> "image.pvr" -> "/full/path/image-ipad.pvr" (in case the -ipad file exists)
|
278
|
+
* In Android: "image.png" -> "image.png" -> "/full/path/image.png"
|
279
|
+
|
280
|
+
@since v2.1
|
281
|
+
*/
|
282
|
+
-(NSString*) fullPathForFilename:(NSString*)filename;
|
283
|
+
|
284
|
+
/** Returns the fullpath for a given filename.
|
285
|
+
|
286
|
+
First it will try to get a new filename from the "filenameLookup" dictionary. If a new filename can't be found on the dictionary, it will use the original filename.
|
287
|
+
Then it will try obtain the full path of the filename using the CCFileUtils search rules: resolutions, and search paths
|
288
|
+
|
289
|
+
If in iPad mode, and an iPad file is found, it will return that path.
|
290
|
+
If in iPhoneRetinaDisplay mode, and a RetinaDisplay file is found, it will return that path. But if it is not found, it will try load an iPhone Non-RetinaDisplay file.
|
291
|
+
|
292
|
+
If the filename can't be found on the file system, it will return nil.
|
293
|
+
|
294
|
+
This method was added to simplify multiplatform support. Whether you are using cocos2d-js or any cross-compilation toolchain like StellaSDK or Apportable,
|
295
|
+
you might need to load differerent resources for a given file in the different platforms.
|
296
|
+
|
297
|
+
Examples:
|
298
|
+
|
299
|
+
* In iPad mode: "image.png" -> "image.pvr" -> "/full/path/image-ipad.pvr" (in case the -ipad file exists)
|
300
|
+
* In Android: "image.png" -> "image.png" -> "/full/path/image.png"
|
301
|
+
|
302
|
+
@since v2.1
|
303
|
+
*/
|
304
|
+
-(NSString*) fullPathForFilename:(NSString*)filename resolutionType:(ccResolutionType*)resolutionType;
|
305
|
+
|
306
|
+
/** Returns the fullpath for a given filename, without taking into account device resolution.
|
307
|
+
|
308
|
+
It will try to get a new filename from the "filenameLookup" dictionary. If a new filename can't be found on the dictionary, it will use the original filename.
|
309
|
+
|
310
|
+
Once it gets the filename, it will try to get the fullpath for the filename, using the "searchPath", but it won't use any resolution search rules.
|
311
|
+
If the file can't be found, it will return nil.
|
312
|
+
|
313
|
+
Useful for loading music files, shaders, "data" and other files that are not related to the screen resolution of the device.
|
314
|
+
|
315
|
+
This method was added to simplify multiplatform support. Whether you are using cocos2d-js or any cross-compilation toolchain like StellaSDK or Apportable,
|
316
|
+
you might need to load differerent resources for a given file in the different platforms.
|
317
|
+
|
318
|
+
Examples:
|
319
|
+
|
320
|
+
* On iOS: "sound.wav" -> "sound.caf" -> "/full/path/sound.caf" (in case the key dictionary says that "sound.wav" should be converted to "sound.caf")
|
321
|
+
* On Android: "sound.wav" -> "sound.wav" -> "/full/path/sound.caf" (in case the key dictionary says that "sound.wav" should be converted to "sound.caf")
|
322
|
+
|
323
|
+
|
324
|
+
@since v2.1
|
325
|
+
*/
|
326
|
+
-(NSString*) fullPathForFilenameIgnoringResolutions:(NSString*)key;
|
327
|
+
|
328
|
+
/* Loads the filenameLookup dictionary from the contents of a filename.
|
329
|
+
|
330
|
+
@since v2.1
|
331
|
+
*/
|
332
|
+
-(void) loadFilenameLookupDictionaryFromFile:(NSString*)filename;
|
333
|
+
|
334
|
+
/** removes the suffix from a path
|
335
|
+
* On iPhone RetinaDisplay it will remove the -hd suffix
|
336
|
+
* On iPad it will remove the -ipad suffix
|
337
|
+
* On iPad RetinaDisplay it will remove the -ipadhd suffix
|
338
|
+
|
339
|
+
@since v0.99.5
|
340
|
+
*/
|
341
|
+
-(NSString *)removeSuffixFromFile:(NSString*) path;
|
342
|
+
|
343
|
+
/* Stadarize a path.
|
344
|
+
|
345
|
+
It calls [string stringByStandardizingPath], and if "suffix mode" is on, it will also call [self removeSuffixFromFile:path];
|
346
|
+
|
347
|
+
@since v2.1
|
348
|
+
*/
|
349
|
+
-(NSString*) standarizePath:(NSString*)path;
|
350
|
+
|
351
|
+
#ifdef __CC_PLATFORM_IOS
|
352
|
+
|
353
|
+
/** Returns whether or not a given path exists with the iPhone RetinaDisplay suffix.
|
354
|
+
Only available on iOS. Not supported on OS X.
|
355
|
+
@since v1.1
|
356
|
+
*/
|
357
|
+
-(BOOL) iPhoneRetinaDisplayFileExistsAtPath:(NSString*)filename;
|
358
|
+
|
359
|
+
/** Returns whether or not a given filename exists with the iPad suffix.
|
360
|
+
Only available on iOS. Not supported on OS X.
|
361
|
+
@since v1.1
|
362
|
+
*/
|
363
|
+
-(BOOL) iPadFileExistsAtPath:(NSString*)filename;
|
364
|
+
|
365
|
+
/** Returns whether or not a given filename exists with the iPad RetinaDisplay suffix.
|
366
|
+
Only available on iOS. Not supported on OS X.
|
367
|
+
@since v2.0
|
368
|
+
*/
|
369
|
+
-(BOOL) iPadRetinaDisplayFileExistsAtPath:(NSString*)filename;
|
370
|
+
|
371
|
+
#endif // __CC_PLATFORM_MAC
|
372
|
+
|
373
|
+
/**
|
374
|
+
@deprecated
|
375
|
+
*/
|
376
|
+
-(void) setEnableFallbackSuffixes:(BOOL)enableFallbackSuffixes;
|
377
|
+
|
378
|
+
@end
|
379
|
+
|
380
|
+
#ifdef __cplusplus
|
381
|
+
extern "C" {
|
382
|
+
#endif
|
383
|
+
|
384
|
+
/** loads a file into memory.
|
385
|
+
the caller should release the allocated buffer.
|
386
|
+
|
387
|
+
@returns the size of the allocated buffer
|
388
|
+
@since v0.99.5
|
389
|
+
*/
|
390
|
+
NSInteger ccLoadFileIntoMemory(const char *filename, unsigned char **out);
|
391
|
+
|
392
|
+
#ifdef __cplusplus
|
393
|
+
}
|
394
|
+
#endif
|
File without changes
|
@@ -29,7 +29,7 @@
|
|
29
29
|
/** converts a line to a polygon */
|
30
30
|
void ccVertexLineToPolygon(CGPoint *points, float stroke, ccVertex2F *vertices, NSUInteger offset, NSUInteger nuPoints);
|
31
31
|
|
32
|
-
/** returns
|
32
|
+
/** returns whether or not the line intersects */
|
33
33
|
BOOL ccVertexLineIntersect(float Ax, float Ay,
|
34
34
|
float Bx, float By,
|
35
35
|
float Cx, float Cy,
|
@@ -63,8 +63,10 @@ extern "C" {
|
|
63
63
|
@return CGPoint
|
64
64
|
@since v0.7.2
|
65
65
|
*/
|
66
|
-
|
67
|
-
|
66
|
+
static inline CGPoint ccp( CGFloat x, CGFloat y )
|
67
|
+
{
|
68
|
+
return CGPointMake(x, y);
|
69
|
+
}
|
68
70
|
|
69
71
|
/** Returns opposite of point.
|
70
72
|
@return CGPoint
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -28,7 +28,7 @@ extern "C" {
|
|
28
28
|
uint8_t sig[4]; // signature. Should be 'CCZ!' 4 bytes
|
29
29
|
uint16_t compression_type; // should 0
|
30
30
|
uint16_t version; // should be 2 (although version type==1 is also supported)
|
31
|
-
uint32_t reserved; //
|
31
|
+
uint32_t reserved; // Reserved for users.
|
32
32
|
uint32_t len; // size of the uncompressed file
|
33
33
|
};
|
34
34
|
|
@@ -47,7 +47,7 @@ extern "C" {
|
|
47
47
|
* Inflates either zlib or gzip deflated memory. The inflated memory is
|
48
48
|
* expected to be freed by the caller.
|
49
49
|
*
|
50
|
-
* It will allocate 256k for the destination buffer. If it is not
|
50
|
+
* It will allocate 256k for the destination buffer. If it is not enough it will multiply the previous buffer size per 2, until there is enough memory.
|
51
51
|
* @returns the length of the deflated buffer
|
52
52
|
*
|
53
53
|
@since v0.8.1
|
@@ -58,13 +58,13 @@ int ccInflateMemory(unsigned char *in, unsigned int inLength, unsigned char **ou
|
|
58
58
|
* Inflates either zlib or gzip deflated memory. The inflated memory is
|
59
59
|
* expected to be freed by the caller.
|
60
60
|
*
|
61
|
-
*
|
61
|
+
* outlengthHint is assumed to be the needed room to allocate the inflated buffer.
|
62
62
|
*
|
63
63
|
* @returns the length of the deflated buffer
|
64
64
|
*
|
65
65
|
@since v1.0.0
|
66
66
|
*/
|
67
|
-
int ccInflateMemoryWithHint(unsigned char *in, unsigned int inLength, unsigned char **out, unsigned int
|
67
|
+
int ccInflateMemoryWithHint(unsigned char *in, unsigned int inLength, unsigned char **out, unsigned int outlengthHint );
|
68
68
|
|
69
69
|
|
70
70
|
/** inflates a GZip file into memory
|
File without changes
|
@@ -31,7 +31,7 @@
|
|
31
31
|
- comparisons are done using pointer equality instead of isEqual
|
32
32
|
|
33
33
|
There are 2 kind of functions:
|
34
|
-
- ccArray functions that manipulates objective-c objects (retain and release are
|
34
|
+
- ccArray functions that manipulates objective-c objects (retain and release are performed)
|
35
35
|
- ccCArray functions that manipulates values like if they were standard C structures (no retain/release is performed)
|
36
36
|
*/
|
37
37
|
|
@@ -84,20 +84,20 @@ void ccArrayEnsureExtraCapacity(ccArray *arr, NSUInteger extra);
|
|
84
84
|
/** shrinks the array so the memory footprint corresponds with the number of items */
|
85
85
|
void ccArrayShrink(ccArray *arr);
|
86
86
|
|
87
|
-
/** Returns index of first
|
87
|
+
/** Returns index of first occurrence of object, NSNotFound if object not found. */
|
88
88
|
NSUInteger ccArrayGetIndexOfObject(ccArray *arr, id object);
|
89
89
|
|
90
90
|
/** Returns a Boolean value that indicates whether object is present in array. */
|
91
91
|
BOOL ccArrayContainsObject(ccArray *arr, id object);
|
92
92
|
|
93
|
-
/** Appends an object.
|
93
|
+
/** Appends an object. Behavior undefined if array doesn't have enough capacity. */
|
94
94
|
void ccArrayAppendObject(ccArray *arr, id object);
|
95
95
|
|
96
96
|
/** Appends an object. Capacity of arr is increased if needed. */
|
97
97
|
void ccArrayAppendObjectWithResize(ccArray *arr, id object);
|
98
98
|
|
99
99
|
/** Appends objects from plusArr to arr.
|
100
|
-
|
100
|
+
Behavior undefined if arr doesn't have enough capacity. */
|
101
101
|
void ccArrayAppendArray(ccArray *arr, ccArray *plusArr);
|
102
102
|
|
103
103
|
/** Appends objects from plusArr to arr. Capacity of arr is increased if needed. */
|
@@ -113,17 +113,17 @@ void ccArraySwapObjectsAtIndexes(ccArray *arr, NSUInteger index1, NSUInteger ind
|
|
113
113
|
void ccArrayRemoveAllObjects(ccArray *arr);
|
114
114
|
|
115
115
|
/** Removes object at specified index and pushes back all subsequent objects.
|
116
|
-
|
116
|
+
Behavior undefined if index outside [0, num-1]. */
|
117
117
|
void ccArrayRemoveObjectAtIndex(ccArray *arr, NSUInteger index);
|
118
118
|
|
119
119
|
/** Removes object at specified index and fills the gap with the last object,
|
120
120
|
thereby avoiding the need to push back subsequent objects.
|
121
|
-
|
121
|
+
Behavior undefined if index outside [0, num-1]. */
|
122
122
|
void ccArrayFastRemoveObjectAtIndex(ccArray *arr, NSUInteger index);
|
123
123
|
|
124
124
|
void ccArrayFastRemoveObject(ccArray *arr, id object);
|
125
125
|
|
126
|
-
/** Searches for the first
|
126
|
+
/** Searches for the first occurrence of object and removes it. If object is not
|
127
127
|
found the function has no effect. */
|
128
128
|
void ccArrayRemoveObject(ccArray *arr, id object);
|
129
129
|
|
@@ -160,22 +160,22 @@ void ccCArrayDoubleCapacity(ccCArray *arr);
|
|
160
160
|
/** Increases array capacity such that max >= num + extra. */
|
161
161
|
void ccCArrayEnsureExtraCapacity(ccCArray *arr, NSUInteger extra);
|
162
162
|
|
163
|
-
/** Returns index of first
|
163
|
+
/** Returns index of first occurrence of value, NSNotFound if value not found. */
|
164
164
|
NSUInteger ccCArrayGetIndexOfValue(ccCArray *arr, CCARRAY_ID value);
|
165
165
|
|
166
166
|
/** Returns a Boolean value that indicates whether value is present in the C array. */
|
167
167
|
BOOL ccCArrayContainsValue(ccCArray *arr, CCARRAY_ID value);
|
168
168
|
|
169
|
-
/** Inserts a value at a certain position.
|
169
|
+
/** Inserts a value at a certain position. Behavior undefined if array doesn't have enough capacity */
|
170
170
|
void ccCArrayInsertValueAtIndex( ccCArray *arr, CCARRAY_ID value, NSUInteger index);
|
171
171
|
|
172
|
-
/** Appends an value.
|
172
|
+
/** Appends an value. Behavior undefined if array doesn't have enough capacity. */
|
173
173
|
void ccCArrayAppendValue(ccCArray *arr, CCARRAY_ID value);
|
174
174
|
|
175
175
|
/** Appends an value. Capacity of arr is increased if needed. */
|
176
176
|
void ccCArrayAppendValueWithResize(ccCArray *arr, CCARRAY_ID value);
|
177
177
|
|
178
|
-
/** Appends values from plusArr to arr.
|
178
|
+
/** Appends values from plusArr to arr. Behavior undefined if arr doesn't have
|
179
179
|
enough capacity. */
|
180
180
|
void ccCArrayAppendArray(ccCArray *arr, ccCArray *plusArr);
|
181
181
|
|
@@ -186,19 +186,19 @@ void ccCArrayAppendArrayWithResize(ccCArray *arr, ccCArray *plusArr);
|
|
186
186
|
void ccCArrayRemoveAllValues(ccCArray *arr);
|
187
187
|
|
188
188
|
/** Removes value at specified index and pushes back all subsequent values.
|
189
|
-
|
189
|
+
Behavior undefined if index outside [0, num-1].
|
190
190
|
@since v0.99.4
|
191
191
|
*/
|
192
192
|
void ccCArrayRemoveValueAtIndex(ccCArray *arr, NSUInteger index);
|
193
193
|
|
194
194
|
/** Removes value at specified index and fills the gap with the last value,
|
195
195
|
thereby avoiding the need to push back subsequent values.
|
196
|
-
|
196
|
+
Behavior undefined if index outside [0, num-1].
|
197
197
|
@since v0.99.4
|
198
198
|
*/
|
199
199
|
void ccCArrayFastRemoveValueAtIndex(ccCArray *arr, NSUInteger index);
|
200
200
|
|
201
|
-
/** Searches for the first
|
201
|
+
/** Searches for the first occurrence of value and removes it. If value is not found the function has no effect.
|
202
202
|
@since v0.99.4
|
203
203
|
*/
|
204
204
|
void ccCArrayRemoveValue(ccCArray *arr, CCARRAY_ID value);
|
@@ -213,7 +213,7 @@ void ccCArrayRemoveArray(ccCArray *arr, ccCArray *minusArr);
|
|
213
213
|
*/
|
214
214
|
void ccCArrayFullRemoveArray(ccCArray *arr, ccCArray *minusArr);
|
215
215
|
|
216
|
-
// iterative mergesort
|
216
|
+
// iterative mergesort
|
217
217
|
// http://www.inf.fh-flensburg.de/lang/algorithmen/sortieren/merge/mergiter.htm
|
218
218
|
int cc_mergesortL(ccCArray* array, size_t width, cc_comparator comparator);
|
219
219
|
|
File without changes
|