joybox 1.0.0 → 1.1.0
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.
- data/.travis.yml +3 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +4 -4
- data/README.md +66 -22
- data/Rakefile +22 -4
- data/app/ios/app_delegate.rb +48 -0
- data/app/osx/app_delegate.rb +26 -0
- data/app/osx/layers/game_layer.rb +5 -0
- data/app/osx/menu.rb +51 -0
- data/command/command/image.rb +26 -0
- data/command/command/string.rb +15 -0
- data/command/command/template.rb +59 -0
- data/command/command/tmx.rb +75 -0
- data/command/joybox_generate_command.rb +64 -110
- data/command/joybox_retina_command.rb +87 -0
- data/command/{joybox/templates → templates}/layer.erb +0 -0
- data/command/{joybox/templates → templates}/layer_spec.erb +0 -0
- data/command/{joybox/templates → templates}/scene.erb +0 -0
- data/command/{joybox/templates → templates}/scene_spec.erb +0 -0
- data/command/{joybox/templates → templates}/sprite.erb +0 -0
- data/command/{joybox/templates → templates}/sprite_spec.erb +0 -0
- data/ext/extconf.rb +34 -0
- data/joybox.gemspec +103 -50
- data/lib/joybox.rb +2 -0
- data/lib/joybox/joybox-ios.rb +18 -3
- data/lib/joybox/joybox-osx.rb +18 -2
- data/lib/joybox/version.rb +1 -1
- data/motion/joybox-ios/common/cg_point.rb +46 -16
- data/motion/joybox-ios/common/device.rb +56 -0
- data/motion/joybox-ios/common/ui_touch.rb +0 -2
- data/motion/joybox-ios/configuration/configuration.rb +10 -40
- data/motion/joybox-ios/configuration/file_utils.rb +0 -4
- data/motion/joybox-ios/configuration/gl_view.rb +14 -20
- data/motion/joybox-ios/configuration/texture_2d.rb +0 -4
- data/motion/joybox-ios/core/layer.rb +2 -8
- data/motion/joybox-ios/debug/proxy_view.rb +5 -5
- data/motion/joybox-ios/debug/{node.rb → repl.rb} +25 -19
- data/motion/joybox-ios/director.rb +15 -4
- data/motion/joybox-osx/common/ats_point.rb +45 -15
- data/motion/joybox-osx/common/device.rb +30 -0
- data/motion/joybox-osx/common/ns_event.rb +0 -1
- data/motion/joybox-osx/configuration/configuration.rb +6 -26
- data/motion/joybox-osx/configuration/gl_view.rb +16 -14
- data/motion/joybox-osx/core/layer.rb +45 -26
- data/motion/joybox-osx/debug/proxy_view.rb +5 -5
- data/motion/joybox-osx/debug/{node.rb → repl.rb} +13 -7
- data/motion/joybox-osx/director.rb +4 -3
- data/motion/joybox/actions/animate.rb +0 -1
- data/motion/joybox/actions/bezier.rb +2 -9
- data/motion/joybox/actions/blink.rb +1 -4
- data/motion/joybox/actions/callback.rb +19 -0
- data/motion/joybox/actions/d3/flip.rb +27 -0
- data/motion/joybox/actions/d3/jump.rb +30 -0
- data/motion/joybox/actions/d3/lens.rb +30 -0
- data/motion/joybox/actions/d3/shake.rb +32 -0
- data/motion/joybox/actions/d3/shatter.rb +30 -0
- data/motion/joybox/actions/d3/wave.rb +33 -0
- data/motion/joybox/actions/delay.rb +19 -0
- data/motion/joybox/actions/ease.rb +3 -21
- data/motion/joybox/actions/fade.rb +30 -6
- data/motion/joybox/actions/jump.rb +0 -5
- data/motion/joybox/actions/liquid.rb +28 -0
- data/motion/joybox/actions/move.rb +2 -9
- data/motion/joybox/actions/place.rb +0 -2
- data/motion/joybox/actions/repeat.rb +0 -2
- data/motion/joybox/actions/rotate.rb +2 -9
- data/motion/joybox/actions/scale.rb +2 -9
- data/motion/joybox/actions/sequence.rb +0 -1
- data/motion/joybox/actions/shuffle.rb +26 -0
- data/motion/joybox/actions/skew.rb +2 -11
- data/motion/joybox/actions/spawn.rb +0 -1
- data/motion/joybox/actions/split.rb +24 -0
- data/motion/joybox/actions/tint.rb +0 -5
- data/motion/joybox/actions/turn.rb +24 -0
- data/motion/joybox/actions/twirl.rb +30 -0
- data/motion/joybox/actions/visibility.rb +21 -0
- data/motion/joybox/actions/wave.rb +32 -0
- data/motion/joybox/animations/animation.rb +7 -11
- data/motion/joybox/audio/audio.rb +31 -0
- data/motion/joybox/audio/audio_effect.rb +69 -0
- data/motion/joybox/audio/background_audio.rb +77 -0
- data/motion/joybox/common/{gc_size.rb → cg_size.rb} +13 -12
- data/motion/joybox/common/color.rb +4 -13
- data/motion/joybox/common/initialize.rb +11 -0
- data/motion/joybox/common/ns_array.rb +15 -0
- data/motion/joybox/common/ns_string.rb +7 -0
- data/motion/joybox/common/numeric.rb +13 -4
- data/motion/joybox/common/screen.rb +4 -12
- data/motion/joybox/configuration/debug.rb +29 -0
- data/motion/joybox/core/layer.rb +0 -24
- data/motion/joybox/core/layer_color.rb +47 -0
- data/motion/joybox/core/node.rb +18 -8
- data/motion/joybox/core/scene.rb +0 -5
- data/motion/joybox/core/sprite.rb +43 -25
- data/motion/joybox/core/sprite_batch.rb +15 -6
- data/motion/joybox/core/sprite_frame_cache.rb +9 -58
- data/motion/joybox/debug/physics.rb +40 -0
- data/motion/joybox/debug/physics_draw.rb +191 -0
- data/motion/joybox/joybox.rb +9 -1
- data/motion/joybox/macros.rb +13 -13
- data/motion/joybox/physics/aabb.rb +28 -0
- data/motion/joybox/physics/body.rb +163 -68
- data/motion/joybox/physics/chain_shape.rb +71 -0
- data/motion/joybox/physics/circle_shape.rb +31 -0
- data/motion/joybox/physics/edge_shape.rb +37 -0
- data/motion/joybox/physics/filter.rb +17 -0
- data/motion/joybox/physics/fixture.rb +52 -0
- data/motion/joybox/physics/mass_data.rb +19 -0
- data/motion/joybox/physics/physics_sprite.rb +50 -16
- data/motion/joybox/physics/polygon_shape.rb +54 -0
- data/motion/joybox/physics/profile.rb +14 -0
- data/motion/joybox/physics/ray_cast_input.rb +30 -0
- data/motion/joybox/physics/ray_cast_output.rb +17 -0
- data/motion/joybox/physics/shape.rb +61 -0
- data/motion/joybox/physics/transform.rb +17 -0
- data/motion/joybox/physics/world.rb +101 -30
- data/motion/joybox/tmx/object_layer.rb +12 -0
- data/motion/joybox/tmx/tile_layer.rb +74 -0
- data/motion/joybox/tmx/tile_map.rb +112 -0
- data/motion/joybox/tmx/tile_set.rb +26 -0
- data/motion/joybox/tmx/tmx.rb +16 -0
- data/motion/joybox/ui/label.rb +44 -16
- data/motion/joybox/ui/menu.rb +7 -9
- data/motion/joybox/ui/menu_image.rb +11 -8
- data/motion/joybox/ui/menu_label.rb +14 -13
- data/resources/Default-568h@2x.png +0 -0
- data/resources/animation_frames-hd.plist +126 -0
- data/resources/animation_frames-ipadhd.plist +126 -0
- data/resources/animation_frames.plist +126 -0
- data/resources/animation_sprite_sheet-hd.png +0 -0
- data/resources/animation_sprite_sheet-ipadhd.png +0 -0
- data/resources/animation_sprite_sheet.png +0 -0
- data/resources/fps_images-hd.png +0 -0
- data/resources/fps_images-ipadhd.png +0 -0
- data/resources/fps_images.png +0 -0
- data/resources/sprite.png +0 -0
- data/resources/sprite_inverted.png +0 -0
- data/resources/sprite_sheet.png +0 -0
- data/spec/motion/joybox-ios/common/screen_spec.rb +21 -0
- data/spec/{main_spec.rb → motion/joybox-ios/main_spec.rb} +6 -2
- data/spec/motion/joybox-ios/ui/label_spec.rb +20 -0
- data/spec/motion/joybox-ios/ui/menu_label_spec.rb +15 -0
- data/spec/motion/joybox-ios/ui/menu_spec.rb +87 -0
- data/spec/motion/joybox-osx/common/screen_spec.rb +21 -0
- data/spec/motion/joybox-osx/main_spec.rb +13 -0
- data/spec/motion/joybox-osx/ui/label_spec.rb +18 -0
- data/spec/motion/joybox-osx/ui/menu_label_spec.rb +13 -0
- data/spec/motion/joybox-osx/ui/menu_spec.rb +87 -0
- data/spec/motion/joybox/actions/actions_spec.rb +11 -0
- data/spec/motion/joybox/actions/bezier_spec.rb +37 -0
- data/spec/motion/joybox/actions/blink_spec.rb +16 -0
- data/spec/motion/joybox/actions/fade_spec.rb +49 -0
- data/spec/motion/joybox/actions/jump_spec.rb +37 -0
- data/spec/motion/joybox/actions/move_spec.rb +37 -0
- data/spec/motion/joybox/actions/place_spec.rb +12 -0
- data/spec/motion/joybox/actions/rotate_spec.rb +35 -0
- data/spec/motion/joybox/actions/scale_spec.rb +43 -0
- data/spec/motion/joybox/actions/skew_spec.rb +43 -0
- data/spec/motion/joybox/common/cg_size_spec.rb +29 -0
- data/spec/motion/joybox/common/color_spec.rb +31 -0
- data/spec/motion/joybox/common/ns_string_spec.rb +8 -0
- data/spec/motion/joybox/common/numeric_spec.rb +13 -0
- data/spec/motion/joybox/core/node_spec.rb +36 -0
- data/spec/motion/joybox/core/sprite_batch_spec.rb +34 -0
- data/spec/motion/joybox/core/sprite_frame_cache_spec.rb +111 -0
- data/spec/motion/joybox/core/sprite_spec.rb +121 -0
- data/spec/motion/joybox/macros_spec.rb +280 -0
- data/spec/motion/joybox/physics/aabb_spec.rb +17 -0
- data/spec/motion/joybox/physics/body_spec.rb +318 -0
- data/spec/motion/joybox/physics/chain_shape_spec.rb +80 -0
- data/spec/motion/joybox/physics/circle_shape_spec.rb +63 -0
- data/spec/motion/joybox/physics/edge_shape_spec.rb +48 -0
- data/spec/motion/joybox/physics/fixture_spec.rb +106 -0
- data/spec/motion/joybox/physics/mass_data_spec.rb +13 -0
- data/spec/motion/joybox/physics/physics_sprite_spec.rb +50 -0
- data/spec/motion/joybox/physics/polygon_shape_spec.rb +92 -0
- data/spec/motion/joybox/physics/ray_cast_input_spec.rb +17 -0
- data/spec/motion/joybox/physics/ray_cast_output_spec.rb +13 -0
- data/spec/motion/joybox/physics/shape_spec.rb +50 -0
- data/spec/motion/joybox/physics/transform_spec.rb +13 -0
- data/spec/motion/joybox/physics/world_spec.rb +228 -0
- data/spec/motion/joybox/ui/label_spec.rb +53 -0
- data/spec/motion/joybox/ui/menu_image_spec.rb +51 -0
- data/spec/motion/joybox/ui/menu_label_spec.rb +68 -0
- data/spec/motion/joybox/ui/menu_spec.rb +26 -0
- data/spec/spec_helpers/cg_point.rb +5 -0
- data/spec/spec_helpers/cg_point_spec.rb +14 -0
- data/template/joybox-ios-example-repl/files/.gitignore +16 -0
- data/template/joybox-ios/files/.gitignore +16 -0
- data/template/joybox-osx-example-repl/files/.gitignore +16 -0
- data/template/joybox-osx/files/.gitignore +16 -0
- data/vendor/vendor-ios/box_2d/box_2d.bridgesupport +1201 -85
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DAABB.h +21 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DBody.h +58 -13
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DBodyDef.h +44 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DBodyTypes.h +20 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DChainShape.h +29 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DCircleShape.h +7 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DColor.h +23 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DContactFilter.h +24 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DContactListener.h +1 -1
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DDestructionListener.h +24 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DDraw.h +54 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DEdgeShape.h +13 -2
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DFilter.h +23 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DFixture.h +47 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DFixtureDef.h +29 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DMassData.h +23 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DPolygonShape.h +14 -1
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DProfile.h +31 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DQueryCallback.h +24 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DRayCastCallback.h +24 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DRayCastInput.h +23 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DRayCastOutput.h +21 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DShape.h +23 -3
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DShapeTypes.h +22 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DTransform.h +21 -0
- data/vendor/vendor-ios/box_2d/box_2d_include/B2DWorld.h +40 -19
- data/vendor/vendor-ios/box_2d/libBox2D.a +0 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d.bridgesupport +808 -1578
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCActionEase.h +47 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCFontDefinition.h +85 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCLabelTTF.h +54 -6
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCMenuItem.h +1 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCTMXLayer.h +2 -2
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/CCTexture2D.h +4 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/ccTypes.h +51 -1
- data/vendor/vendor-ios/cocos_2d/libcocos2d.a +0 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader.bridgesupport +510 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCBAnimationManager.h +149 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCBKeyframe.h +40 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCBReader.h +176 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCBSequence.h +49 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCBSequenceProperty.h +38 -0
- data/vendor/vendor-ios/cocos_builder_reader/cocos_builder_reader_include/CCNode+CCBRelativePositioning.h +65 -0
- data/vendor/vendor-ios/cocos_builder_reader/libCocosBuilderReader.a +0 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion.bridgesupport +1001 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CDAudioManager.h +243 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CDConfig.h +60 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CDOpenALSupport.h +77 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CDXMacOSXSupport.h +232 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CDXPropertyModifierAction.h +45 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/CocosDenshion.h +440 -0
- data/vendor/vendor-ios/cocos_denshion/cocos_denshion_include/SimpleAudioEngine.h +90 -0
- data/vendor/vendor-ios/cocos_denshion/libCocosDenshion.a +0 -0
- data/vendor/vendor-ios/kazmath/kazmath.bridgesupport +865 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/GL/mat4stack.h +51 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/GL/matrix.h +58 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/aabb.h +53 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/kazmath.h +39 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/mat3.h +75 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/mat4.h +93 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/neon_matrix_impl.h +41 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/plane.h +70 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/quaternion.h +113 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/ray2.h +50 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/utility.h +74 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/vec2.h +64 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/vec3.h +68 -0
- data/vendor/vendor-ios/kazmath/kazmath_include/vec4.h +68 -0
- data/vendor/vendor-ios/kazmath/libkazmath.a +0 -0
- data/vendor/vendor-osx/box_2d/box_2d.bridgesupport +1199 -83
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DAABB.h +21 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DBody.h +58 -13
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DBodyDef.h +44 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DBodyTypes.h +20 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DChainShape.h +29 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DCircleShape.h +7 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DColor.h +23 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DContactFilter.h +24 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DContactListener.h +1 -1
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DDestructionListener.h +24 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DDraw.h +54 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DEdgeShape.h +13 -2
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DFilter.h +23 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DFixture.h +47 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DFixtureDef.h +29 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DMassData.h +23 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DPolygonShape.h +14 -1
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DProfile.h +31 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DQueryCallback.h +24 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DRayCastCallback.h +24 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DRayCastInput.h +23 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DRayCastOutput.h +21 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DShape.h +23 -3
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DShapeTypes.h +22 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DTransform.h +21 -0
- data/vendor/vendor-osx/box_2d/box_2d_include/B2DWorld.h +40 -19
- data/vendor/vendor-osx/box_2d/libBox2D.a +0 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d.bridgesupport +2820 -2633
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionEase.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCFontDefinition.h +85 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelTTF.h +54 -6
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenuItem.h +1 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXLayer.h +2 -2
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexture2D.h +4 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCDirectorIOS.h +111 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCES2Renderer.h +83 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCESRenderer.h +54 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCGLView.h +175 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCTouchDelegateProtocol.h +75 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCTouchDispatcher.h +120 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/iOS/CCTouchHandler.h +93 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccTypes.h +65 -1
- data/vendor/vendor-osx/cocos_2d/libcocos2d.a +0 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader.bridgesupport +510 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCBAnimationManager.h +149 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCBKeyframe.h +40 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCBReader.h +176 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCBSequence.h +49 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCBSequenceProperty.h +38 -0
- data/vendor/vendor-osx/cocos_builder_reader/cocos_builder_reader_include/CCNode+CCBRelativePositioning.h +65 -0
- data/vendor/vendor-osx/cocos_builder_reader/libCocosBuilderReader.a +0 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion.bridgesupport +1001 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CDAudioManager.h +243 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CDConfig.h +60 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CDOpenALSupport.h +77 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CDXMacOSXSupport.h +232 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CDXPropertyModifierAction.h +45 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/CocosDenshion.h +440 -0
- data/vendor/vendor-osx/cocos_denshion/cocos_denshion_include/SimpleAudioEngine.h +90 -0
- data/vendor/vendor-osx/cocos_denshion/libCocosDenshion.a +0 -0
- data/vendor/vendor-osx/kazmath/kazmath.bridgesupport +865 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/GL/mat4stack.h +51 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/GL/matrix.h +58 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/aabb.h +53 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/kazmath.h +39 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/mat3.h +75 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/mat4.h +93 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/neon_matrix_impl.h +41 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/plane.h +70 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/quaternion.h +113 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/ray2.h +50 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/utility.h +74 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/vec2.h +64 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/vec3.h +68 -0
- data/vendor/vendor-osx/kazmath/kazmath_include/vec4.h +68 -0
- data/vendor/vendor-osx/kazmath/libkazmath.a +0 -0
- metadata +353 -57
- checksums.yaml +0 -15
- data/bin/joybox +0 -49
- data/command/joybox/USAGE +0 -24
- data/motion/joybox-ios/configuration/debug.rb +0 -27
- data/motion/joybox-ios/debug/debug.rb +0 -10
- data/motion/joybox-osx/configuration/debug.rb +0 -27
- data/motion/joybox-osx/configuration/sprite_view.rb +0 -91
- data/motion/joybox-osx/debug/debug.rb +0 -10
- data/motion/joybox/core/ns_object.rb +0 -8
- data/spec/lib/joybox/cocos2d/cocos2d_spec.rb +0 -7
- data/spec/lib/joybox/cocos2d/macros_spec.rb +0 -37
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/cocos2d-ios-exceptions.bridgesupport +0 -39
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/gen_cocos2d_bridgesupport.sh +0 -17
- data/vendor/vendor-ios/cocos_2d/cocos_2d_include/gen_cocos2d_complement.sh +0 -17
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef QUATERNION_H_INCLUDED
|
|
27
|
+
#define QUATERNION_H_INCLUDED
|
|
28
|
+
|
|
29
|
+
#ifdef __cplusplus
|
|
30
|
+
extern "C" {
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
#include "utility.h"
|
|
34
|
+
|
|
35
|
+
struct kmMat4;
|
|
36
|
+
struct kmMat3;
|
|
37
|
+
struct kmVec3;
|
|
38
|
+
|
|
39
|
+
typedef struct kmQuaternion {
|
|
40
|
+
kmScalar x;
|
|
41
|
+
kmScalar y;
|
|
42
|
+
kmScalar z;
|
|
43
|
+
kmScalar w;
|
|
44
|
+
} kmQuaternion;
|
|
45
|
+
|
|
46
|
+
kmQuaternion* const kmQuaternionConjugate(kmQuaternion* pOut, const kmQuaternion* pIn); ///< Returns pOut, sets pOut to the conjugate of pIn
|
|
47
|
+
|
|
48
|
+
const kmScalar kmQuaternionDot(const kmQuaternion* q1, const kmQuaternion* q2); ///< Returns the dot product of the 2 quaternions
|
|
49
|
+
|
|
50
|
+
kmQuaternion* kmQuaternionExp(kmQuaternion* pOut, const kmQuaternion* pIn); ///< Returns the exponential of the quaternion
|
|
51
|
+
|
|
52
|
+
///< Makes the passed quaternion an identity quaternion
|
|
53
|
+
|
|
54
|
+
kmQuaternion* kmQuaternionIdentity(kmQuaternion* pOut);
|
|
55
|
+
|
|
56
|
+
///< Returns the inverse of the passed Quaternion
|
|
57
|
+
|
|
58
|
+
kmQuaternion* kmQuaternionInverse(kmQuaternion* pOut,
|
|
59
|
+
const kmQuaternion* pIn);
|
|
60
|
+
|
|
61
|
+
///< Returns true if the quaternion is an identity quaternion
|
|
62
|
+
|
|
63
|
+
int kmQuaternionIsIdentity(const kmQuaternion* pIn);
|
|
64
|
+
|
|
65
|
+
///< Returns the length of the quaternion
|
|
66
|
+
|
|
67
|
+
kmScalar kmQuaternionLength(const kmQuaternion* pIn);
|
|
68
|
+
|
|
69
|
+
///< Returns the length of the quaternion squared (prevents a sqrt)
|
|
70
|
+
|
|
71
|
+
kmScalar kmQuaternionLengthSq(const kmQuaternion* pIn);
|
|
72
|
+
|
|
73
|
+
///< Returns the natural logarithm
|
|
74
|
+
|
|
75
|
+
kmQuaternion* kmQuaternionLn(kmQuaternion* pOut, const kmQuaternion* pIn);
|
|
76
|
+
|
|
77
|
+
///< Multiplies 2 quaternions together
|
|
78
|
+
|
|
79
|
+
kmQuaternion* kmQuaternionMultiply(kmQuaternion* pOut, const kmQuaternion* q1, const kmQuaternion* q2);
|
|
80
|
+
|
|
81
|
+
///< Normalizes a quaternion
|
|
82
|
+
|
|
83
|
+
kmQuaternion* kmQuaternionNormalize(kmQuaternion* pOut, const kmQuaternion* pIn);
|
|
84
|
+
|
|
85
|
+
///< Rotates a quaternion around an axis
|
|
86
|
+
|
|
87
|
+
kmQuaternion* kmQuaternionRotationAxis(kmQuaternion* pOut, const struct kmVec3* pV, kmScalar angle);
|
|
88
|
+
|
|
89
|
+
///< Creates a quaternion from a rotation matrix
|
|
90
|
+
|
|
91
|
+
kmQuaternion* kmQuaternionRotationMatrix(kmQuaternion* pOut, const struct kmMat3* pIn);
|
|
92
|
+
|
|
93
|
+
///< Create a quaternion from yaw, pitch and roll
|
|
94
|
+
|
|
95
|
+
kmQuaternion* kmQuaternionRotationYawPitchRoll(kmQuaternion* pOut, kmScalar yaw, kmScalar pitch, kmScalar roll);
|
|
96
|
+
///< Interpolate between 2 quaternions
|
|
97
|
+
kmQuaternion* kmQuaternionSlerp(kmQuaternion* pOut, const kmQuaternion* q1, const kmQuaternion* q2, kmScalar t);
|
|
98
|
+
|
|
99
|
+
///< Get the axis and angle of rotation from a quaternion
|
|
100
|
+
void kmQuaternionToAxisAngle(const kmQuaternion* pIn, struct kmVec3* pVector, kmScalar* pAngle);
|
|
101
|
+
|
|
102
|
+
///< Scale a quaternion
|
|
103
|
+
kmQuaternion* kmQuaternionScale(kmQuaternion* pOut, const kmQuaternion* pIn, kmScalar s);
|
|
104
|
+
kmQuaternion* kmQuaternionAssign(kmQuaternion* pOut, const kmQuaternion* pIn);
|
|
105
|
+
kmQuaternion* kmQuaternionAdd(kmQuaternion* pOut, const kmQuaternion* pQ1, const kmQuaternion* pQ2);
|
|
106
|
+
kmQuaternion* kmQuaternionRotationBetweenVec3(kmQuaternion* pOut, const struct kmVec3* vec1, const struct kmVec3* vec2, const struct kmVec3* fallback);
|
|
107
|
+
struct kmVec3* kmQuaternionMultiplyVec3(struct kmVec3* pOut, const kmQuaternion* q, const struct kmVec3* v);
|
|
108
|
+
|
|
109
|
+
#ifdef __cplusplus
|
|
110
|
+
}
|
|
111
|
+
#endif
|
|
112
|
+
|
|
113
|
+
#endif
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2011, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef RAY_2_H
|
|
27
|
+
#define RAY_2_H
|
|
28
|
+
|
|
29
|
+
#include "utility.h"
|
|
30
|
+
#include "vec2.h"
|
|
31
|
+
|
|
32
|
+
#ifdef __cplusplus
|
|
33
|
+
extern "C" {
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
typedef struct kmRay2 {
|
|
37
|
+
kmVec2 start;
|
|
38
|
+
kmVec2 dir;
|
|
39
|
+
} kmRay2;
|
|
40
|
+
|
|
41
|
+
void kmRay2Fill(kmRay2* ray, kmScalar px, kmScalar py, kmScalar vx, kmScalar vy);
|
|
42
|
+
kmBool kmRay2IntersectLineSegment(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, kmVec2* intersection);
|
|
43
|
+
kmBool kmRay2IntersectTriangle(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, const kmVec2* p3, kmVec2* intersection, kmVec2* normal_out);
|
|
44
|
+
kmBool kmRay2IntersectCircle(const kmRay2* ray, const kmVec2 centre, const kmScalar radius, kmVec2* intersection);
|
|
45
|
+
|
|
46
|
+
#ifdef __cplusplus
|
|
47
|
+
}
|
|
48
|
+
#endif
|
|
49
|
+
|
|
50
|
+
#endif
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef UTILITY_H_INCLUDED
|
|
27
|
+
#define UTILITY_H_INCLUDED
|
|
28
|
+
|
|
29
|
+
#include <math.h>
|
|
30
|
+
|
|
31
|
+
#ifndef kmScalar
|
|
32
|
+
#define kmScalar float
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
#ifndef kmBool
|
|
36
|
+
#define kmBool unsigned char
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
#ifndef kmEnum
|
|
40
|
+
#define kmEnum unsigned int
|
|
41
|
+
#endif
|
|
42
|
+
|
|
43
|
+
#ifndef KM_FALSE
|
|
44
|
+
#define KM_FALSE 0
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
#ifndef KM_TRUE
|
|
48
|
+
#define KM_TRUE 1
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
#define kmPI 3.141592f
|
|
52
|
+
#define kmPIOver180 0.017453f // PI / 180
|
|
53
|
+
#define kmPIUnder180 57.295779f // 180 / PI
|
|
54
|
+
#define kmEpsilon 1.0 / 64.0
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
#ifdef __cplusplus
|
|
59
|
+
extern "C" {
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
extern kmScalar kmSQR(kmScalar s);
|
|
63
|
+
extern kmScalar kmDegreesToRadians(kmScalar degrees);
|
|
64
|
+
extern kmScalar kmRadiansToDegrees(kmScalar radians);
|
|
65
|
+
|
|
66
|
+
extern kmScalar min(kmScalar lhs, kmScalar rhs);
|
|
67
|
+
extern kmScalar max(kmScalar lhs, kmScalar rhs);
|
|
68
|
+
extern kmBool kmAlmostEqual(kmScalar lhs, kmScalar rhs);
|
|
69
|
+
|
|
70
|
+
#ifdef __cplusplus
|
|
71
|
+
}
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
#endif /* UTILITY_H_INCLUDED */
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef VEC2_H_INCLUDED
|
|
27
|
+
#define VEC2_H_INCLUDED
|
|
28
|
+
|
|
29
|
+
struct kmMat3;
|
|
30
|
+
|
|
31
|
+
#ifndef kmScalar
|
|
32
|
+
#define kmScalar float
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
#pragma pack(push) /* push current alignment to stack */
|
|
36
|
+
#pragma pack(1) /* set alignment to 1 byte boundary */
|
|
37
|
+
typedef struct kmVec2 {
|
|
38
|
+
kmScalar x;
|
|
39
|
+
kmScalar y;
|
|
40
|
+
} kmVec2;
|
|
41
|
+
|
|
42
|
+
#pragma pack(pop)
|
|
43
|
+
|
|
44
|
+
#ifdef __cplusplus
|
|
45
|
+
extern "C" {
|
|
46
|
+
#endif
|
|
47
|
+
kmVec2* kmVec2Fill(kmVec2* pOut, kmScalar x, kmScalar y);
|
|
48
|
+
kmScalar kmVec2Length(const kmVec2* pIn); ///< Returns the length of the vector
|
|
49
|
+
kmScalar kmVec2LengthSq(const kmVec2* pIn); ///< Returns the square of the length of the vector
|
|
50
|
+
kmVec2* kmVec2Normalize(kmVec2* pOut, const kmVec2* pIn); ///< Returns the vector passed in set to unit length
|
|
51
|
+
kmVec2* kmVec2Add(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2); ///< Adds 2 vectors and returns the result
|
|
52
|
+
kmScalar kmVec2Dot(const kmVec2* pV1, const kmVec2* pV2); /** Returns the Dot product which is the cosine of the angle between the two vectors multiplied by their lengths */
|
|
53
|
+
kmVec2* kmVec2Subtract(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2); ///< Subtracts 2 vectors and returns the result
|
|
54
|
+
kmVec2* kmVec2Transform(kmVec2* pOut, const kmVec2* pV1, const struct kmMat3* pM); /** Transform the Vector */
|
|
55
|
+
kmVec2* kmVec2TransformCoord(kmVec2* pOut, const kmVec2* pV, const struct kmMat3* pM); ///<Transforms a 2D vector by a given matrix, projecting the result back into w = 1.
|
|
56
|
+
kmVec2* kmVec2Scale(kmVec2* pOut, const kmVec2* pIn, const kmScalar s); ///< Scales a vector to length s
|
|
57
|
+
int kmVec2AreEqual(const kmVec2* p1, const kmVec2* p2); ///< Returns 1 if both vectors are equal
|
|
58
|
+
|
|
59
|
+
#ifdef __cplusplus
|
|
60
|
+
}
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#endif // VEC2_H_INCLUDED
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef VEC3_H_INCLUDED
|
|
27
|
+
#define VEC3_H_INCLUDED
|
|
28
|
+
|
|
29
|
+
#include <assert.h>
|
|
30
|
+
|
|
31
|
+
#ifndef kmScalar
|
|
32
|
+
#define kmScalar float
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
struct kmMat4;
|
|
36
|
+
|
|
37
|
+
typedef struct kmVec3 {
|
|
38
|
+
kmScalar x;
|
|
39
|
+
kmScalar y;
|
|
40
|
+
kmScalar z;
|
|
41
|
+
} kmVec3;
|
|
42
|
+
|
|
43
|
+
#ifdef __cplusplus
|
|
44
|
+
extern "C" {
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
kmVec3* kmVec3Fill(kmVec3* pOut, kmScalar x, kmScalar y, kmScalar z);
|
|
48
|
+
kmScalar kmVec3Length(const kmVec3* pIn); /** Returns the length of the vector */
|
|
49
|
+
kmScalar kmVec3LengthSq(const kmVec3* pIn); /** Returns the square of the length of the vector */
|
|
50
|
+
kmVec3* kmVec3Normalize(kmVec3* pOut, const kmVec3* pIn); /** Returns the vector passed in set to unit length */
|
|
51
|
+
kmVec3* kmVec3Cross(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Returns a vector perpendicular to 2 other vectors */
|
|
52
|
+
kmScalar kmVec3Dot(const kmVec3* pV1, const kmVec3* pV2); /** Returns the cosine of the angle between 2 vectors */
|
|
53
|
+
kmVec3* kmVec3Add(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Adds 2 vectors and returns the result */
|
|
54
|
+
kmVec3* kmVec3Subtract(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Subtracts 2 vectors and returns the result */
|
|
55
|
+
kmVec3* kmVec3Transform(kmVec3* pOut, const kmVec3* pV1, const struct kmMat4* pM); /** Transforms a vector (assuming w=1) by a given matrix */
|
|
56
|
+
kmVec3* kmVec3TransformNormal(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM);/**Transforms a 3D normal by a given matrix */
|
|
57
|
+
kmVec3* kmVec3TransformCoord(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM); /**Transforms a 3D vector by a given matrix, projecting the result back into w = 1. */
|
|
58
|
+
kmVec3* kmVec3Scale(kmVec3* pOut, const kmVec3* pIn, const kmScalar s); /** Scales a vector to length s */
|
|
59
|
+
int kmVec3AreEqual(const kmVec3* p1, const kmVec3* p2);
|
|
60
|
+
kmVec3* kmVec3InverseTransform(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM);
|
|
61
|
+
kmVec3* kmVec3InverseTransformNormal(kmVec3* pOut, const kmVec3* pVect, const struct kmMat4* pM);
|
|
62
|
+
kmVec3* kmVec3Assign(kmVec3* pOut, const kmVec3* pIn);
|
|
63
|
+
kmVec3* kmVec3Zero(kmVec3* pOut);
|
|
64
|
+
|
|
65
|
+
#ifdef __cplusplus
|
|
66
|
+
}
|
|
67
|
+
#endif
|
|
68
|
+
#endif /* VEC3_H_INCLUDED */
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Luke Benstead.
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
15
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
18
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef VEC4_H_INCLUDED
|
|
27
|
+
#define VEC4_H_INCLUDED
|
|
28
|
+
|
|
29
|
+
#include "utility.h"
|
|
30
|
+
|
|
31
|
+
struct kmMat4;
|
|
32
|
+
|
|
33
|
+
#pragma pack(push) /* push current alignment to stack */
|
|
34
|
+
#pragma pack(1) /* set alignment to 1 byte boundary */
|
|
35
|
+
|
|
36
|
+
typedef struct kmVec4 {
|
|
37
|
+
kmScalar x;
|
|
38
|
+
kmScalar y;
|
|
39
|
+
kmScalar z;
|
|
40
|
+
kmScalar w;
|
|
41
|
+
} kmVec4;
|
|
42
|
+
|
|
43
|
+
#pragma pack(pop)
|
|
44
|
+
|
|
45
|
+
#ifdef __cplusplus
|
|
46
|
+
extern "C" {
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
kmVec4* kmVec4Fill(kmVec4* pOut, kmScalar x, kmScalar y, kmScalar z, kmScalar w);
|
|
50
|
+
kmVec4* kmVec4Add(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2);
|
|
51
|
+
kmScalar kmVec4Dot(const kmVec4* pV1, const kmVec4* pV2);
|
|
52
|
+
kmScalar kmVec4Length(const kmVec4* pIn);
|
|
53
|
+
kmScalar kmVec4LengthSq(const kmVec4* pIn);
|
|
54
|
+
kmVec4* kmVec4Lerp(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2, kmScalar t);
|
|
55
|
+
kmVec4* kmVec4Normalize(kmVec4* pOut, const kmVec4* pIn);
|
|
56
|
+
kmVec4* kmVec4Scale(kmVec4* pOut, const kmVec4* pIn, const kmScalar s); ///< Scales a vector to length s
|
|
57
|
+
kmVec4* kmVec4Subtract(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2);
|
|
58
|
+
kmVec4* kmVec4Transform(kmVec4* pOut, const kmVec4* pV, const struct kmMat4* pM);
|
|
59
|
+
kmVec4* kmVec4TransformArray(kmVec4* pOut, unsigned int outStride,
|
|
60
|
+
const kmVec4* pV, unsigned int vStride, const struct kmMat4* pM, unsigned int count);
|
|
61
|
+
int kmVec4AreEqual(const kmVec4* p1, const kmVec4* p2);
|
|
62
|
+
kmVec4* kmVec4Assign(kmVec4* pOut, const kmVec4* pIn);
|
|
63
|
+
|
|
64
|
+
#ifdef __cplusplus
|
|
65
|
+
}
|
|
66
|
+
#endif
|
|
67
|
+
|
|
68
|
+
#endif // VEC4_H_INCLUDED
|
|
Binary file
|
|
@@ -1,176 +1,1292 @@
|
|
|
1
1
|
<?xml version='1.0'?>
|
|
2
2
|
<signatures version='1.0'>
|
|
3
|
+
<enum name='kAABBDrawFlag' value='4'/>
|
|
4
|
+
<enum name='kCenterOfMassDrawFlag' value='16'/>
|
|
5
|
+
<enum name='kChainShapeType' value='3'/>
|
|
6
|
+
<enum name='kCircleShapeType' value='0'/>
|
|
3
7
|
<enum name='kDynamicBodyType' value='2'/>
|
|
8
|
+
<enum name='kEdgeShapeType' value='1'/>
|
|
9
|
+
<enum name='kJointDrawFlag' value='2'/>
|
|
4
10
|
<enum name='kKinematicBodyType' value='1'/>
|
|
11
|
+
<enum name='kPairDrawFlag' value='8'/>
|
|
12
|
+
<enum name='kPolygonShapeType' value='2'/>
|
|
13
|
+
<enum name='kShapeDrawFlag' value='1'/>
|
|
5
14
|
<enum name='kStaticBodyType' value='0'/>
|
|
15
|
+
<enum name='kTypeCountShapeType' value='4'/>
|
|
16
|
+
<class name='B2DAABB'>
|
|
17
|
+
<method selector='initWithAABB:'>
|
|
18
|
+
<arg declared_type='id' index='0' name='aabb' type='@'/>
|
|
19
|
+
<retval declared_type='id' type='@'/>
|
|
20
|
+
</method>
|
|
21
|
+
<method selector='lowerBound'>
|
|
22
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
23
|
+
</method>
|
|
24
|
+
<method selector='setLowerBound:'>
|
|
25
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='lowerBound' type='{CGPoint=ff}'/>
|
|
26
|
+
<retval declared_type='void' type='v'/>
|
|
27
|
+
</method>
|
|
28
|
+
<method selector='setUpperBound:'>
|
|
29
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='upperBound' type='{CGPoint=ff}'/>
|
|
30
|
+
<retval declared_type='void' type='v'/>
|
|
31
|
+
</method>
|
|
32
|
+
<method selector='upperBound'>
|
|
33
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
34
|
+
</method>
|
|
35
|
+
</class>
|
|
6
36
|
<class name='B2DBody'>
|
|
7
37
|
<method selector='addFixtureForShape:friction:restitution:density:isSensor:'>
|
|
8
|
-
<arg
|
|
9
|
-
<arg
|
|
10
|
-
<arg
|
|
11
|
-
<arg
|
|
12
|
-
<arg
|
|
13
|
-
<retval
|
|
38
|
+
<arg declared_type='B2DShape*' index='0' name='shape' type='@'/>
|
|
39
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='friction' type='f'/>
|
|
40
|
+
<arg declared_type='CGFloat' index='2' type64='d' name='restitution' type='f'/>
|
|
41
|
+
<arg declared_type='CGFloat' index='3' type64='d' name='density' type='f'/>
|
|
42
|
+
<arg declared_type='BOOL' index='4' name='isSensor' type='B'/>
|
|
43
|
+
<retval declared_type='void' type='v'/>
|
|
14
44
|
</method>
|
|
15
45
|
<method selector='angle'>
|
|
16
|
-
<retval
|
|
46
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
47
|
+
</method>
|
|
48
|
+
<method selector='angularDamping'>
|
|
49
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
50
|
+
</method>
|
|
51
|
+
<method selector='angularVelocity'>
|
|
52
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
53
|
+
</method>
|
|
54
|
+
<method selector='applyAngularImpulse:'>
|
|
55
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='impulse' type='f'/>
|
|
56
|
+
<retval declared_type='void' type='v'/>
|
|
17
57
|
</method>
|
|
18
58
|
<method selector='applyForce:atLocation:asImpulse:'>
|
|
19
|
-
<arg
|
|
20
|
-
<arg
|
|
21
|
-
<arg
|
|
22
|
-
<retval
|
|
59
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='force' type='{CGPoint=ff}'/>
|
|
60
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='location' type='{CGPoint=ff}'/>
|
|
61
|
+
<arg declared_type='BOOL' index='2' name='asImpulse' type='B'/>
|
|
62
|
+
<retval declared_type='void' type='v'/>
|
|
63
|
+
</method>
|
|
64
|
+
<method selector='applyForce:atPoint:'>
|
|
65
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='force' type='{CGPoint=ff}'/>
|
|
66
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='point' type='{CGPoint=ff}'/>
|
|
67
|
+
<retval declared_type='void' type='v'/>
|
|
68
|
+
</method>
|
|
69
|
+
<method selector='applyForceToCenter:'>
|
|
70
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='force' type='{CGPoint=ff}'/>
|
|
71
|
+
<retval declared_type='void' type='v'/>
|
|
72
|
+
</method>
|
|
73
|
+
<method selector='applyLinearImpulse:atPoint:'>
|
|
74
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='impulse' type='{CGPoint=ff}'/>
|
|
75
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='point' type='{CGPoint=ff}'/>
|
|
76
|
+
<retval declared_type='void' type='v'/>
|
|
77
|
+
</method>
|
|
78
|
+
<method selector='applyTorque:'>
|
|
79
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='torque' type='f'/>
|
|
80
|
+
<retval declared_type='void' type='v'/>
|
|
23
81
|
</method>
|
|
24
82
|
<method selector='applyTorque:asImpulse:'>
|
|
25
|
-
<arg
|
|
26
|
-
<arg
|
|
27
|
-
<retval
|
|
83
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='torque' type='f'/>
|
|
84
|
+
<arg declared_type='BOOL' index='1' name='impulse' type='B'/>
|
|
85
|
+
<retval declared_type='void' type='v'/>
|
|
86
|
+
</method>
|
|
87
|
+
<method selector='awake'>
|
|
88
|
+
<retval declared_type='_Bool' type='B'/>
|
|
28
89
|
</method>
|
|
29
90
|
<method selector='body'>
|
|
30
|
-
<retval
|
|
91
|
+
<retval declared_type='int*' type='^i'/>
|
|
92
|
+
</method>
|
|
93
|
+
<method selector='bullet'>
|
|
94
|
+
<retval declared_type='_Bool' type='B'/>
|
|
31
95
|
</method>
|
|
32
96
|
<method selector='center'>
|
|
33
|
-
<retval
|
|
97
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
98
|
+
</method>
|
|
99
|
+
<method selector='createFixture:'>
|
|
100
|
+
<arg declared_type='B2DFixtureDef*' index='0' name='fixtureDefinition' type='@'/>
|
|
101
|
+
<retval declared_type='void' type='v'/>
|
|
102
|
+
</method>
|
|
103
|
+
<method selector='createFixtureWithShape:andDensity:'>
|
|
104
|
+
<arg declared_type='B2DShape*' index='0' name='shape' type='@'/>
|
|
105
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='density' type='f'/>
|
|
106
|
+
<retval declared_type='void' type='v'/>
|
|
107
|
+
</method>
|
|
108
|
+
<method selector='destroyFixture:'>
|
|
109
|
+
<arg declared_type='B2DFixture*' index='0' name='fixture' type='@'/>
|
|
110
|
+
<retval declared_type='void' type='v'/>
|
|
111
|
+
</method>
|
|
112
|
+
<method selector='dump'>
|
|
113
|
+
<retval declared_type='void' type='v'/>
|
|
114
|
+
</method>
|
|
115
|
+
<method selector='fixedRotation'>
|
|
116
|
+
<retval declared_type='_Bool' type='B'/>
|
|
117
|
+
</method>
|
|
118
|
+
<method selector='fixtureList'>
|
|
119
|
+
<retval declared_type='NSArray*' type='@'/>
|
|
120
|
+
</method>
|
|
121
|
+
<method selector='gravityScale'>
|
|
122
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
123
|
+
</method>
|
|
124
|
+
<method selector='inertia'>
|
|
125
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
34
126
|
</method>
|
|
35
127
|
<method selector='initWithBody:'>
|
|
36
|
-
<arg
|
|
37
|
-
<retval
|
|
128
|
+
<arg declared_type='id' index='0' name='boxBody' type='@'/>
|
|
129
|
+
<retval declared_type='id' type='@'/>
|
|
130
|
+
</method>
|
|
131
|
+
<method selector='isActive'>
|
|
132
|
+
<retval declared_type='_Bool' type='B'/>
|
|
133
|
+
</method>
|
|
134
|
+
<method selector='isAwake'>
|
|
135
|
+
<retval declared_type='_Bool' type='B'/>
|
|
136
|
+
</method>
|
|
137
|
+
<method selector='isBullet'>
|
|
138
|
+
<retval declared_type='_Bool' type='B'/>
|
|
139
|
+
</method>
|
|
140
|
+
<method selector='isEqualToBody:'>
|
|
141
|
+
<arg declared_type='B2DBody*' index='0' name='aBody' type='@'/>
|
|
142
|
+
<retval declared_type='_Bool' type='B'/>
|
|
143
|
+
</method>
|
|
144
|
+
<method selector='isFixedRotation'>
|
|
145
|
+
<retval declared_type='_Bool' type='B'/>
|
|
38
146
|
</method>
|
|
39
147
|
<method selector='isSleepingAllowed'>
|
|
40
|
-
<retval
|
|
148
|
+
<retval declared_type='_Bool' type='B'/>
|
|
149
|
+
</method>
|
|
150
|
+
<method selector='linearDamping'>
|
|
151
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
152
|
+
</method>
|
|
153
|
+
<method selector='linearVelocity'>
|
|
154
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
155
|
+
</method>
|
|
156
|
+
<method selector='linearVelocityFromLocalPoint:'>
|
|
157
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='localPoint' type='{CGPoint=ff}'/>
|
|
158
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
159
|
+
</method>
|
|
160
|
+
<method selector='linearVelocityFromWorldPoint:'>
|
|
161
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='worldPoint' type='{CGPoint=ff}'/>
|
|
162
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
163
|
+
</method>
|
|
164
|
+
<method selector='localCenter'>
|
|
165
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
166
|
+
</method>
|
|
167
|
+
<method selector='localPoint:'>
|
|
168
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='worldPoint' type='{CGPoint=ff}'/>
|
|
169
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
170
|
+
</method>
|
|
171
|
+
<method selector='localVector:'>
|
|
172
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='worldVector' type='{CGPoint=ff}'/>
|
|
173
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
174
|
+
</method>
|
|
175
|
+
<method selector='mass'>
|
|
176
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
177
|
+
</method>
|
|
178
|
+
<method selector='massData'>
|
|
179
|
+
<retval declared_type='B2DMassData*' type='@'/>
|
|
180
|
+
</method>
|
|
181
|
+
<method selector='next'>
|
|
182
|
+
<retval declared_type='B2DBody*' type='@'/>
|
|
41
183
|
</method>
|
|
42
184
|
<method selector='position'>
|
|
43
|
-
<retval
|
|
185
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
186
|
+
</method>
|
|
187
|
+
<method selector='resetMassData'>
|
|
188
|
+
<retval declared_type='void' type='v'/>
|
|
189
|
+
</method>
|
|
190
|
+
<method selector='setAngularDamping:'>
|
|
191
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='angularDamping' type='f'/>
|
|
192
|
+
<retval declared_type='void' type='v'/>
|
|
193
|
+
</method>
|
|
194
|
+
<method selector='setAngularVelocity:'>
|
|
195
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='angularVelocity' type='f'/>
|
|
196
|
+
<retval declared_type='void' type='v'/>
|
|
197
|
+
</method>
|
|
198
|
+
<method selector='setAwake:'>
|
|
199
|
+
<arg declared_type='_Bool' index='0' name='awake' type='B'/>
|
|
200
|
+
<retval declared_type='void' type='v'/>
|
|
44
201
|
</method>
|
|
45
202
|
<method selector='setBody:'>
|
|
46
|
-
<arg
|
|
47
|
-
<retval
|
|
203
|
+
<arg declared_type='int*' index='0' name='body' type='^i'/>
|
|
204
|
+
<retval declared_type='void' type='v'/>
|
|
205
|
+
</method>
|
|
206
|
+
<method selector='setBullet:'>
|
|
207
|
+
<arg declared_type='_Bool' index='0' name='bullet' type='B'/>
|
|
208
|
+
<retval declared_type='void' type='v'/>
|
|
209
|
+
</method>
|
|
210
|
+
<method selector='setFixedRotation:'>
|
|
211
|
+
<arg declared_type='_Bool' index='0' name='fixedRotation' type='B'/>
|
|
212
|
+
<retval declared_type='void' type='v'/>
|
|
213
|
+
</method>
|
|
214
|
+
<method selector='setGravityScale:'>
|
|
215
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='gravityScale' type='f'/>
|
|
216
|
+
<retval declared_type='void' type='v'/>
|
|
217
|
+
</method>
|
|
218
|
+
<method selector='setLinearDamping:'>
|
|
219
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='linearDamping' type='f'/>
|
|
220
|
+
<retval declared_type='void' type='v'/>
|
|
221
|
+
</method>
|
|
222
|
+
<method selector='setLinearVelocity:'>
|
|
223
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='linearVelocity' type='{CGPoint=ff}'/>
|
|
224
|
+
<retval declared_type='void' type='v'/>
|
|
225
|
+
</method>
|
|
226
|
+
<method selector='setMassData:'>
|
|
227
|
+
<arg declared_type='B2DMassData*' index='0' name='massData' type='@'/>
|
|
228
|
+
<retval declared_type='void' type='v'/>
|
|
48
229
|
</method>
|
|
49
230
|
<method selector='setPosition:'>
|
|
50
|
-
<arg
|
|
51
|
-
<retval
|
|
231
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='position' type='{CGPoint=ff}'/>
|
|
232
|
+
<retval declared_type='void' type='v'/>
|
|
52
233
|
</method>
|
|
53
234
|
<method selector='setSleepingAllowed:'>
|
|
54
|
-
<arg
|
|
55
|
-
<retval
|
|
235
|
+
<arg declared_type='_Bool' index='0' name='sleepingAllowed' type='B'/>
|
|
236
|
+
<retval declared_type='void' type='v'/>
|
|
237
|
+
</method>
|
|
238
|
+
<method selector='setTransformWithPosition:andAngle:'>
|
|
239
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='position' type='{CGPoint=ff}'/>
|
|
240
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='angle' type='f'/>
|
|
241
|
+
<retval declared_type='void' type='v'/>
|
|
242
|
+
</method>
|
|
243
|
+
<method selector='setType:'>
|
|
244
|
+
<arg declared_type='B2DBodyTypes' index='0' name='type' type='i'/>
|
|
245
|
+
<retval declared_type='void' type='v'/>
|
|
246
|
+
</method>
|
|
247
|
+
<method selector='setUserData:'>
|
|
248
|
+
<arg declared_type='id' index='0' name='userData' type='@'/>
|
|
249
|
+
<retval declared_type='void' type='v'/>
|
|
250
|
+
</method>
|
|
251
|
+
<method selector='sleepingAllowed'>
|
|
252
|
+
<retval declared_type='_Bool' type='B'/>
|
|
253
|
+
</method>
|
|
254
|
+
<method selector='transform'>
|
|
255
|
+
<retval declared_type='B2DTransform*' type='@'/>
|
|
256
|
+
</method>
|
|
257
|
+
<method selector='type'>
|
|
258
|
+
<retval declared_type='B2DBodyTypes' type='i'/>
|
|
259
|
+
</method>
|
|
260
|
+
<method selector='userData'>
|
|
261
|
+
<retval declared_type='id' type='@'/>
|
|
262
|
+
</method>
|
|
263
|
+
<method selector='worldCenter'>
|
|
264
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
265
|
+
</method>
|
|
266
|
+
<method selector='worldPoint:'>
|
|
267
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='localPoint' type='{CGPoint=ff}'/>
|
|
268
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
269
|
+
</method>
|
|
270
|
+
<method selector='worldVector:'>
|
|
271
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='localVector' type='{CGPoint=ff}'/>
|
|
272
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
273
|
+
</method>
|
|
274
|
+
</class>
|
|
275
|
+
<class name='B2DBodyDef'>
|
|
276
|
+
<method selector='active'>
|
|
277
|
+
<retval declared_type='_Bool' type='B'/>
|
|
278
|
+
</method>
|
|
279
|
+
<method selector='allowSleep'>
|
|
280
|
+
<retval declared_type='_Bool' type='B'/>
|
|
281
|
+
</method>
|
|
282
|
+
<method selector='angle'>
|
|
283
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
284
|
+
</method>
|
|
285
|
+
<method selector='angularDamping'>
|
|
286
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
287
|
+
</method>
|
|
288
|
+
<method selector='angularVelocity'>
|
|
289
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
290
|
+
</method>
|
|
291
|
+
<method selector='awake'>
|
|
292
|
+
<retval declared_type='_Bool' type='B'/>
|
|
293
|
+
</method>
|
|
294
|
+
<method selector='bullet'>
|
|
295
|
+
<retval declared_type='_Bool' type='B'/>
|
|
296
|
+
</method>
|
|
297
|
+
<method selector='fixedRotation'>
|
|
298
|
+
<retval declared_type='_Bool' type='B'/>
|
|
299
|
+
</method>
|
|
300
|
+
<method selector='gravityScale'>
|
|
301
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
302
|
+
</method>
|
|
303
|
+
<method selector='initWithBodyDef:'>
|
|
304
|
+
<arg declared_type='id' index='0' name='bodyDef' type='@'/>
|
|
305
|
+
<retval declared_type='id' type='@'/>
|
|
306
|
+
</method>
|
|
307
|
+
<method selector='linearDamping'>
|
|
308
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
309
|
+
</method>
|
|
310
|
+
<method selector='linearVelocity'>
|
|
311
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
312
|
+
</method>
|
|
313
|
+
<method selector='position'>
|
|
314
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
315
|
+
</method>
|
|
316
|
+
<method selector='setActive:'>
|
|
317
|
+
<arg declared_type='_Bool' index='0' name='active' type='B'/>
|
|
318
|
+
<retval declared_type='void' type='v'/>
|
|
319
|
+
</method>
|
|
320
|
+
<method selector='setAllowSleep:'>
|
|
321
|
+
<arg declared_type='_Bool' index='0' name='allowSleep' type='B'/>
|
|
322
|
+
<retval declared_type='void' type='v'/>
|
|
323
|
+
</method>
|
|
324
|
+
<method selector='setAngle:'>
|
|
325
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='angle' type='f'/>
|
|
326
|
+
<retval declared_type='void' type='v'/>
|
|
327
|
+
</method>
|
|
328
|
+
<method selector='setAngularDamping:'>
|
|
329
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='angularDamping' type='f'/>
|
|
330
|
+
<retval declared_type='void' type='v'/>
|
|
331
|
+
</method>
|
|
332
|
+
<method selector='setAngularVelocity:'>
|
|
333
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='angularVelocity' type='f'/>
|
|
334
|
+
<retval declared_type='void' type='v'/>
|
|
335
|
+
</method>
|
|
336
|
+
<method selector='setAwake:'>
|
|
337
|
+
<arg declared_type='_Bool' index='0' name='awake' type='B'/>
|
|
338
|
+
<retval declared_type='void' type='v'/>
|
|
339
|
+
</method>
|
|
340
|
+
<method selector='setBullet:'>
|
|
341
|
+
<arg declared_type='_Bool' index='0' name='bullet' type='B'/>
|
|
342
|
+
<retval declared_type='void' type='v'/>
|
|
343
|
+
</method>
|
|
344
|
+
<method selector='setFixedRotation:'>
|
|
345
|
+
<arg declared_type='_Bool' index='0' name='fixedRotation' type='B'/>
|
|
346
|
+
<retval declared_type='void' type='v'/>
|
|
347
|
+
</method>
|
|
348
|
+
<method selector='setGravityScale:'>
|
|
349
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='gravityScale' type='f'/>
|
|
350
|
+
<retval declared_type='void' type='v'/>
|
|
351
|
+
</method>
|
|
352
|
+
<method selector='setLinearDamping:'>
|
|
353
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='linearDamping' type='f'/>
|
|
354
|
+
<retval declared_type='void' type='v'/>
|
|
355
|
+
</method>
|
|
356
|
+
<method selector='setLinearVelocity:'>
|
|
357
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='linearVelocity' type='{CGPoint=ff}'/>
|
|
358
|
+
<retval declared_type='void' type='v'/>
|
|
359
|
+
</method>
|
|
360
|
+
<method selector='setPosition:'>
|
|
361
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='position' type='{CGPoint=ff}'/>
|
|
362
|
+
<retval declared_type='void' type='v'/>
|
|
363
|
+
</method>
|
|
364
|
+
<method selector='setType:'>
|
|
365
|
+
<arg declared_type='B2DBodyTypes' index='0' name='type' type='i'/>
|
|
366
|
+
<retval declared_type='void' type='v'/>
|
|
367
|
+
</method>
|
|
368
|
+
<method selector='type'>
|
|
369
|
+
<retval declared_type='B2DBodyTypes' type='i'/>
|
|
370
|
+
</method>
|
|
371
|
+
</class>
|
|
372
|
+
<class name='B2DChainShape'>
|
|
373
|
+
<method selector='createChainWithVertices:andVertexCount:'>
|
|
374
|
+
<arg declared_type='CGPoint*' index='0' type64='^{CGPoint=dd}' name='vertices' type='^{CGPoint=ff}'/>
|
|
375
|
+
<arg declared_type='NSInteger' index='1' type64='q' name='vertexCount' type='i'/>
|
|
376
|
+
<retval declared_type='void' type='v'/>
|
|
377
|
+
</method>
|
|
378
|
+
<method selector='createLoopWithVertices:andVertexCount:'>
|
|
379
|
+
<arg declared_type='CGPoint*' index='0' type64='^{CGPoint=dd}' name='vertices' type='^{CGPoint=ff}'/>
|
|
380
|
+
<arg declared_type='NSInteger' index='1' type64='q' name='vertexCount' type='i'/>
|
|
381
|
+
<retval declared_type='void' type='v'/>
|
|
382
|
+
</method>
|
|
383
|
+
<method selector='getChildEdge:withIndex:'>
|
|
384
|
+
<arg declared_type='B2DEdgeShape*' index='0' name='edgeShape' type='@'/>
|
|
385
|
+
<arg declared_type='NSInteger' index='1' type64='q' name='index' type='i'/>
|
|
386
|
+
<retval declared_type='void' type='v'/>
|
|
387
|
+
</method>
|
|
388
|
+
<method selector='hasNextVertex'>
|
|
389
|
+
<retval declared_type='_Bool' type='B'/>
|
|
390
|
+
</method>
|
|
391
|
+
<method selector='hasPreviousVertex'>
|
|
392
|
+
<retval declared_type='_Bool' type='B'/>
|
|
393
|
+
</method>
|
|
394
|
+
<method selector='nextVertex'>
|
|
395
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
396
|
+
</method>
|
|
397
|
+
<method selector='previousVertex'>
|
|
398
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
399
|
+
</method>
|
|
400
|
+
<method selector='setNextVertex:'>
|
|
401
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='vertex' type='{CGPoint=ff}'/>
|
|
402
|
+
<retval declared_type='void' type='v'/>
|
|
403
|
+
</method>
|
|
404
|
+
<method selector='setPreviousVertex:'>
|
|
405
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='vertex' type='{CGPoint=ff}'/>
|
|
406
|
+
<retval declared_type='void' type='v'/>
|
|
407
|
+
</method>
|
|
408
|
+
<method selector='vertexCount'>
|
|
409
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
410
|
+
</method>
|
|
411
|
+
<method selector='vertices'>
|
|
412
|
+
<retval declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
56
413
|
</method>
|
|
57
414
|
</class>
|
|
58
415
|
<class name='B2DCircleShape'>
|
|
416
|
+
<method selector='getSupport:'>
|
|
417
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='direction' type='{CGPoint=ff}'/>
|
|
418
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
419
|
+
</method>
|
|
420
|
+
<method selector='getSupportVertex:'>
|
|
421
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='direction' type='{CGPoint=ff}'/>
|
|
422
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
423
|
+
</method>
|
|
424
|
+
<method selector='getVertex:'>
|
|
425
|
+
<arg declared_type='NSInteger' index='0' type64='q' name='index' type='i'/>
|
|
426
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
427
|
+
</method>
|
|
59
428
|
<method selector='initWithRadius:'>
|
|
60
|
-
<arg
|
|
61
|
-
<retval
|
|
429
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='radius' type='f'/>
|
|
430
|
+
<retval declared_type='id' type='@'/>
|
|
431
|
+
</method>
|
|
432
|
+
<method selector='position'>
|
|
433
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
434
|
+
</method>
|
|
435
|
+
<method selector='vertexCount'>
|
|
436
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
437
|
+
</method>
|
|
438
|
+
</class>
|
|
439
|
+
<class name='B2DColor'>
|
|
440
|
+
<method selector='blue'>
|
|
441
|
+
<retval declared_type='Float32' type='f'/>
|
|
442
|
+
</method>
|
|
443
|
+
<method selector='green'>
|
|
444
|
+
<retval declared_type='Float32' type='f'/>
|
|
445
|
+
</method>
|
|
446
|
+
<method selector='initWithColor:'>
|
|
447
|
+
<arg declared_type='id' index='0' name='color' type='@'/>
|
|
448
|
+
<retval declared_type='id' type='@'/>
|
|
449
|
+
</method>
|
|
450
|
+
<method selector='red'>
|
|
451
|
+
<retval declared_type='Float32' type='f'/>
|
|
452
|
+
</method>
|
|
453
|
+
<method selector='setBlue:'>
|
|
454
|
+
<arg declared_type='Float32' index='0' name='blue' type='f'/>
|
|
455
|
+
<retval declared_type='void' type='v'/>
|
|
456
|
+
</method>
|
|
457
|
+
<method selector='setGreen:'>
|
|
458
|
+
<arg declared_type='Float32' index='0' name='green' type='f'/>
|
|
459
|
+
<retval declared_type='void' type='v'/>
|
|
460
|
+
</method>
|
|
461
|
+
<method selector='setRed:'>
|
|
462
|
+
<arg declared_type='Float32' index='0' name='red' type='f'/>
|
|
463
|
+
<retval declared_type='void' type='v'/>
|
|
464
|
+
</method>
|
|
465
|
+
</class>
|
|
466
|
+
<class name='B2DContactFilter'>
|
|
467
|
+
<method selector='contactFilter'>
|
|
468
|
+
<retval declared_type='int*' type='^i'/>
|
|
469
|
+
</method>
|
|
470
|
+
<method selector='setContactFilter:'>
|
|
471
|
+
<arg declared_type='int*' index='0' name='contactFilter' type='^i'/>
|
|
472
|
+
<retval declared_type='void' type='v'/>
|
|
473
|
+
</method>
|
|
474
|
+
<method selector='setShouldCollide:'>
|
|
475
|
+
<arg declared_type='shouldCollideCallback' index='0' name='shouldCollide' type='@?' function_pointer='true'>
|
|
476
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
477
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
478
|
+
<retval declared_type='_Bool' type='B'/>
|
|
479
|
+
</arg>
|
|
480
|
+
<retval declared_type='void' type='v'/>
|
|
481
|
+
</method>
|
|
482
|
+
<method selector='shouldCollide'>
|
|
483
|
+
<retval declared_type='shouldCollideCallback' type='@?' function_pointer='true'>
|
|
484
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
485
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
486
|
+
<retval declared_type='_Bool' type='B'/>
|
|
487
|
+
</retval>
|
|
62
488
|
</method>
|
|
63
489
|
</class>
|
|
64
490
|
<class name='B2DContactListener'>
|
|
65
491
|
<method selector='beginContact'>
|
|
66
|
-
<retval
|
|
67
|
-
<arg
|
|
68
|
-
<arg
|
|
69
|
-
<arg
|
|
70
|
-
<retval
|
|
492
|
+
<retval declared_type='beginContactCallback' type='@?' function_pointer='true'>
|
|
493
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
494
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
495
|
+
<arg declared_type='_Bool' type='B'/>
|
|
496
|
+
<retval declared_type='void' type='v'/>
|
|
71
497
|
</retval>
|
|
72
498
|
</method>
|
|
73
499
|
<method selector='contactListener'>
|
|
74
|
-
<retval
|
|
500
|
+
<retval declared_type='int*' type='^i'/>
|
|
75
501
|
</method>
|
|
76
502
|
<method selector='endContact'>
|
|
77
|
-
<retval
|
|
78
|
-
<arg
|
|
79
|
-
<arg
|
|
80
|
-
<retval
|
|
503
|
+
<retval declared_type='endContactCallback' type='@?' function_pointer='true'>
|
|
504
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
505
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
506
|
+
<retval declared_type='void' type='v'/>
|
|
81
507
|
</retval>
|
|
82
508
|
</method>
|
|
83
509
|
<method selector='setBeginContact:'>
|
|
84
|
-
<arg
|
|
85
|
-
<arg
|
|
86
|
-
<arg
|
|
87
|
-
<arg
|
|
88
|
-
<retval
|
|
510
|
+
<arg declared_type='beginContactCallback' index='0' name='beginContact' type='@?' function_pointer='true'>
|
|
511
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
512
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
513
|
+
<arg declared_type='_Bool' type='B'/>
|
|
514
|
+
<retval declared_type='void' type='v'/>
|
|
89
515
|
</arg>
|
|
90
|
-
<retval
|
|
516
|
+
<retval declared_type='void' type='v'/>
|
|
91
517
|
</method>
|
|
92
518
|
<method selector='setContactListener:'>
|
|
93
|
-
<arg
|
|
94
|
-
<retval
|
|
519
|
+
<arg declared_type='int*' index='0' name='contactListener' type='^i'/>
|
|
520
|
+
<retval declared_type='void' type='v'/>
|
|
95
521
|
</method>
|
|
96
522
|
<method selector='setEndContact:'>
|
|
97
|
-
<arg
|
|
98
|
-
<arg
|
|
99
|
-
<arg
|
|
100
|
-
<retval
|
|
523
|
+
<arg declared_type='endContactCallback' index='0' name='endContact' type='@?' function_pointer='true'>
|
|
524
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
525
|
+
<arg declared_type='B2DBody*' type='@'/>
|
|
526
|
+
<retval declared_type='void' type='v'/>
|
|
527
|
+
</arg>
|
|
528
|
+
<retval declared_type='void' type='v'/>
|
|
529
|
+
</method>
|
|
530
|
+
</class>
|
|
531
|
+
<class name='B2DDestructionListener'>
|
|
532
|
+
<method selector='destructionListener'>
|
|
533
|
+
<retval declared_type='int*' type='^i'/>
|
|
534
|
+
</method>
|
|
535
|
+
<method selector='fixtureSayGoodbye'>
|
|
536
|
+
<retval declared_type='fixtureSayGoodbyeCallback' type='@?' function_pointer='true'>
|
|
537
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
538
|
+
<retval declared_type='void' type='v'/>
|
|
539
|
+
</retval>
|
|
540
|
+
</method>
|
|
541
|
+
<method selector='setDestructionListener:'>
|
|
542
|
+
<arg declared_type='int*' index='0' name='destructionListener' type='^i'/>
|
|
543
|
+
<retval declared_type='void' type='v'/>
|
|
544
|
+
</method>
|
|
545
|
+
<method selector='setFixtureSayGoodbye:'>
|
|
546
|
+
<arg declared_type='fixtureSayGoodbyeCallback' index='0' name='fixtureSayGoodbye' type='@?' function_pointer='true'>
|
|
547
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
548
|
+
<retval declared_type='void' type='v'/>
|
|
549
|
+
</arg>
|
|
550
|
+
<retval declared_type='void' type='v'/>
|
|
551
|
+
</method>
|
|
552
|
+
</class>
|
|
553
|
+
<class name='B2DDraw'>
|
|
554
|
+
<method selector='appendDrawFlags:'>
|
|
555
|
+
<arg declared_type='unsigned int' index='0' name='flags' type='I'/>
|
|
556
|
+
<retval declared_type='void' type='v'/>
|
|
557
|
+
</method>
|
|
558
|
+
<method selector='clearDrawFlags:'>
|
|
559
|
+
<arg declared_type='unsigned int' index='0' name='flags' type='I'/>
|
|
560
|
+
<retval declared_type='void' type='v'/>
|
|
561
|
+
</method>
|
|
562
|
+
<method selector='draw'>
|
|
563
|
+
<retval declared_type='int*' type='^i'/>
|
|
564
|
+
</method>
|
|
565
|
+
<method selector='drawCircle'>
|
|
566
|
+
<retval declared_type='drawCircleCallback' type='@?' function_pointer='true'>
|
|
567
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
568
|
+
<arg declared_type='float' type='f'/>
|
|
569
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
570
|
+
<retval declared_type='void' type='v'/>
|
|
571
|
+
</retval>
|
|
572
|
+
</method>
|
|
573
|
+
<method selector='drawFlags'>
|
|
574
|
+
<retval declared_type='unsigned int' type='I'/>
|
|
575
|
+
</method>
|
|
576
|
+
<method selector='drawPolygon'>
|
|
577
|
+
<retval declared_type='drawPolygonCallback' type='@?' function_pointer='true'>
|
|
578
|
+
<arg declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
579
|
+
<arg declared_type='NSInteger' type64='q' type='i'/>
|
|
580
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
581
|
+
<retval declared_type='void' type='v'/>
|
|
582
|
+
</retval>
|
|
583
|
+
</method>
|
|
584
|
+
<method selector='drawSegment'>
|
|
585
|
+
<retval declared_type='drawSegmentCallback' type='@?' function_pointer='true'>
|
|
586
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
587
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
588
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
589
|
+
<retval declared_type='void' type='v'/>
|
|
590
|
+
</retval>
|
|
591
|
+
</method>
|
|
592
|
+
<method selector='drawSolidCircle'>
|
|
593
|
+
<retval declared_type='drawSolidCircleCallback' type='@?' function_pointer='true'>
|
|
594
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
595
|
+
<arg declared_type='float' type='f'/>
|
|
596
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
597
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
598
|
+
<retval declared_type='void' type='v'/>
|
|
599
|
+
</retval>
|
|
600
|
+
</method>
|
|
601
|
+
<method selector='drawSolidPolygon'>
|
|
602
|
+
<retval declared_type='drawSolidPolygonCallback' type='@?' function_pointer='true'>
|
|
603
|
+
<arg declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
604
|
+
<arg declared_type='NSInteger' type64='q' type='i'/>
|
|
605
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
606
|
+
<retval declared_type='void' type='v'/>
|
|
607
|
+
</retval>
|
|
608
|
+
</method>
|
|
609
|
+
<method selector='drawTransform'>
|
|
610
|
+
<retval declared_type='drawTransformCallback' type='@?' function_pointer='true'>
|
|
611
|
+
<arg declared_type='B2DTransform*' type='@'/>
|
|
612
|
+
<retval declared_type='void' type='v'/>
|
|
613
|
+
</retval>
|
|
614
|
+
</method>
|
|
615
|
+
<method selector='setDraw:'>
|
|
616
|
+
<arg declared_type='int*' index='0' name='draw' type='^i'/>
|
|
617
|
+
<retval declared_type='void' type='v'/>
|
|
618
|
+
</method>
|
|
619
|
+
<method selector='setDrawCircle:'>
|
|
620
|
+
<arg declared_type='drawCircleCallback' index='0' name='drawCircle' type='@?' function_pointer='true'>
|
|
621
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
622
|
+
<arg declared_type='float' type='f'/>
|
|
623
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
624
|
+
<retval declared_type='void' type='v'/>
|
|
625
|
+
</arg>
|
|
626
|
+
<retval declared_type='void' type='v'/>
|
|
627
|
+
</method>
|
|
628
|
+
<method selector='setDrawFlags:'>
|
|
629
|
+
<arg declared_type='unsigned int' index='0' name='drawFlags' type='I'/>
|
|
630
|
+
<retval declared_type='void' type='v'/>
|
|
631
|
+
</method>
|
|
632
|
+
<method selector='setDrawPolygon:'>
|
|
633
|
+
<arg declared_type='drawPolygonCallback' index='0' name='drawPolygon' type='@?' function_pointer='true'>
|
|
634
|
+
<arg declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
635
|
+
<arg declared_type='NSInteger' type64='q' type='i'/>
|
|
636
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
637
|
+
<retval declared_type='void' type='v'/>
|
|
638
|
+
</arg>
|
|
639
|
+
<retval declared_type='void' type='v'/>
|
|
640
|
+
</method>
|
|
641
|
+
<method selector='setDrawSegment:'>
|
|
642
|
+
<arg declared_type='drawSegmentCallback' index='0' name='drawSegment' type='@?' function_pointer='true'>
|
|
643
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
644
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
645
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
646
|
+
<retval declared_type='void' type='v'/>
|
|
647
|
+
</arg>
|
|
648
|
+
<retval declared_type='void' type='v'/>
|
|
649
|
+
</method>
|
|
650
|
+
<method selector='setDrawSolidCircle:'>
|
|
651
|
+
<arg declared_type='drawSolidCircleCallback' index='0' name='drawSolidCircle' type='@?' function_pointer='true'>
|
|
652
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
653
|
+
<arg declared_type='float' type='f'/>
|
|
654
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
655
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
656
|
+
<retval declared_type='void' type='v'/>
|
|
657
|
+
</arg>
|
|
658
|
+
<retval declared_type='void' type='v'/>
|
|
659
|
+
</method>
|
|
660
|
+
<method selector='setDrawSolidPolygon:'>
|
|
661
|
+
<arg declared_type='drawSolidPolygonCallback' index='0' name='drawSolidPolygon' type='@?' function_pointer='true'>
|
|
662
|
+
<arg declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
663
|
+
<arg declared_type='NSInteger' type64='q' type='i'/>
|
|
664
|
+
<arg declared_type='B2DColor*' type='@'/>
|
|
665
|
+
<retval declared_type='void' type='v'/>
|
|
666
|
+
</arg>
|
|
667
|
+
<retval declared_type='void' type='v'/>
|
|
668
|
+
</method>
|
|
669
|
+
<method selector='setDrawTransform:'>
|
|
670
|
+
<arg declared_type='drawTransformCallback' index='0' name='drawTransform' type='@?' function_pointer='true'>
|
|
671
|
+
<arg declared_type='B2DTransform*' type='@'/>
|
|
672
|
+
<retval declared_type='void' type='v'/>
|
|
101
673
|
</arg>
|
|
102
|
-
<retval
|
|
674
|
+
<retval declared_type='void' type='v'/>
|
|
103
675
|
</method>
|
|
104
676
|
</class>
|
|
105
677
|
<class name='B2DEdgeShape'>
|
|
678
|
+
<method selector='endAdjacentVertex'>
|
|
679
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
680
|
+
</method>
|
|
681
|
+
<method selector='endVertex'>
|
|
682
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
683
|
+
</method>
|
|
684
|
+
<method selector='hasEndAdjacentVertex'>
|
|
685
|
+
<retval declared_type='_Bool' type='B'/>
|
|
686
|
+
</method>
|
|
687
|
+
<method selector='hasStartAdjacentVertex'>
|
|
688
|
+
<retval declared_type='_Bool' type='B'/>
|
|
689
|
+
</method>
|
|
106
690
|
<method selector='initWithStartPoint:endPoint:'>
|
|
107
|
-
<arg
|
|
108
|
-
<arg
|
|
109
|
-
<retval
|
|
691
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='startPoint' type='{CGPoint=ff}'/>
|
|
692
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='endPoint' type='{CGPoint=ff}'/>
|
|
693
|
+
<retval declared_type='id' type='@'/>
|
|
694
|
+
</method>
|
|
695
|
+
<method selector='initWithStartVertex:endVertex:'>
|
|
696
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='startVertex' type='{CGPoint=ff}'/>
|
|
697
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='endVertex' type='{CGPoint=ff}'/>
|
|
698
|
+
<retval declared_type='id' type='@'/>
|
|
699
|
+
</method>
|
|
700
|
+
<method selector='startAdjacentVertex'>
|
|
701
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
702
|
+
</method>
|
|
703
|
+
<method selector='startVertex'>
|
|
704
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
705
|
+
</method>
|
|
706
|
+
</class>
|
|
707
|
+
<class name='B2DFilter'>
|
|
708
|
+
<method selector='categoryBits'>
|
|
709
|
+
<retval declared_type='NSUInteger' type64='Q' type='I'/>
|
|
710
|
+
</method>
|
|
711
|
+
<method selector='groupIndex'>
|
|
712
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
713
|
+
</method>
|
|
714
|
+
<method selector='initWithFilter:'>
|
|
715
|
+
<arg declared_type='id' index='0' name='filter' type='@'/>
|
|
716
|
+
<retval declared_type='id' type='@'/>
|
|
717
|
+
</method>
|
|
718
|
+
<method selector='maskBits'>
|
|
719
|
+
<retval declared_type='NSUInteger' type64='Q' type='I'/>
|
|
720
|
+
</method>
|
|
721
|
+
<method selector='setCategoryBits:'>
|
|
722
|
+
<arg declared_type='NSUInteger' index='0' type64='Q' name='categoryBits' type='I'/>
|
|
723
|
+
<retval declared_type='void' type='v'/>
|
|
724
|
+
</method>
|
|
725
|
+
<method selector='setGroupIndex:'>
|
|
726
|
+
<arg declared_type='NSInteger' index='0' type64='q' name='groupIndex' type='i'/>
|
|
727
|
+
<retval declared_type='void' type='v'/>
|
|
728
|
+
</method>
|
|
729
|
+
<method selector='setMaskBits:'>
|
|
730
|
+
<arg declared_type='NSUInteger' index='0' type64='Q' name='maskBits' type='I'/>
|
|
731
|
+
<retval declared_type='void' type='v'/>
|
|
732
|
+
</method>
|
|
733
|
+
</class>
|
|
734
|
+
<class name='B2DFixture'>
|
|
735
|
+
<method selector='aabb:'>
|
|
736
|
+
<arg declared_type='NSInteger' index='0' type64='q' name='childIndex' type='i'/>
|
|
737
|
+
<retval declared_type='B2DAABB*' type='@'/>
|
|
738
|
+
</method>
|
|
739
|
+
<method selector='body'>
|
|
740
|
+
<retval declared_type='B2DBody*' type='@'/>
|
|
741
|
+
</method>
|
|
742
|
+
<method selector='density'>
|
|
743
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
744
|
+
</method>
|
|
745
|
+
<method selector='dump:'>
|
|
746
|
+
<arg declared_type='NSInteger' index='0' type64='q' name='bodyIndex' type='i'/>
|
|
747
|
+
<retval declared_type='void' type='v'/>
|
|
748
|
+
</method>
|
|
749
|
+
<method selector='filterData'>
|
|
750
|
+
<retval declared_type='B2DFilter*' type='@'/>
|
|
751
|
+
</method>
|
|
752
|
+
<method selector='fixture'>
|
|
753
|
+
<retval declared_type='int*' type='^i'/>
|
|
754
|
+
</method>
|
|
755
|
+
<method selector='friction'>
|
|
756
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
757
|
+
</method>
|
|
758
|
+
<method selector='initWithFixture:'>
|
|
759
|
+
<arg declared_type='id' index='0' name='boxFixture' type='@'/>
|
|
760
|
+
<retval declared_type='id' type='@'/>
|
|
761
|
+
</method>
|
|
762
|
+
<method selector='isSensor'>
|
|
763
|
+
<retval declared_type='_Bool' type='B'/>
|
|
764
|
+
</method>
|
|
765
|
+
<method selector='massData'>
|
|
766
|
+
<retval declared_type='B2DMassData*' type='@'/>
|
|
767
|
+
</method>
|
|
768
|
+
<method selector='next'>
|
|
769
|
+
<retval declared_type='B2DFixture*' type='@'/>
|
|
770
|
+
</method>
|
|
771
|
+
<method selector='rayCastWithOutput:input:andChildIndex:'>
|
|
772
|
+
<arg declared_type='B2DRayCastOutput*' index='0' name='output' type='@'/>
|
|
773
|
+
<arg declared_type='B2DRayCastInput*' index='1' name='input' type='@'/>
|
|
774
|
+
<arg declared_type='NSInteger' index='2' type64='q' name='childIndex' type='i'/>
|
|
775
|
+
<retval declared_type='_Bool' type='B'/>
|
|
776
|
+
</method>
|
|
777
|
+
<method selector='refilter'>
|
|
778
|
+
<retval declared_type='void' type='v'/>
|
|
779
|
+
</method>
|
|
780
|
+
<method selector='restitution'>
|
|
781
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
782
|
+
</method>
|
|
783
|
+
<method selector='sensor'>
|
|
784
|
+
<retval declared_type='_Bool' type='B'/>
|
|
785
|
+
</method>
|
|
786
|
+
<method selector='setDensity:'>
|
|
787
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='density' type='f'/>
|
|
788
|
+
<retval declared_type='void' type='v'/>
|
|
789
|
+
</method>
|
|
790
|
+
<method selector='setFilterData:'>
|
|
791
|
+
<arg declared_type='B2DFilter*' index='0' name='filterData' type='@'/>
|
|
792
|
+
<retval declared_type='void' type='v'/>
|
|
793
|
+
</method>
|
|
794
|
+
<method selector='setFixture:'>
|
|
795
|
+
<arg declared_type='int*' index='0' name='fixture' type='^i'/>
|
|
796
|
+
<retval declared_type='void' type='v'/>
|
|
797
|
+
</method>
|
|
798
|
+
<method selector='setFriction:'>
|
|
799
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='friction' type='f'/>
|
|
800
|
+
<retval declared_type='void' type='v'/>
|
|
801
|
+
</method>
|
|
802
|
+
<method selector='setRestitution:'>
|
|
803
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='restitution' type='f'/>
|
|
804
|
+
<retval declared_type='void' type='v'/>
|
|
805
|
+
</method>
|
|
806
|
+
<method selector='setSensor:'>
|
|
807
|
+
<arg declared_type='_Bool' index='0' name='sensor' type='B'/>
|
|
808
|
+
<retval declared_type='void' type='v'/>
|
|
809
|
+
</method>
|
|
810
|
+
<method selector='setUserData:'>
|
|
811
|
+
<arg declared_type='id' index='0' name='userData' type='@'/>
|
|
812
|
+
<retval declared_type='void' type='v'/>
|
|
813
|
+
</method>
|
|
814
|
+
<method selector='shape'>
|
|
815
|
+
<retval declared_type='B2DShape*' type='@'/>
|
|
816
|
+
</method>
|
|
817
|
+
<method selector='testPoint:'>
|
|
818
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='point' type='{CGPoint=ff}'/>
|
|
819
|
+
<retval declared_type='_Bool' type='B'/>
|
|
820
|
+
</method>
|
|
821
|
+
<method selector='type'>
|
|
822
|
+
<retval declared_type='B2DShapeTypes' type='i'/>
|
|
823
|
+
</method>
|
|
824
|
+
<method selector='userData'>
|
|
825
|
+
<retval declared_type='id' type='@'/>
|
|
826
|
+
</method>
|
|
827
|
+
</class>
|
|
828
|
+
<class name='B2DFixtureDef'>
|
|
829
|
+
<method selector='density'>
|
|
830
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
831
|
+
</method>
|
|
832
|
+
<method selector='friction'>
|
|
833
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
834
|
+
</method>
|
|
835
|
+
<method selector='isSensor'>
|
|
836
|
+
<retval declared_type='_Bool' type='B'/>
|
|
837
|
+
</method>
|
|
838
|
+
<method selector='restitution'>
|
|
839
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
840
|
+
</method>
|
|
841
|
+
<method selector='setDensity:'>
|
|
842
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='density' type='f'/>
|
|
843
|
+
<retval declared_type='void' type='v'/>
|
|
844
|
+
</method>
|
|
845
|
+
<method selector='setFriction:'>
|
|
846
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='friction' type='f'/>
|
|
847
|
+
<retval declared_type='void' type='v'/>
|
|
848
|
+
</method>
|
|
849
|
+
<method selector='setIsSensor:'>
|
|
850
|
+
<arg declared_type='_Bool' index='0' name='isSensor' type='B'/>
|
|
851
|
+
<retval declared_type='void' type='v'/>
|
|
852
|
+
</method>
|
|
853
|
+
<method selector='setRestitution:'>
|
|
854
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='restitution' type='f'/>
|
|
855
|
+
<retval declared_type='void' type='v'/>
|
|
856
|
+
</method>
|
|
857
|
+
<method selector='setShape:'>
|
|
858
|
+
<arg declared_type='B2DShape*' index='0' name='shape' type='@'/>
|
|
859
|
+
<retval declared_type='void' type='v'/>
|
|
860
|
+
</method>
|
|
861
|
+
<method selector='setUserData:'>
|
|
862
|
+
<arg declared_type='id' index='0' name='userData' type='@'/>
|
|
863
|
+
<retval declared_type='void' type='v'/>
|
|
864
|
+
</method>
|
|
865
|
+
<method selector='shape'>
|
|
866
|
+
<retval declared_type='B2DShape*' type='@'/>
|
|
867
|
+
</method>
|
|
868
|
+
<method selector='userData'>
|
|
869
|
+
<retval declared_type='id' type='@'/>
|
|
870
|
+
</method>
|
|
871
|
+
</class>
|
|
872
|
+
<class name='B2DMassData'>
|
|
873
|
+
<method selector='I'>
|
|
874
|
+
<retval declared_type='Float32' type='f'/>
|
|
875
|
+
</method>
|
|
876
|
+
<method selector='centre'>
|
|
877
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
878
|
+
</method>
|
|
879
|
+
<method selector='initWithMassData:'>
|
|
880
|
+
<arg declared_type='id' index='0' name='massData' type='@'/>
|
|
881
|
+
<retval declared_type='id' type='@'/>
|
|
882
|
+
</method>
|
|
883
|
+
<method selector='mass'>
|
|
884
|
+
<retval declared_type='Float32' type='f'/>
|
|
885
|
+
</method>
|
|
886
|
+
<method selector='setCentre:'>
|
|
887
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='centre' type='{CGPoint=ff}'/>
|
|
888
|
+
<retval declared_type='void' type='v'/>
|
|
889
|
+
</method>
|
|
890
|
+
<method selector='setI:'>
|
|
891
|
+
<arg declared_type='Float32' index='0' name='I' type='f'/>
|
|
892
|
+
<retval declared_type='void' type='v'/>
|
|
893
|
+
</method>
|
|
894
|
+
<method selector='setMass:'>
|
|
895
|
+
<arg declared_type='Float32' index='0' name='mass' type='f'/>
|
|
896
|
+
<retval declared_type='void' type='v'/>
|
|
110
897
|
</method>
|
|
111
898
|
</class>
|
|
112
899
|
<class name='B2DPolygonShape'>
|
|
900
|
+
<method selector='centroid'>
|
|
901
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
902
|
+
</method>
|
|
903
|
+
<method selector='getVertex:'>
|
|
904
|
+
<arg declared_type='NSInteger' index='0' type64='q' name='index' type='i'/>
|
|
905
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
906
|
+
</method>
|
|
113
907
|
<method selector='initWithBoxSize:'>
|
|
114
|
-
<arg
|
|
115
|
-
<retval
|
|
908
|
+
<arg declared_type='CGSize' index='0' type64='{CGSize=dd}' name='boxSize' type='{CGSize=ff}'/>
|
|
909
|
+
<retval declared_type='id' type='@'/>
|
|
910
|
+
</method>
|
|
911
|
+
<method selector='initWithHalfWidth:andHalfHeight:'>
|
|
912
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='halfWidth' type='f'/>
|
|
913
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='halfHeight' type='f'/>
|
|
914
|
+
<retval declared_type='id' type='@'/>
|
|
915
|
+
</method>
|
|
916
|
+
<method selector='initWithHalfWidth:halfHeight:center:andAngle:'>
|
|
917
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='halfWidth' type='f'/>
|
|
918
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='halfHeight' type='f'/>
|
|
919
|
+
<arg declared_type='CGPoint' index='2' type64='{CGPoint=dd}' name='center' type='{CGPoint=ff}'/>
|
|
920
|
+
<arg declared_type='CGFloat' index='3' type64='d' name='angle' type='f'/>
|
|
921
|
+
<retval declared_type='id' type='@'/>
|
|
922
|
+
</method>
|
|
923
|
+
<method selector='initWithVertices:andVertexCount:'>
|
|
924
|
+
<arg declared_type='CGPoint*' index='0' type64='^{CGPoint=dd}' name='vertices' type='^{CGPoint=ff}'/>
|
|
925
|
+
<arg declared_type='NSInteger' index='1' type64='q' name='vertexCount' type='i'/>
|
|
926
|
+
<retval declared_type='id' type='@'/>
|
|
927
|
+
</method>
|
|
928
|
+
<method selector='normals'>
|
|
929
|
+
<retval declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
930
|
+
</method>
|
|
931
|
+
<method selector='vertexCount'>
|
|
932
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
933
|
+
</method>
|
|
934
|
+
<method selector='vertices'>
|
|
935
|
+
<retval declared_type='CGPoint*' type64='^{CGPoint=dd}' type='^{CGPoint=ff}'/>
|
|
936
|
+
</method>
|
|
937
|
+
</class>
|
|
938
|
+
<class name='B2DProfile'>
|
|
939
|
+
<method selector='broadphase'>
|
|
940
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
941
|
+
</method>
|
|
942
|
+
<method selector='collide'>
|
|
943
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
944
|
+
</method>
|
|
945
|
+
<method selector='setBroadphase:'>
|
|
946
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='broadphase' type='f'/>
|
|
947
|
+
<retval declared_type='void' type='v'/>
|
|
948
|
+
</method>
|
|
949
|
+
<method selector='setCollide:'>
|
|
950
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='collide' type='f'/>
|
|
951
|
+
<retval declared_type='void' type='v'/>
|
|
952
|
+
</method>
|
|
953
|
+
<method selector='setSolve:'>
|
|
954
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='solve' type='f'/>
|
|
955
|
+
<retval declared_type='void' type='v'/>
|
|
956
|
+
</method>
|
|
957
|
+
<method selector='setSolveInit:'>
|
|
958
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='solveInit' type='f'/>
|
|
959
|
+
<retval declared_type='void' type='v'/>
|
|
960
|
+
</method>
|
|
961
|
+
<method selector='setSolvePosition:'>
|
|
962
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='solvePosition' type='f'/>
|
|
963
|
+
<retval declared_type='void' type='v'/>
|
|
964
|
+
</method>
|
|
965
|
+
<method selector='setSolveTOI:'>
|
|
966
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='solveTOI' type='f'/>
|
|
967
|
+
<retval declared_type='void' type='v'/>
|
|
968
|
+
</method>
|
|
969
|
+
<method selector='setSolveVelocity:'>
|
|
970
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='solveVelocity' type='f'/>
|
|
971
|
+
<retval declared_type='void' type='v'/>
|
|
972
|
+
</method>
|
|
973
|
+
<method selector='setStep:'>
|
|
974
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='step' type='f'/>
|
|
975
|
+
<retval declared_type='void' type='v'/>
|
|
976
|
+
</method>
|
|
977
|
+
<method selector='solve'>
|
|
978
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
979
|
+
</method>
|
|
980
|
+
<method selector='solveInit'>
|
|
981
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
982
|
+
</method>
|
|
983
|
+
<method selector='solvePosition'>
|
|
984
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
985
|
+
</method>
|
|
986
|
+
<method selector='solveTOI'>
|
|
987
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
988
|
+
</method>
|
|
989
|
+
<method selector='solveVelocity'>
|
|
990
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
991
|
+
</method>
|
|
992
|
+
<method selector='step'>
|
|
993
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
994
|
+
</method>
|
|
995
|
+
</class>
|
|
996
|
+
<class name='B2DQueryCallback'>
|
|
997
|
+
<method selector='queryCallback'>
|
|
998
|
+
<retval declared_type='int*' type='^i'/>
|
|
999
|
+
</method>
|
|
1000
|
+
<method selector='reportFixture'>
|
|
1001
|
+
<retval declared_type='reportQueryFixtureCallback' type='@?' function_pointer='true'>
|
|
1002
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
1003
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1004
|
+
</retval>
|
|
1005
|
+
</method>
|
|
1006
|
+
<method selector='setQueryCallback:'>
|
|
1007
|
+
<arg declared_type='int*' index='0' name='queryCallback' type='^i'/>
|
|
1008
|
+
<retval declared_type='void' type='v'/>
|
|
1009
|
+
</method>
|
|
1010
|
+
<method selector='setReportFixture:'>
|
|
1011
|
+
<arg declared_type='reportQueryFixtureCallback' index='0' name='reportFixture' type='@?' function_pointer='true'>
|
|
1012
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
1013
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1014
|
+
</arg>
|
|
1015
|
+
<retval declared_type='void' type='v'/>
|
|
1016
|
+
</method>
|
|
1017
|
+
</class>
|
|
1018
|
+
<class name='B2DRayCastCallback'>
|
|
1019
|
+
<method selector='rayCastCallback'>
|
|
1020
|
+
<retval declared_type='int*' type='^i'/>
|
|
1021
|
+
</method>
|
|
1022
|
+
<method selector='reportFixture'>
|
|
1023
|
+
<retval declared_type='reportRaycastFixtureCallback' type='@?' function_pointer='true'>
|
|
1024
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
1025
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1026
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1027
|
+
<arg declared_type='CGFloat' type64='d' type='f'/>
|
|
1028
|
+
<retval declared_type='float' type='f'/>
|
|
1029
|
+
</retval>
|
|
1030
|
+
</method>
|
|
1031
|
+
<method selector='setRayCastCallback:'>
|
|
1032
|
+
<arg declared_type='int*' index='0' name='rayCastCallback' type='^i'/>
|
|
1033
|
+
<retval declared_type='void' type='v'/>
|
|
1034
|
+
</method>
|
|
1035
|
+
<method selector='setReportFixture:'>
|
|
1036
|
+
<arg declared_type='reportRaycastFixtureCallback' index='0' name='reportFixture' type='@?' function_pointer='true'>
|
|
1037
|
+
<arg declared_type='B2DFixture*' type='@'/>
|
|
1038
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1039
|
+
<arg declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1040
|
+
<arg declared_type='CGFloat' type64='d' type='f'/>
|
|
1041
|
+
<retval declared_type='float' type='f'/>
|
|
1042
|
+
</arg>
|
|
1043
|
+
<retval declared_type='void' type='v'/>
|
|
1044
|
+
</method>
|
|
1045
|
+
</class>
|
|
1046
|
+
<class name='B2DRayCastInput'>
|
|
1047
|
+
<method selector='initWithRayCastInput:'>
|
|
1048
|
+
<arg declared_type='id' index='0' name='rayCastInput' type='@'/>
|
|
1049
|
+
<retval declared_type='id' type='@'/>
|
|
1050
|
+
</method>
|
|
1051
|
+
<method selector='maxFraction'>
|
|
1052
|
+
<retval declared_type='Float32' type='f'/>
|
|
1053
|
+
</method>
|
|
1054
|
+
<method selector='point1'>
|
|
1055
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1056
|
+
</method>
|
|
1057
|
+
<method selector='point2'>
|
|
1058
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1059
|
+
</method>
|
|
1060
|
+
<method selector='setMaxFraction:'>
|
|
1061
|
+
<arg declared_type='Float32' index='0' name='maxFraction' type='f'/>
|
|
1062
|
+
<retval declared_type='void' type='v'/>
|
|
1063
|
+
</method>
|
|
1064
|
+
<method selector='setPoint1:'>
|
|
1065
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='point1' type='{CGPoint=ff}'/>
|
|
1066
|
+
<retval declared_type='void' type='v'/>
|
|
1067
|
+
</method>
|
|
1068
|
+
<method selector='setPoint2:'>
|
|
1069
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='point2' type='{CGPoint=ff}'/>
|
|
1070
|
+
<retval declared_type='void' type='v'/>
|
|
1071
|
+
</method>
|
|
1072
|
+
</class>
|
|
1073
|
+
<class name='B2DRayCastOutput'>
|
|
1074
|
+
<method selector='fraction'>
|
|
1075
|
+
<retval declared_type='Float32' type='f'/>
|
|
1076
|
+
</method>
|
|
1077
|
+
<method selector='initWithRayCastOutput:'>
|
|
1078
|
+
<arg declared_type='id' index='0' name='rayCastOutput' type='@'/>
|
|
1079
|
+
<retval declared_type='id' type='@'/>
|
|
1080
|
+
</method>
|
|
1081
|
+
<method selector='normal'>
|
|
1082
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1083
|
+
</method>
|
|
1084
|
+
<method selector='setFraction:'>
|
|
1085
|
+
<arg declared_type='Float32' index='0' name='fraction' type='f'/>
|
|
1086
|
+
<retval declared_type='void' type='v'/>
|
|
1087
|
+
</method>
|
|
1088
|
+
<method selector='setNormal:'>
|
|
1089
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='normal' type='{CGPoint=ff}'/>
|
|
1090
|
+
<retval declared_type='void' type='v'/>
|
|
116
1091
|
</method>
|
|
117
1092
|
</class>
|
|
118
1093
|
<class name='B2DShape'>
|
|
1094
|
+
<method selector='childCount'>
|
|
1095
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1096
|
+
</method>
|
|
1097
|
+
<method selector='computeAABB:withTransform:andChildIndex:'>
|
|
1098
|
+
<arg declared_type='B2DAABB*' index='0' name='aabb' type='@'/>
|
|
1099
|
+
<arg declared_type='B2DTransform*' index='1' name='transform' type='@'/>
|
|
1100
|
+
<arg declared_type='NSInteger' index='2' type64='q' name='childIndex' type='i'/>
|
|
1101
|
+
<retval declared_type='void' type='v'/>
|
|
1102
|
+
</method>
|
|
1103
|
+
<method selector='computeMass:withDensity:'>
|
|
1104
|
+
<arg declared_type='B2DMassData*' index='0' name='massData' type='@'/>
|
|
1105
|
+
<arg declared_type='CGFloat' index='1' type64='d' name='density' type='f'/>
|
|
1106
|
+
<retval declared_type='void' type='v'/>
|
|
1107
|
+
</method>
|
|
1108
|
+
<method selector='initWithShape:'>
|
|
1109
|
+
<arg declared_type='id' index='0' name='boxShape' type='@'/>
|
|
1110
|
+
<retval declared_type='id' type='@'/>
|
|
1111
|
+
</method>
|
|
1112
|
+
<method selector='radius'>
|
|
1113
|
+
<retval declared_type='CGFloat' type64='d' type='f'/>
|
|
1114
|
+
</method>
|
|
1115
|
+
<method selector='rayCastWithOutput:input:transform:andChildren:'>
|
|
1116
|
+
<arg declared_type='B2DRayCastOutput*' index='0' name='output' type='@'/>
|
|
1117
|
+
<arg declared_type='B2DRayCastInput*' index='1' name='input' type='@'/>
|
|
1118
|
+
<arg declared_type='B2DTransform*' index='2' name='transform' type='@'/>
|
|
1119
|
+
<arg declared_type='NSInteger' index='3' type64='q' name='childIndex' type='i'/>
|
|
1120
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1121
|
+
</method>
|
|
119
1122
|
<method selector='setShape:'>
|
|
120
|
-
<arg
|
|
121
|
-
<retval
|
|
1123
|
+
<arg declared_type='int*' index='0' name='shape' type='^i'/>
|
|
1124
|
+
<retval declared_type='void' type='v'/>
|
|
122
1125
|
</method>
|
|
123
1126
|
<method selector='shape'>
|
|
124
|
-
<retval
|
|
1127
|
+
<retval declared_type='int*' type='^i'/>
|
|
1128
|
+
</method>
|
|
1129
|
+
<method selector='testPointWithTransform:andPoint:'>
|
|
1130
|
+
<arg declared_type='B2DTransform*' index='0' name='transform' type='@'/>
|
|
1131
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='point' type='{CGPoint=ff}'/>
|
|
1132
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1133
|
+
</method>
|
|
1134
|
+
<method selector='type'>
|
|
1135
|
+
<retval declared_type='B2DShapeTypes' type='i'/>
|
|
1136
|
+
</method>
|
|
1137
|
+
</class>
|
|
1138
|
+
<class name='B2DTransform'>
|
|
1139
|
+
<method selector='angle'>
|
|
1140
|
+
<retval declared_type='Float32' type='f'/>
|
|
1141
|
+
</method>
|
|
1142
|
+
<method selector='initWithTransform:'>
|
|
1143
|
+
<arg declared_type='id' index='0' name='transform' type='@'/>
|
|
1144
|
+
<retval declared_type='id' type='@'/>
|
|
1145
|
+
</method>
|
|
1146
|
+
<method selector='point'>
|
|
1147
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1148
|
+
</method>
|
|
1149
|
+
<method selector='setAngle:'>
|
|
1150
|
+
<arg declared_type='Float32' index='0' name='angle' type='f'/>
|
|
1151
|
+
<retval declared_type='void' type='v'/>
|
|
1152
|
+
</method>
|
|
1153
|
+
<method selector='setPoint:'>
|
|
1154
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='point' type='{CGPoint=ff}'/>
|
|
1155
|
+
<retval declared_type='void' type='v'/>
|
|
125
1156
|
</method>
|
|
126
1157
|
</class>
|
|
127
1158
|
<class name='B2DWorld'>
|
|
128
1159
|
<method selector='addContactListener:'>
|
|
129
|
-
<arg
|
|
130
|
-
<retval
|
|
1160
|
+
<arg declared_type='B2DContactListener*' index='0' name='contactListener' type='@'/>
|
|
1161
|
+
<retval declared_type='void' type='v'/>
|
|
131
1162
|
</method>
|
|
132
1163
|
<method selector='allowsSleeping'>
|
|
133
|
-
<retval
|
|
1164
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1165
|
+
</method>
|
|
1166
|
+
<method selector='autoClearForces'>
|
|
1167
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1168
|
+
</method>
|
|
1169
|
+
<method selector='bodyCount'>
|
|
1170
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1171
|
+
</method>
|
|
1172
|
+
<method selector='bodyList'>
|
|
1173
|
+
<retval declared_type='NSArray*' type='@'/>
|
|
1174
|
+
</method>
|
|
1175
|
+
<method selector='clearForces'>
|
|
1176
|
+
<retval declared_type='void' type='v'/>
|
|
1177
|
+
</method>
|
|
1178
|
+
<method selector='contactCount'>
|
|
1179
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
134
1180
|
</method>
|
|
135
1181
|
<method selector='continuousPhysics'>
|
|
136
|
-
<retval
|
|
1182
|
+
<retval declared_type='BOOL' type='B'/>
|
|
1183
|
+
</method>
|
|
1184
|
+
<method selector='createBody:'>
|
|
1185
|
+
<arg declared_type='B2DBodyDef*' index='0' name='bodyDefinition' type='@'/>
|
|
1186
|
+
<retval declared_type='B2DBody*' type='@'/>
|
|
137
1187
|
</method>
|
|
138
1188
|
<method selector='createBodyInPosition:type:'>
|
|
139
|
-
<arg
|
|
140
|
-
<arg
|
|
141
|
-
<retval
|
|
1189
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='position' type='{CGPoint=ff}'/>
|
|
1190
|
+
<arg declared_type='B2DBodyTypes' index='1' name='bodyType' type='i'/>
|
|
1191
|
+
<retval declared_type='B2DBody*' type='@'/>
|
|
1192
|
+
</method>
|
|
1193
|
+
<method selector='destroyBody:'>
|
|
1194
|
+
<arg declared_type='B2DBody*' index='0' name='body' type='@'/>
|
|
1195
|
+
<retval declared_type='void' type='v'/>
|
|
1196
|
+
</method>
|
|
1197
|
+
<method selector='drawDebugData'>
|
|
1198
|
+
<retval declared_type='void' type='v'/>
|
|
1199
|
+
</method>
|
|
1200
|
+
<method selector='dump'>
|
|
1201
|
+
<retval declared_type='void' type='v'/>
|
|
142
1202
|
</method>
|
|
143
1203
|
<method selector='gravity'>
|
|
144
|
-
<retval
|
|
1204
|
+
<retval declared_type='CGPoint' type64='{CGPoint=dd}' type='{CGPoint=ff}'/>
|
|
1205
|
+
</method>
|
|
1206
|
+
<method selector='initWithWorld:'>
|
|
1207
|
+
<arg declared_type='id' index='0' name='boxWorld' type='@'/>
|
|
1208
|
+
<retval declared_type='id' type='@'/>
|
|
1209
|
+
</method>
|
|
1210
|
+
<method selector='isLocked'>
|
|
1211
|
+
<retval declared_type='_Bool' type='B'/>
|
|
1212
|
+
</method>
|
|
1213
|
+
<method selector='jointCount'>
|
|
1214
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1215
|
+
</method>
|
|
1216
|
+
<method selector='profile'>
|
|
1217
|
+
<retval declared_type='B2DProfile*' type='@'/>
|
|
1218
|
+
</method>
|
|
1219
|
+
<method selector='proxyCount'>
|
|
1220
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1221
|
+
</method>
|
|
1222
|
+
<method selector='queryAABBWithCallback:andAABB:'>
|
|
1223
|
+
<arg declared_type='B2DQueryCallback*' index='0' name='queryCallback' type='@'/>
|
|
1224
|
+
<arg declared_type='B2DAABB*' index='1' name='aabb' type='@'/>
|
|
1225
|
+
<retval declared_type='void' type='v'/>
|
|
1226
|
+
</method>
|
|
1227
|
+
<method selector='rayCastWithCallback:andPoint1:andPoint2:'>
|
|
1228
|
+
<arg declared_type='B2DRayCastCallback*' index='0' name='rayCastCallback' type='@'/>
|
|
1229
|
+
<arg declared_type='CGPoint' index='1' type64='{CGPoint=dd}' name='point1' type='{CGPoint=ff}'/>
|
|
1230
|
+
<arg declared_type='CGPoint' index='2' type64='{CGPoint=dd}' name='point2' type='{CGPoint=ff}'/>
|
|
1231
|
+
<retval declared_type='void' type='v'/>
|
|
145
1232
|
</method>
|
|
146
1233
|
<method selector='removeBody:'>
|
|
147
|
-
<arg
|
|
148
|
-
<retval
|
|
1234
|
+
<arg declared_type='B2DBody*' index='0' name='body' type='@'/>
|
|
1235
|
+
<retval declared_type='void' type='v'/>
|
|
149
1236
|
</method>
|
|
150
1237
|
<method selector='setAllowsSleeping:'>
|
|
151
|
-
<arg
|
|
152
|
-
<retval
|
|
1238
|
+
<arg declared_type='_Bool' index='0' name='allowsSleeping' type='B'/>
|
|
1239
|
+
<retval declared_type='void' type='v'/>
|
|
1240
|
+
</method>
|
|
1241
|
+
<method selector='setAutoClearForces:'>
|
|
1242
|
+
<arg declared_type='_Bool' index='0' name='autoClearForces' type='B'/>
|
|
1243
|
+
<retval declared_type='void' type='v'/>
|
|
1244
|
+
</method>
|
|
1245
|
+
<method selector='setContactFilter:'>
|
|
1246
|
+
<arg declared_type='B2DContactFilter*' index='0' name='contactFilter' type='@'/>
|
|
1247
|
+
<retval declared_type='void' type='v'/>
|
|
1248
|
+
</method>
|
|
1249
|
+
<method selector='setContactListener:'>
|
|
1250
|
+
<arg declared_type='B2DContactListener*' index='0' name='contactListener' type='@'/>
|
|
1251
|
+
<retval declared_type='void' type='v'/>
|
|
153
1252
|
</method>
|
|
154
1253
|
<method selector='setContinuousPhysics:'>
|
|
155
|
-
<arg
|
|
156
|
-
<retval
|
|
1254
|
+
<arg declared_type='BOOL' index='0' name='continuousPhysics' type='B'/>
|
|
1255
|
+
<retval declared_type='void' type='v'/>
|
|
1256
|
+
</method>
|
|
1257
|
+
<method selector='setDebugDraw:'>
|
|
1258
|
+
<arg declared_type='B2DDraw*' index='0' name='draw' type='@'/>
|
|
1259
|
+
<retval declared_type='void' type='v'/>
|
|
1260
|
+
</method>
|
|
1261
|
+
<method selector='setDestructionListener:'>
|
|
1262
|
+
<arg declared_type='B2DDestructionListener*' index='0' name='destructionListener' type='@'/>
|
|
1263
|
+
<retval declared_type='void' type='v'/>
|
|
157
1264
|
</method>
|
|
158
1265
|
<method selector='setGravity:'>
|
|
159
|
-
<arg
|
|
160
|
-
<retval
|
|
1266
|
+
<arg declared_type='CGPoint' index='0' type64='{CGPoint=dd}' name='gravity' type='{CGPoint=ff}'/>
|
|
1267
|
+
<retval declared_type='void' type='v'/>
|
|
161
1268
|
</method>
|
|
162
1269
|
<method selector='setWorld:'>
|
|
163
|
-
<arg
|
|
164
|
-
<retval
|
|
1270
|
+
<arg declared_type='int*' index='0' name='world' type='^i'/>
|
|
1271
|
+
<retval declared_type='void' type='v'/>
|
|
165
1272
|
</method>
|
|
166
1273
|
<method selector='stepWithDelta:velocityInteractions:positionInteractions:'>
|
|
167
|
-
<arg
|
|
168
|
-
<arg
|
|
169
|
-
<arg
|
|
170
|
-
<retval
|
|
1274
|
+
<arg declared_type='CGFloat' index='0' type64='d' name='delta' type='f'/>
|
|
1275
|
+
<arg declared_type='int' index='1' name='velocityInteractions' type='i'/>
|
|
1276
|
+
<arg declared_type='int' index='2' name='positionInteractions' type='i'/>
|
|
1277
|
+
<retval declared_type='void' type='v'/>
|
|
1278
|
+
</method>
|
|
1279
|
+
<method selector='treeBalance'>
|
|
1280
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1281
|
+
</method>
|
|
1282
|
+
<method selector='treeHeight'>
|
|
1283
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
1284
|
+
</method>
|
|
1285
|
+
<method selector='treeQuality'>
|
|
1286
|
+
<retval declared_type='NSInteger' type64='q' type='i'/>
|
|
171
1287
|
</method>
|
|
172
1288
|
<method selector='world'>
|
|
173
|
-
<retval
|
|
1289
|
+
<retval declared_type='int*' type='^i'/>
|
|
174
1290
|
</method>
|
|
175
1291
|
</class>
|
|
176
|
-
</signatures>
|
|
1292
|
+
</signatures>
|