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
@@ -0,0 +1,195 @@
|
|
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
|
+
#include <sys/time.h>
|
29
|
+
#import <Foundation/Foundation.h>
|
30
|
+
|
31
|
+
#import "ccTypes.h"
|
32
|
+
|
33
|
+
enum {
|
34
|
+
//! Default tag
|
35
|
+
kCCActionTagInvalid = -1,
|
36
|
+
};
|
37
|
+
|
38
|
+
/** Base class for CCAction objects.
|
39
|
+
*/
|
40
|
+
@interface CCAction : NSObject <NSCopying>
|
41
|
+
{
|
42
|
+
id _originalTarget;
|
43
|
+
id _target;
|
44
|
+
NSInteger _tag;
|
45
|
+
}
|
46
|
+
|
47
|
+
/** The "target". The action will modify the target properties.
|
48
|
+
The target will be set with the 'startWithTarget' method.
|
49
|
+
When the 'stop' method is called, target will be set to nil.
|
50
|
+
The target is 'assigned', it is not 'retained'.
|
51
|
+
*/
|
52
|
+
@property (nonatomic,readonly,assign) id target;
|
53
|
+
|
54
|
+
/** The original target, since target can be nil.
|
55
|
+
Is the target that were used to run the action. Unless you are doing something complex, like CCActionManager, you should NOT call this method.
|
56
|
+
@since v0.8.2
|
57
|
+
*/
|
58
|
+
@property (nonatomic,readonly,assign) id originalTarget;
|
59
|
+
|
60
|
+
|
61
|
+
/** The action tag. An identifier of the action */
|
62
|
+
@property (nonatomic,readwrite,assign) NSInteger tag;
|
63
|
+
|
64
|
+
/** Allocates and initializes the action */
|
65
|
+
+(id) action;
|
66
|
+
|
67
|
+
/** Initializes the action */
|
68
|
+
-(id) init;
|
69
|
+
|
70
|
+
-(id) copyWithZone: (NSZone*) zone;
|
71
|
+
|
72
|
+
//! return YES if the action has finished
|
73
|
+
-(BOOL) isDone;
|
74
|
+
//! called before the action start. It will also set the target.
|
75
|
+
-(void) startWithTarget:(id)target;
|
76
|
+
//! called after the action has finished. It will set the 'target' to nil.
|
77
|
+
//! IMPORTANT: You should never call "[action stop]" manually. Instead, use: "[target stopAction:action];"
|
78
|
+
-(void) stop;
|
79
|
+
//! called every frame with its delta time. DON'T override unless you know what you are doing.
|
80
|
+
-(void) step: (ccTime) dt;
|
81
|
+
//! called once per frame. time a value between 0 and 1
|
82
|
+
//! For example:
|
83
|
+
//! * 0 means that the action just started
|
84
|
+
//! * 0.5 means that the action is in the middle
|
85
|
+
//! * 1 means that the action is over
|
86
|
+
-(void) update: (ccTime) time;
|
87
|
+
|
88
|
+
@end
|
89
|
+
|
90
|
+
/** Base class actions that do have a finite time duration.
|
91
|
+
Possible actions:
|
92
|
+
- An action with a duration of 0 seconds
|
93
|
+
- An action with a duration of 35.5 seconds
|
94
|
+
Infinite time actions are valid
|
95
|
+
*/
|
96
|
+
@interface CCFiniteTimeAction : CCAction <NSCopying>
|
97
|
+
{
|
98
|
+
//! duration in seconds
|
99
|
+
ccTime _duration;
|
100
|
+
}
|
101
|
+
//! duration in seconds of the action
|
102
|
+
@property (nonatomic,readwrite) ccTime duration;
|
103
|
+
|
104
|
+
/** returns a reversed action */
|
105
|
+
- (CCFiniteTimeAction*) reverse;
|
106
|
+
@end
|
107
|
+
|
108
|
+
|
109
|
+
@class CCActionInterval;
|
110
|
+
/** Repeats an action for ever.
|
111
|
+
To repeat the an action for a limited number of times use the Repeat action.
|
112
|
+
@warning This action can't be Sequence-able because it is not an IntervalAction
|
113
|
+
*/
|
114
|
+
@interface CCRepeatForever : CCAction <NSCopying>
|
115
|
+
{
|
116
|
+
CCActionInterval *_innerAction;
|
117
|
+
}
|
118
|
+
/** Inner action */
|
119
|
+
@property (nonatomic, readwrite, retain) CCActionInterval *innerAction;
|
120
|
+
|
121
|
+
/** creates the action */
|
122
|
+
+(id) actionWithAction: (CCActionInterval*) action;
|
123
|
+
/** initializes the action */
|
124
|
+
-(id) initWithAction: (CCActionInterval*) action;
|
125
|
+
@end
|
126
|
+
|
127
|
+
/** Changes the speed of an action, making it take longer (speed<1)
|
128
|
+
or less (speed>1) time.
|
129
|
+
Useful to simulate 'slow motion' or 'fast forward' effect.
|
130
|
+
@warning This action can't be Sequence-able because it is not an CCIntervalAction
|
131
|
+
*/
|
132
|
+
@interface CCSpeed : CCAction <NSCopying>
|
133
|
+
{
|
134
|
+
CCActionInterval *_innerAction;
|
135
|
+
CGFloat _speed;
|
136
|
+
}
|
137
|
+
/** alter the speed of the inner function in runtime */
|
138
|
+
@property (nonatomic,readwrite) CGFloat speed;
|
139
|
+
/** Inner action of CCSpeed */
|
140
|
+
@property (nonatomic, readwrite, retain) CCActionInterval *innerAction;
|
141
|
+
|
142
|
+
/** creates the action */
|
143
|
+
+(id) actionWithAction: (CCActionInterval*) action speed:(CGFloat)value;
|
144
|
+
/** initializes the action */
|
145
|
+
-(id) initWithAction: (CCActionInterval*) action speed:(CGFloat)value;
|
146
|
+
@end
|
147
|
+
|
148
|
+
@class CCNode;
|
149
|
+
/** CCFollow is an action that "follows" a node.
|
150
|
+
|
151
|
+
Eg:
|
152
|
+
[layer runAction: [CCFollow actionWithTarget:hero]];
|
153
|
+
|
154
|
+
Instead of using CCCamera as a "follower", use this action instead.
|
155
|
+
@since v0.99.2
|
156
|
+
*/
|
157
|
+
@interface CCFollow : CCAction <NSCopying>
|
158
|
+
{
|
159
|
+
/* node to follow */
|
160
|
+
CCNode *_followedNode;
|
161
|
+
|
162
|
+
/* whether camera should be limited to certain area */
|
163
|
+
BOOL _boundarySet;
|
164
|
+
|
165
|
+
/* if screen-size is bigger than the boundary - update not needed */
|
166
|
+
BOOL _boundaryFullyCovered;
|
167
|
+
|
168
|
+
/* fast access to the screen dimensions */
|
169
|
+
CGPoint _halfScreenSize;
|
170
|
+
CGPoint _fullScreenSize;
|
171
|
+
|
172
|
+
/* world boundaries */
|
173
|
+
float _leftBoundary;
|
174
|
+
float _rightBoundary;
|
175
|
+
float _topBoundary;
|
176
|
+
float _bottomBoundary;
|
177
|
+
}
|
178
|
+
|
179
|
+
/** alter behavior - turn on/off boundary */
|
180
|
+
@property (nonatomic,readwrite) BOOL boundarySet;
|
181
|
+
|
182
|
+
/** creates the action with no boundary set */
|
183
|
+
+(id) actionWithTarget:(CCNode *)followedNode;
|
184
|
+
|
185
|
+
/** creates the action with a set boundary */
|
186
|
+
+(id) actionWithTarget:(CCNode *)followedNode worldBoundary:(CGRect)rect;
|
187
|
+
|
188
|
+
/** initializes the action */
|
189
|
+
-(id) initWithTarget:(CCNode *)followedNode;
|
190
|
+
|
191
|
+
/** initializes the action with a set boundary */
|
192
|
+
-(id) initWithTarget:(CCNode *)followedNode worldBoundary:(CGRect)rect;
|
193
|
+
|
194
|
+
@end
|
195
|
+
|
@@ -0,0 +1,75 @@
|
|
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
|
+
#import "CCActionInterval.h"
|
28
|
+
|
29
|
+
@class CCCamera;
|
30
|
+
|
31
|
+
/** Base class for CCCamera actions
|
32
|
+
*/
|
33
|
+
@interface CCActionCamera : CCActionInterval <NSCopying>
|
34
|
+
{
|
35
|
+
float _centerXOrig;
|
36
|
+
float _centerYOrig;
|
37
|
+
float _centerZOrig;
|
38
|
+
|
39
|
+
float _eyeXOrig;
|
40
|
+
float _eyeYOrig;
|
41
|
+
float _eyeZOrig;
|
42
|
+
|
43
|
+
float _upXOrig;
|
44
|
+
float _upYOrig;
|
45
|
+
float _upZOrig;
|
46
|
+
}
|
47
|
+
// XXX Needed for BridgeSupport
|
48
|
+
-(void) startWithTarget:(id)aTarget;
|
49
|
+
@end
|
50
|
+
|
51
|
+
/** CCOrbitCamera action
|
52
|
+
Orbits the camera around the center of the screen using spherical coordinates
|
53
|
+
*/
|
54
|
+
@interface CCOrbitCamera : CCActionCamera <NSCopying>
|
55
|
+
{
|
56
|
+
float _radius;
|
57
|
+
float _deltaRadius;
|
58
|
+
float _angleZ;
|
59
|
+
float _deltaAngleZ;
|
60
|
+
float _angleX;
|
61
|
+
float _deltaAngleX;
|
62
|
+
|
63
|
+
float _radZ;
|
64
|
+
float _radDeltaZ;
|
65
|
+
float _radX;
|
66
|
+
float _radDeltaX;
|
67
|
+
|
68
|
+
}
|
69
|
+
/** creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
70
|
+
+(id) actionWithDuration:(float) t radius:(float)r deltaRadius:(float) dr angleZ:(float)z deltaAngleZ:(float)dz angleX:(float)x deltaAngleX:(float)dx;
|
71
|
+
/** initializes a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
72
|
+
-(id) initWithDuration:(float) t radius:(float)r deltaRadius:(float) dr angleZ:(float)z deltaAngleZ:(float)dz angleX:(float)x deltaAngleX:(float)dx;
|
73
|
+
/** positions the camera according to spherical coordinates */
|
74
|
+
-(void) sphericalRadius:(float*) r zenith:(float*) zenith azimuth:(float*) azimuth;
|
75
|
+
@end
|
@@ -0,0 +1,151 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008 Radu Gruian
|
5
|
+
*
|
6
|
+
* Copyright (c) 2011 Vit Valentin
|
7
|
+
*
|
8
|
+
*
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
14
|
+
* furnished to do so, subject to the following conditions:
|
15
|
+
*
|
16
|
+
* The above copyright notice and this permission notice shall be included in
|
17
|
+
* all copies or substantial portions of the Software.
|
18
|
+
*
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
25
|
+
* THE SOFTWARE.
|
26
|
+
*
|
27
|
+
*
|
28
|
+
* Orignal code by Radu Gruian: http://www.codeproject.com/Articles/30838/Overhauser-Catmull-Rom-Splines-for-Camera-Animatio.So
|
29
|
+
*
|
30
|
+
* Adapted to cocos2d-x by Vit Valentin
|
31
|
+
*
|
32
|
+
* Adapted from cocos2d-x to cocos2d-iphone by Ricardo Quesada
|
33
|
+
*/
|
34
|
+
|
35
|
+
|
36
|
+
#import "CCActionInterval.h"
|
37
|
+
|
38
|
+
/** An Array that contain control points.
|
39
|
+
Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
|
40
|
+
*/
|
41
|
+
@interface CCPointArray : NSObject <NSCopying>
|
42
|
+
{
|
43
|
+
NSMutableArray *_controlPoints;
|
44
|
+
}
|
45
|
+
|
46
|
+
/** Array that contains the control points */
|
47
|
+
@property (nonatomic,readwrite,retain) NSMutableArray *controlPoints;
|
48
|
+
|
49
|
+
/** creates and initializes a Points array with capacity */
|
50
|
+
+(id) arrayWithCapacity:(NSUInteger)capacity;
|
51
|
+
|
52
|
+
/** initializes a Catmull Rom config with a capacity hint */
|
53
|
+
-(id) initWithCapacity:(NSUInteger)capacity;
|
54
|
+
|
55
|
+
/** appends a control point */
|
56
|
+
-(void) addControlPoint:(CGPoint)controlPoint;
|
57
|
+
|
58
|
+
/** inserts a controlPoint at index */
|
59
|
+
-(void) insertControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)index;
|
60
|
+
|
61
|
+
/** replaces an existing controlPoint at index */
|
62
|
+
-(void) replaceControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)index;
|
63
|
+
|
64
|
+
/** get the value of a controlPoint at a given index */
|
65
|
+
-(CGPoint) getControlPointAtIndex:(NSInteger)index;
|
66
|
+
|
67
|
+
/** deletes a control point at a given index */
|
68
|
+
-(void) removeControlPointAtIndex:(NSUInteger)index;
|
69
|
+
|
70
|
+
/** returns the number of objects of the control point array */
|
71
|
+
-(NSUInteger) count;
|
72
|
+
|
73
|
+
/** returns a new copy of the array reversed. User is responsible for releasing this copy */
|
74
|
+
-(CCPointArray*) reverse;
|
75
|
+
|
76
|
+
/** reverse the current control point array inline, without generating a new one */
|
77
|
+
-(void) reverseInline;
|
78
|
+
@end
|
79
|
+
|
80
|
+
/** Cardinal Spline path.
|
81
|
+
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
|
82
|
+
*/
|
83
|
+
@interface CCCardinalSplineTo : CCActionInterval
|
84
|
+
{
|
85
|
+
CCPointArray *_points;
|
86
|
+
CGFloat _deltaT;
|
87
|
+
CGFloat _tension;
|
88
|
+
CGPoint _previousPosition;
|
89
|
+
CGPoint _accumulatedDiff;
|
90
|
+
}
|
91
|
+
|
92
|
+
/** Array of control points */
|
93
|
+
@property (nonatomic,readwrite,retain) CCPointArray *points;
|
94
|
+
|
95
|
+
/** creates an action with a Cardinal Spline array of points and tension */
|
96
|
+
+(id) actionWithDuration:(ccTime)duration points:(CCPointArray*)points tension:(CGFloat)tension;
|
97
|
+
|
98
|
+
/** initializes the action with a duration and an array of points */
|
99
|
+
-(id) initWithDuration:(ccTime)duration points:(CCPointArray*)points tension:(CGFloat)tension;
|
100
|
+
|
101
|
+
@end
|
102
|
+
|
103
|
+
/** Cardinal Spline path.
|
104
|
+
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
|
105
|
+
*/
|
106
|
+
@interface CCCardinalSplineBy : CCCardinalSplineTo
|
107
|
+
{
|
108
|
+
CGPoint _startPosition;
|
109
|
+
}
|
110
|
+
// XXX: To make BridgeSupport happy
|
111
|
+
-(void) startWithTarget:(id)target;
|
112
|
+
@end
|
113
|
+
|
114
|
+
/** An action that moves the target with a CatmullRom curve to a destination point.
|
115
|
+
A Catmull Rom is a Cardinal Spline with a tension of 0.5.
|
116
|
+
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
|
117
|
+
*/
|
118
|
+
@interface CCCatmullRomTo : CCCardinalSplineTo
|
119
|
+
{
|
120
|
+
}
|
121
|
+
/** creates an action with a Cardinal Spline array of points and tension */
|
122
|
+
+(id) actionWithDuration:(ccTime)dt points:(CCPointArray*)points;
|
123
|
+
|
124
|
+
/** initializes the action with a duration and an array of points */
|
125
|
+
-(id) initWithDuration:(ccTime)dt points:(CCPointArray*)points;
|
126
|
+
@end
|
127
|
+
|
128
|
+
/** An action that moves the target with a CatmullRom curve by a certain distance.
|
129
|
+
A Catmull Rom is a Cardinal Spline with a tension of 0.5.
|
130
|
+
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
|
131
|
+
*/
|
132
|
+
@interface CCCatmullRomBy : CCCardinalSplineBy
|
133
|
+
{
|
134
|
+
}
|
135
|
+
/** creates an action with a Cardinal Spline array of points and tension */
|
136
|
+
+(id) actionWithDuration:(ccTime)dt points:(CCPointArray*)points;
|
137
|
+
|
138
|
+
/** initializes the action with a duration and an array of points */
|
139
|
+
-(id) initWithDuration:(ccTime)dt points:(CCPointArray*)points;
|
140
|
+
@end
|
141
|
+
|
142
|
+
#ifdef __cplusplus
|
143
|
+
extern "C" {
|
144
|
+
#endif
|
145
|
+
|
146
|
+
/** Returns the Cardinal Spline position for a given set of control points, tension and time */
|
147
|
+
CGPoint ccCardinalSplineAt( CGPoint p0, CGPoint p1, CGPoint p2, CGPoint p3, CGFloat tension, ccTime t );
|
148
|
+
|
149
|
+
#ifdef __cplusplus
|
150
|
+
}
|
151
|
+
#endif
|
@@ -0,0 +1,245 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2009 Jason Booth
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
11
|
+
* furnished to do so, subject to the following conditions:
|
12
|
+
*
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
14
|
+
* all copies or substantial portions of the Software.
|
15
|
+
*
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
* THE SOFTWARE.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
#import "CCActionInterval.h"
|
28
|
+
|
29
|
+
/** Base class for Easing actions
|
30
|
+
*/
|
31
|
+
@interface CCActionEase : CCActionInterval <NSCopying>
|
32
|
+
{
|
33
|
+
CCActionInterval *_inner;
|
34
|
+
}
|
35
|
+
/** The inner action */
|
36
|
+
@property (nonatomic, readonly) CCActionInterval *inner;
|
37
|
+
|
38
|
+
/** creates the action */
|
39
|
+
+(id) actionWithAction: (CCActionInterval*) action;
|
40
|
+
/** initializes the action */
|
41
|
+
-(id) initWithAction: (CCActionInterval*) action;
|
42
|
+
@end
|
43
|
+
|
44
|
+
/** Base class for Easing actions with rate parameters
|
45
|
+
*/
|
46
|
+
@interface CCEaseRateAction : CCActionEase <NSCopying>
|
47
|
+
{
|
48
|
+
float _rate;
|
49
|
+
}
|
50
|
+
/** rate value for the actions */
|
51
|
+
@property (nonatomic,readwrite,assign) float rate;
|
52
|
+
/** Creates the action with the inner action and the rate parameter */
|
53
|
+
+(id) actionWithAction: (CCActionInterval*) action rate:(float)rate;
|
54
|
+
/** Initializes the action with the inner action and the rate parameter */
|
55
|
+
-(id) initWithAction: (CCActionInterval*) action rate:(float)rate;
|
56
|
+
@end
|
57
|
+
|
58
|
+
/** CCEaseIn action with a rate
|
59
|
+
*/
|
60
|
+
@interface CCEaseIn : CCEaseRateAction <NSCopying>
|
61
|
+
{}
|
62
|
+
// Needed for BridgeSupport
|
63
|
+
-(void) update: (ccTime) t;
|
64
|
+
@end
|
65
|
+
|
66
|
+
/** CCEaseOut action with a rate
|
67
|
+
*/
|
68
|
+
@interface CCEaseOut : CCEaseRateAction <NSCopying>
|
69
|
+
{}
|
70
|
+
// Needed for BridgeSupport
|
71
|
+
-(void) update: (ccTime) t;
|
72
|
+
@end
|
73
|
+
|
74
|
+
/** CCEaseInOut action with a rate
|
75
|
+
*/
|
76
|
+
@interface CCEaseInOut : CCEaseRateAction <NSCopying>
|
77
|
+
{}
|
78
|
+
// Needed for BridgeSupport
|
79
|
+
-(void) update: (ccTime) t;
|
80
|
+
@end
|
81
|
+
|
82
|
+
/** CCEase Exponential In
|
83
|
+
*/
|
84
|
+
@interface CCEaseExponentialIn : CCActionEase <NSCopying>
|
85
|
+
{}
|
86
|
+
// Needed for BridgeSupport
|
87
|
+
-(void) update: (ccTime) t;
|
88
|
+
@end
|
89
|
+
|
90
|
+
/** Ease Exponential Out
|
91
|
+
*/
|
92
|
+
@interface CCEaseExponentialOut : CCActionEase <NSCopying>
|
93
|
+
{}
|
94
|
+
// Needed for BridgeSupport
|
95
|
+
-(void) update: (ccTime) t;
|
96
|
+
@end
|
97
|
+
|
98
|
+
/** Ease Exponential InOut
|
99
|
+
*/
|
100
|
+
@interface CCEaseExponentialInOut : CCActionEase <NSCopying>
|
101
|
+
{}
|
102
|
+
// Needed for BridgeSupport
|
103
|
+
-(void) update: (ccTime) t;
|
104
|
+
@end
|
105
|
+
|
106
|
+
/** Ease Sine In
|
107
|
+
*/
|
108
|
+
@interface CCEaseSineIn : CCActionEase <NSCopying>
|
109
|
+
{}
|
110
|
+
// Needed for BridgeSupport
|
111
|
+
-(void) update: (ccTime) t;
|
112
|
+
@end
|
113
|
+
|
114
|
+
/** Ease Sine Out
|
115
|
+
*/
|
116
|
+
@interface CCEaseSineOut : CCActionEase <NSCopying>
|
117
|
+
{}
|
118
|
+
// Needed for BridgeSupport
|
119
|
+
-(void) update: (ccTime) t;
|
120
|
+
@end
|
121
|
+
|
122
|
+
/** Ease Sine InOut
|
123
|
+
*/
|
124
|
+
@interface CCEaseSineInOut : CCActionEase <NSCopying>
|
125
|
+
{}
|
126
|
+
// Needed for BridgeSupport
|
127
|
+
-(void) update: (ccTime) t;
|
128
|
+
@end
|
129
|
+
|
130
|
+
/** Ease Elastic abstract class
|
131
|
+
@since v0.8.2
|
132
|
+
*/
|
133
|
+
@interface CCEaseElastic : CCActionEase <NSCopying>
|
134
|
+
{
|
135
|
+
float _period;
|
136
|
+
}
|
137
|
+
|
138
|
+
/** period of the wave in radians. default is 0.3 */
|
139
|
+
@property (nonatomic,readwrite) float period;
|
140
|
+
|
141
|
+
/** Creates the action with the inner action and the period in radians (default is 0.3) */
|
142
|
+
+(id) actionWithAction: (CCActionInterval*) action period:(float)period;
|
143
|
+
/** Initializes the action with the inner action and the period in radians (default is 0.3) */
|
144
|
+
-(id) initWithAction: (CCActionInterval*) action period:(float)period;
|
145
|
+
@end
|
146
|
+
|
147
|
+
/** Ease Elastic In action.
|
148
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
149
|
+
@since v0.8.2
|
150
|
+
*/
|
151
|
+
@interface CCEaseElasticIn : CCEaseElastic <NSCopying>
|
152
|
+
{}
|
153
|
+
// Needed for BridgeSupport
|
154
|
+
-(void) update: (ccTime) t;
|
155
|
+
@end
|
156
|
+
|
157
|
+
/** Ease Elastic Out action.
|
158
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
159
|
+
@since v0.8.2
|
160
|
+
*/
|
161
|
+
@interface CCEaseElasticOut : CCEaseElastic <NSCopying>
|
162
|
+
{}
|
163
|
+
// Needed for BridgeSupport
|
164
|
+
-(void) update: (ccTime) t;
|
165
|
+
@end
|
166
|
+
|
167
|
+
/** Ease Elastic InOut action.
|
168
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
169
|
+
@since v0.8.2
|
170
|
+
*/
|
171
|
+
@interface CCEaseElasticInOut : CCEaseElastic <NSCopying>
|
172
|
+
{}
|
173
|
+
// Needed for BridgeSupport
|
174
|
+
-(void) update: (ccTime) t;
|
175
|
+
@end
|
176
|
+
|
177
|
+
/** CCEaseBounce abstract class.
|
178
|
+
@since v0.8.2
|
179
|
+
*/
|
180
|
+
@interface CCEaseBounce : CCActionEase <NSCopying>
|
181
|
+
{}
|
182
|
+
// Needed for BridgeSupport
|
183
|
+
-(ccTime) bounceTime:(ccTime) t;
|
184
|
+
@end
|
185
|
+
|
186
|
+
/** CCEaseBounceIn action.
|
187
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
188
|
+
@since v0.8.2
|
189
|
+
*/
|
190
|
+
@interface CCEaseBounceIn : CCEaseBounce <NSCopying>
|
191
|
+
{}
|
192
|
+
// Needed for BridgeSupport
|
193
|
+
-(void) update: (ccTime) t;
|
194
|
+
@end
|
195
|
+
|
196
|
+
/** EaseBounceOut action.
|
197
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
198
|
+
@since v0.8.2
|
199
|
+
*/
|
200
|
+
@interface CCEaseBounceOut : CCEaseBounce <NSCopying>
|
201
|
+
{}
|
202
|
+
// Needed for BridgeSupport
|
203
|
+
-(void) update: (ccTime) t;
|
204
|
+
@end
|
205
|
+
|
206
|
+
/** CCEaseBounceInOut action.
|
207
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
208
|
+
@since v0.8.2
|
209
|
+
*/
|
210
|
+
@interface CCEaseBounceInOut : CCEaseBounce <NSCopying>
|
211
|
+
{}
|
212
|
+
// Needed for BridgeSupport
|
213
|
+
-(void) update: (ccTime) t;
|
214
|
+
@end
|
215
|
+
|
216
|
+
/** CCEaseBackIn action.
|
217
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
218
|
+
@since v0.8.2
|
219
|
+
*/
|
220
|
+
@interface CCEaseBackIn : CCActionEase <NSCopying>
|
221
|
+
{}
|
222
|
+
// Needed for BridgeSupport
|
223
|
+
-(void) update: (ccTime) t;
|
224
|
+
@end
|
225
|
+
|
226
|
+
/** CCEaseBackOut action.
|
227
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
228
|
+
@since v0.8.2
|
229
|
+
*/
|
230
|
+
@interface CCEaseBackOut : CCActionEase <NSCopying>
|
231
|
+
{}
|
232
|
+
// Needed for BridgeSupport
|
233
|
+
-(void) update: (ccTime) t;
|
234
|
+
@end
|
235
|
+
|
236
|
+
/** CCEaseBackInOut action.
|
237
|
+
@warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
238
|
+
@since v0.8.2
|
239
|
+
*/
|
240
|
+
@interface CCEaseBackInOut : CCActionEase <NSCopying>
|
241
|
+
{}
|
242
|
+
// Needed for BridgeSupport
|
243
|
+
-(void) update: (ccTime) t;
|
244
|
+
@end
|
245
|
+
|