joybox 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +27 -0
  5. data/LICENSE +22 -0
  6. data/README.md +86 -0
  7. data/Rakefile +14 -0
  8. data/app/app_delegate.rb +49 -0
  9. data/app/layers/box2d_layer.rb +109 -0
  10. data/app/layers/cocos2d_layer.rb +14 -0
  11. data/app/layers/cocos_motion_layer.rb +145 -0
  12. data/app/layers/menu_layer.rb +59 -0
  13. data/joybox.gemspec +25 -0
  14. data/lib/joybox.rb +47 -0
  15. data/lib/joybox/box2d/body.rb +106 -0
  16. data/lib/joybox/box2d/world.rb +79 -0
  17. data/lib/joybox/cocos2d/actions/actions.rb +7 -0
  18. data/lib/joybox/cocos2d/actions/move.rb +31 -0
  19. data/lib/joybox/cocos2d/actions/repeat.rb +24 -0
  20. data/lib/joybox/cocos2d/actions/rotate.rb +31 -0
  21. data/lib/joybox/cocos2d/actions/scale.rb +31 -0
  22. data/lib/joybox/cocos2d/actions/sequence.rb +22 -0
  23. data/lib/joybox/cocos2d/actions/skew.rb +36 -0
  24. data/lib/joybox/cocos2d/cocos2d.rb +15 -0
  25. data/lib/joybox/cocos2d/common/cg_point.rb +37 -0
  26. data/lib/joybox/cocos2d/common/color.rb +49 -0
  27. data/lib/joybox/cocos2d/common/gc_size.rb +39 -0
  28. data/lib/joybox/cocos2d/common/ns_set.rb +5 -0
  29. data/lib/joybox/cocos2d/common/numeric.rb +14 -0
  30. data/lib/joybox/cocos2d/common/screen.rb +39 -0
  31. data/lib/joybox/cocos2d/common/ui_touch.rb +15 -0
  32. data/lib/joybox/cocos2d/configuration/configuration.rb +68 -0
  33. data/lib/joybox/cocos2d/configuration/file_utils.rb +33 -0
  34. data/lib/joybox/cocos2d/configuration/gl_view.rb +44 -0
  35. data/lib/joybox/cocos2d/configuration/texture_2d.rb +27 -0
  36. data/lib/joybox/cocos2d/core/layer.rb +87 -0
  37. data/lib/joybox/cocos2d/core/node.rb +26 -0
  38. data/lib/joybox/cocos2d/core/physics_sprite.rb +52 -0
  39. data/lib/joybox/cocos2d/core/scene.rb +24 -0
  40. data/lib/joybox/cocos2d/core/sprite.rb +43 -0
  41. data/lib/joybox/cocos2d/core/sprite_batch.rb +24 -0
  42. data/lib/joybox/cocos2d/director.rb +43 -0
  43. data/lib/joybox/cocos2d/macros.rb +234 -0
  44. data/lib/joybox/cocos2d/ui/label.rb +34 -0
  45. data/lib/joybox/cocos2d/ui/menu.rb +25 -0
  46. data/lib/joybox/cocos2d/ui/menu_image.rb +22 -0
  47. data/lib/joybox/cocos2d/ui/menu_label.rb +45 -0
  48. data/lib/joybox/cocos2d/ui/ui.rb +7 -0
  49. data/lib/joybox/version.rb +3 -0
  50. data/resources/box2d/blocks_sprite_sheet.png +0 -0
  51. data/resources/cocos_motion/dot.png +0 -0
  52. data/resources/cocos_motion/dot_selected.png +0 -0
  53. data/resources/cocos_motion/grossini.png +0 -0
  54. data/resources/cocos_motion/grossinis_sister.png +0 -0
  55. data/resources/cocos_motion/grossinis_sister_two.png +0 -0
  56. data/resources/cocos_motion/left_arrow.png +0 -0
  57. data/resources/cocos_motion/left_arrow_selected.png +0 -0
  58. data/resources/cocos_motion/right_arrow.png +0 -0
  59. data/resources/cocos_motion/right_arrow_selected.png +0 -0
  60. data/resources/fps_images-hd.png +0 -0
  61. data/resources/fps_images-ipadhd.png +0 -0
  62. data/resources/fps_images.png +0 -0
  63. data/spec/lib/joybox/cocos2d/cocos2d_spec.rb +7 -0
  64. data/spec/lib/joybox/cocos2d/macros_spec.rb +37 -0
  65. data/spec/main_spec.rb +9 -0
  66. data/vendor/Box2D.framework/Box2D +0 -0
  67. data/vendor/Box2D.framework/Box2D.framework.bridgesupport +166 -0
  68. data/vendor/Box2D.framework/Versions/A/Box2D +0 -0
  69. data/vendor/Box2D.framework/Versions/A/Headers/Collision/B2DContactListener.h +25 -0
  70. data/vendor/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DEdgeShape.h +17 -0
  71. data/vendor/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DPolygonShape.h +16 -0
  72. data/vendor/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DShape.h +15 -0
  73. data/vendor/Box2D.framework/Versions/A/Headers/Dynamics/B2DBody.h +43 -0
  74. data/vendor/Box2D.framework/Versions/A/Headers/Dynamics/B2DWorld.h +41 -0
  75. data/vendor/Box2D.framework/Versions/A/Resources/Box2DConfig.cmake +3 -0
  76. data/vendor/Box2D.framework/Versions/A/Resources/CMakeLists.txt +205 -0
  77. data/vendor/Cocos2D/Cocos2D.bridgesupport +7808 -0
  78. data/vendor/Cocos2D/include/CCAction.h +195 -0
  79. data/vendor/Cocos2D/include/CCActionCamera.h +73 -0
  80. data/vendor/Cocos2D/include/CCActionCatmullRom.h +139 -0
  81. data/vendor/Cocos2D/include/CCActionEase.h +159 -0
  82. data/vendor/Cocos2D/include/CCActionGrid.h +165 -0
  83. data/vendor/Cocos2D/include/CCActionGrid3D.h +205 -0
  84. data/vendor/Cocos2D/include/CCActionInstant.h +227 -0
  85. data/vendor/Cocos2D/include/CCActionInterval.h +431 -0
  86. data/vendor/Cocos2D/include/CCActionManager.h +113 -0
  87. data/vendor/Cocos2D/include/CCActionPageTurn3D.h +42 -0
  88. data/vendor/Cocos2D/include/CCActionProgressTimer.h +59 -0
  89. data/vendor/Cocos2D/include/CCActionTiledGrid.h +211 -0
  90. data/vendor/Cocos2D/include/CCActionTween.h +62 -0
  91. data/vendor/Cocos2D/include/CCAnimation.h +150 -0
  92. data/vendor/Cocos2D/include/CCAnimationCache.h +74 -0
  93. data/vendor/Cocos2D/include/CCArray.h +119 -0
  94. data/vendor/Cocos2D/include/CCAtlasNode.h +96 -0
  95. data/vendor/Cocos2D/include/CCCamera.h +98 -0
  96. data/vendor/Cocos2D/include/CCConfiguration.h +126 -0
  97. data/vendor/Cocos2D/include/CCDirector.h +344 -0
  98. data/vendor/Cocos2D/include/CCDirectorIOS.h +104 -0
  99. data/vendor/Cocos2D/include/CCDrawingPrimitives.h +139 -0
  100. data/vendor/Cocos2D/include/CCES2Renderer.h +83 -0
  101. data/vendor/Cocos2D/include/CCESRenderer.h +54 -0
  102. data/vendor/Cocos2D/include/CCFileUtils.h +188 -0
  103. data/vendor/Cocos2D/include/CCGL.h +72 -0
  104. data/vendor/Cocos2D/include/CCGLProgram.h +150 -0
  105. data/vendor/Cocos2D/include/CCGLView.h +160 -0
  106. data/vendor/Cocos2D/include/CCGrabber.h +44 -0
  107. data/vendor/Cocos2D/include/CCGrid.h +130 -0
  108. data/vendor/Cocos2D/include/CCLabelAtlas.h +68 -0
  109. data/vendor/Cocos2D/include/CCLabelBMFont.h +216 -0
  110. data/vendor/Cocos2D/include/CCLabelTTF.h +132 -0
  111. data/vendor/Cocos2D/include/CCLayer.h +280 -0
  112. data/vendor/Cocos2D/include/CCMenu.h +100 -0
  113. data/vendor/Cocos2D/include/CCMenuItem.h +423 -0
  114. data/vendor/Cocos2D/include/CCMotionStreak.h +87 -0
  115. data/vendor/Cocos2D/include/CCNS.h +54 -0
  116. data/vendor/Cocos2D/include/CCNode+Debug.h +39 -0
  117. data/vendor/Cocos2D/include/CCNode.h +569 -0
  118. data/vendor/Cocos2D/include/CCParallaxNode.h +50 -0
  119. data/vendor/Cocos2D/include/CCParticleBatchNode.h +99 -0
  120. data/vendor/Cocos2D/include/CCParticleExamples.h +95 -0
  121. data/vendor/Cocos2D/include/CCParticleSystem.h +453 -0
  122. data/vendor/Cocos2D/include/CCParticleSystemQuad.h +73 -0
  123. data/vendor/Cocos2D/include/CCProfiling.h +89 -0
  124. data/vendor/Cocos2D/include/CCProgressTimer.h +94 -0
  125. data/vendor/Cocos2D/include/CCProtocols.h +132 -0
  126. data/vendor/Cocos2D/include/CCRenderTexture.h +139 -0
  127. data/vendor/Cocos2D/include/CCScene.h +43 -0
  128. data/vendor/Cocos2D/include/CCScheduler.h +230 -0
  129. data/vendor/Cocos2D/include/CCShaderCache.h +60 -0
  130. data/vendor/Cocos2D/include/CCSprite.h +288 -0
  131. data/vendor/Cocos2D/include/CCSpriteBatchNode.h +138 -0
  132. data/vendor/Cocos2D/include/CCSpriteFrame.h +126 -0
  133. data/vendor/Cocos2D/include/CCSpriteFrameCache.h +121 -0
  134. data/vendor/Cocos2D/include/CCTMXLayer.h +164 -0
  135. data/vendor/Cocos2D/include/CCTMXObjectGroup.h +67 -0
  136. data/vendor/Cocos2D/include/CCTMXTiledMap.h +145 -0
  137. data/vendor/Cocos2D/include/CCTMXXMLParser.h +217 -0
  138. data/vendor/Cocos2D/include/CCTexture2D.h +357 -0
  139. data/vendor/Cocos2D/include/CCTextureAtlas.h +188 -0
  140. data/vendor/Cocos2D/include/CCTextureCache.h +146 -0
  141. data/vendor/Cocos2D/include/CCTexturePVR.h +129 -0
  142. data/vendor/Cocos2D/include/CCTileMapAtlas.h +83 -0
  143. data/vendor/Cocos2D/include/CCTouchDelegateProtocol.h +75 -0
  144. data/vendor/Cocos2D/include/CCTouchDispatcher.h +120 -0
  145. data/vendor/Cocos2D/include/CCTouchHandler.h +93 -0
  146. data/vendor/Cocos2D/include/CCTransition.h +296 -0
  147. data/vendor/Cocos2D/include/CCTransitionPageTurn.h +60 -0
  148. data/vendor/Cocos2D/include/CCTransitionProgress.h +62 -0
  149. data/vendor/Cocos2D/include/CCVertex.h +36 -0
  150. data/vendor/Cocos2D/include/CGPointExtension.h +344 -0
  151. data/vendor/Cocos2D/include/CocosDenshion/CDAudioManager.h +243 -0
  152. data/vendor/Cocos2D/include/CocosDenshion/CDConfig.h +60 -0
  153. data/vendor/Cocos2D/include/CocosDenshion/CDOpenALSupport.h +77 -0
  154. data/vendor/Cocos2D/include/CocosDenshion/CDXPropertyModifierAction.h +45 -0
  155. data/vendor/Cocos2D/include/CocosDenshion/CocosDenshion.h +440 -0
  156. data/vendor/Cocos2D/include/CocosDenshion/SimpleAudioEngine.h +90 -0
  157. data/vendor/Cocos2D/include/NSThread+performBlock.h +22 -0
  158. data/vendor/Cocos2D/include/OpenGL_Internal.h +86 -0
  159. data/vendor/Cocos2D/include/RubyMotionSchedule.h +7 -0
  160. data/vendor/Cocos2D/include/TGAlib.h +55 -0
  161. data/vendor/Cocos2D/include/TransformUtils.h +36 -0
  162. data/vendor/Cocos2D/include/ZipUtils.h +91 -0
  163. data/vendor/Cocos2D/include/base64.h +33 -0
  164. data/vendor/Cocos2D/include/ccCArray.h +229 -0
  165. data/vendor/Cocos2D/include/ccConfig.h +245 -0
  166. data/vendor/Cocos2D/include/ccDeprecated.h +300 -0
  167. data/vendor/Cocos2D/include/ccGLStateCache.h +138 -0
  168. data/vendor/Cocos2D/include/ccMacros.h +353 -0
  169. data/vendor/Cocos2D/include/ccShader_PositionColor_frag.h +12 -0
  170. data/vendor/Cocos2D/include/ccShader_PositionColor_vert.h +17 -0
  171. data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_frag.h +16 -0
  172. data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_vert.h +21 -0
  173. data/vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h +23 -0
  174. data/vendor/Cocos2D/include/ccShader_PositionTextureColor_frag.h +14 -0
  175. data/vendor/Cocos2D/include/ccShader_PositionTextureColor_vert.h +22 -0
  176. data/vendor/Cocos2D/include/ccShader_PositionTexture_frag.h +13 -0
  177. data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_frag.h +16 -0
  178. data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_vert.h +18 -0
  179. data/vendor/Cocos2D/include/ccShader_PositionTexture_vert.h +17 -0
  180. data/vendor/Cocos2D/include/ccShader_Position_uColor_frag.h +12 -0
  181. data/vendor/Cocos2D/include/ccShader_Position_uColor_vert.h +19 -0
  182. data/vendor/Cocos2D/include/ccShaders.h +45 -0
  183. data/vendor/Cocos2D/include/ccTypes.h +374 -0
  184. data/vendor/Cocos2D/include/ccUtils.h +36 -0
  185. data/vendor/Cocos2D/include/cocos2d.h +178 -0
  186. data/vendor/Cocos2D/include/kazmath/GL/mat4stack.h +51 -0
  187. data/vendor/Cocos2D/include/kazmath/GL/matrix.h +58 -0
  188. data/vendor/Cocos2D/include/kazmath/aabb.h +53 -0
  189. data/vendor/Cocos2D/include/kazmath/kazmath.h +39 -0
  190. data/vendor/Cocos2D/include/kazmath/mat3.h +75 -0
  191. data/vendor/Cocos2D/include/kazmath/mat4.h +93 -0
  192. data/vendor/Cocos2D/include/kazmath/neon_matrix_impl.h +41 -0
  193. data/vendor/Cocos2D/include/kazmath/plane.h +70 -0
  194. data/vendor/Cocos2D/include/kazmath/quaternion.h +113 -0
  195. data/vendor/Cocos2D/include/kazmath/ray2.h +50 -0
  196. data/vendor/Cocos2D/include/kazmath/utility.h +74 -0
  197. data/vendor/Cocos2D/include/kazmath/vec2.h +64 -0
  198. data/vendor/Cocos2D/include/kazmath/vec3.h +68 -0
  199. data/vendor/Cocos2D/include/kazmath/vec4.h +68 -0
  200. data/vendor/Cocos2D/include/uthash.h +972 -0
  201. data/vendor/Cocos2D/include/utlist.h +490 -0
  202. data/vendor/Cocos2D/libCocosDenshion.a +0 -0
  203. data/vendor/Cocos2D/libcocos2d.a +0 -0
  204. metadata +277 -0
@@ -0,0 +1,245 @@
1
+ /*
2
+ * cocos2d for iPhone: http://www.cocos2d-iphone.org
3
+ *
4
+ * Copyright (c) 2008-2010 Ricardo Quesada
5
+ * Copyright (c) 2011 Zynga Inc.
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in
15
+ * all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ * THE SOFTWARE.
24
+ */
25
+
26
+ /**
27
+ @file
28
+ cocos2d (cc) configuration file
29
+ */
30
+
31
+ /** @def CC_ENABLE_GL_STATE_CACHE
32
+ If enabled, cocos2d will maintain an OpenGL state cache internally to avoid unnecessary switches.
33
+ In order to use them, you have to use the following functions, insead of the the GL ones:
34
+ - ccGLUseProgram() instead of glUseProgram()
35
+ - ccGLDeleteProgram() instead of glDeleteProgram()
36
+ - ccGLBlendFunc() instead of glBlendFunc()
37
+
38
+ If this functionality is disabled, then ccGLUseProgram(), ccGLDeleteProgram(), ccGLBlendFunc() will call the GL ones, without using the cache.
39
+
40
+ It is recommened to enable it whenever possible to improve speed.
41
+ If you are migrating your code from GL ES 1.1, then keep it disabled. Once all your code works as expected, turn it on.
42
+
43
+ Default value: Disabled by default
44
+
45
+ @since v2.0.0
46
+ */
47
+ #ifndef CC_ENABLE_GL_STATE_CACHE
48
+ #define CC_ENABLE_GL_STATE_CACHE 0
49
+ #endif
50
+
51
+ /** @def CC_ENABLE_DEPRECATED
52
+ If enabled, cocos2d will compile all deprecated methods, classes and free functions. Also, renamed constants will be active as well.
53
+ Enable it only when migrating a v1.0 or earlier v2.0 versions to the most recent cocdos2d version.
54
+
55
+ Default value: Enabled by default
56
+
57
+ @since v2.0.0
58
+ */
59
+ #ifndef CC_ENABLE_DEPRECATED
60
+ #define CC_ENABLE_DEPRECATED 1
61
+ #endif
62
+
63
+
64
+ /** @def CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL
65
+ If enabled, the texture coordinates will be calculated by using this formula:
66
+ - texCoord.left = (rect.origin.x*2+1) / (texture.wide*2);
67
+ - texCoord.right = texCoord.left + (rect.size.width*2-2)/(texture.wide*2);
68
+
69
+ The same for bottom and top.
70
+
71
+ This formula prevents artifacts by using 99% of the texture.
72
+ The "correct" way to prevent artifacts is by using the spritesheet-artifact-fixer.py or a similar tool.
73
+
74
+ Affected nodes:
75
+ - CCSprite / CCSpriteBatchNode and subclasses: CCLabelBMFont, CCTMXLayer
76
+ - CCLabelAtlas
77
+ - CCParticleSystemQuad
78
+ - CCTileMap
79
+
80
+ To enabled set it to 1. Disabled by default.
81
+
82
+ @since v0.99.5
83
+ */
84
+ #ifndef CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL
85
+ #define CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL 0
86
+ #endif
87
+
88
+ /** @def CC_DIRECTOR_STATS_INTERVAL
89
+ Seconds between stats updates.
90
+ 0.5 seconds, means that the stats will be updated every 0.5 seconds.
91
+ Having a bigger number means more stable stats
92
+
93
+ Default value: 0.1f
94
+ */
95
+ #ifndef CC_DIRECTOR_STATS_INTERVAL
96
+ #define CC_DIRECTOR_STATS_INTERVAL (0.1f)
97
+ #endif
98
+
99
+ /** @def CC_DIRECTOR_STATS_POSITION
100
+ Position of the FPS
101
+
102
+ Default: 0,0 (bottom-left corner)
103
+ */
104
+ #ifndef CC_DIRECTOR_STATS_POSITION
105
+ #define CC_DIRECTOR_STATS_POSITION ccp(0,0)
106
+ #endif
107
+
108
+ /** @def CC_DIRECTOR_IOS_USE_BACKGROUND_THREAD
109
+ If enabled, cocos2d-ios will run on a background thread. If disabled cocos2d-ios will run the main thread.
110
+
111
+ To enable set it to a 1, to disable it set to 0. Enabled by default.
112
+
113
+ Only valid for cocos2d-ios. Not supported on cocos2d-mac.
114
+
115
+ This is an EXPERIMENTAL feature. Do not use it unless you are a developer.
116
+
117
+ */
118
+ #ifndef CC_DIRECTOR_IOS_USE_BACKGROUND_THREAD
119
+ #define CC_DIRECTOR_IOS_USE_BACKGROUND_THREAD 0
120
+ #endif
121
+
122
+
123
+ #define CC_MAC_USE_DISPLAY_LINK_THREAD 0
124
+ #define CC_MAC_USE_OWN_THREAD 1
125
+ #define CC_MAC_USE_MAIN_THREAD 2
126
+
127
+ /** @def CC_DIRECTOR_MAC_THREAD
128
+ cocos2d-mac can run on its own thread, on the Display Link thread, or in the main thread.
129
+ If you are developing a game, the Display Link or Own thread are the best alternatives.
130
+ If you are developing an editor that uses AppKit, you might need to use the Main Thread (only if you are lazy and don't want to create a sync queue).
131
+
132
+ Options:
133
+ CC_MAC_USE_DISPLAY_LINK_THREAD (default)
134
+ CC_MAC_USE_OWN_THREAD
135
+ CC_MAC_USE_MAIN_THREAD
136
+
137
+ Only valid for cocos2d-mac. Not supported on cocos2d-ios.
138
+
139
+ */
140
+ #ifndef CC_DIRECTOR_MAC_THREAD
141
+ #define CC_DIRECTOR_MAC_THREAD CC_MAC_USE_DISPLAY_LINK_THREAD
142
+ #endif
143
+
144
+ /** @def CC_NODE_RENDER_SUBPIXEL
145
+ If enabled, the CCNode objects (CCSprite, CCLabel,etc) will be able to render in subpixels.
146
+ If disabled, integer pixels will be used.
147
+
148
+ To enable set it to 1. Enabled by default.
149
+ */
150
+ #ifndef CC_NODE_RENDER_SUBPIXEL
151
+ #define CC_NODE_RENDER_SUBPIXEL 1
152
+ #endif
153
+
154
+ /** @def CC_SPRITEBATCHNODE_RENDER_SUBPIXEL
155
+ If enabled, the CCSprite objects rendered with CCSpriteBatchNode will be able to render in subpixels.
156
+ If disabled, integer pixels will be used.
157
+
158
+ To enable set it to 1. Enabled by default.
159
+ */
160
+ #ifndef CC_SPRITEBATCHNODE_RENDER_SUBPIXEL
161
+ #define CC_SPRITEBATCHNODE_RENDER_SUBPIXEL 1
162
+ #endif
163
+
164
+ /** @def CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP
165
+ Use GL_TRIANGLE_STRIP instead of GL_TRIANGLES when rendering the texture atlas.
166
+ It seems it is the recommend way, but it is much slower, so, enable it at your own risk
167
+
168
+ To enable set it to a value different than 0. Disabled by default.
169
+
170
+ */
171
+ #ifndef CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP
172
+ #define CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP 0
173
+ #endif
174
+
175
+ /** @def CC_TEXTURE_ATLAS_USE_VAO
176
+ By default, CCTextureAtlas (used by many cocos2d classes) will use VAO (Vertex Array Objects).
177
+ Apple recommends its usage but they might consume a lot of memory, specially if you use many of them.
178
+ So for certain cases, where you might need hundreds of VAO objects, it might be a good idea to disable it.
179
+
180
+ To disable it set it to 0. Enabled by default.
181
+
182
+ */
183
+ #ifndef CC_TEXTURE_ATLAS_USE_VAO
184
+ #define CC_TEXTURE_ATLAS_USE_VAO 1
185
+ #endif
186
+
187
+
188
+ /** @def CC_USE_LA88_LABELS
189
+ If enabled, it will use LA88 (Luminance Alpha 16-bit textures) for CCLabelTTF objects.
190
+ If it is disabled, it will use A8 (Alpha 8-bit textures).
191
+ LA88 textures are 6% faster than A8 textures, but they will consume 2x memory.
192
+
193
+ This feature is enabled by default.
194
+
195
+ @since v0.99.5
196
+ */
197
+ #ifndef CC_USE_LA88_LABELS
198
+ #define CC_USE_LA88_LABELS 1
199
+ #endif
200
+
201
+ /** @def CC_SPRITE_DEBUG_DRAW
202
+ If enabled, all subclasses of CCSprite will draw a bounding box.
203
+ Useful for debugging purposes only. It is recommened to leave it disabled.
204
+
205
+ If the CCSprite is being drawn by a CCSpriteBatchNode, the bounding box might be a bit different.
206
+ To enable set it to a value different than 0. Disabled by default:
207
+ 0 -- disabled
208
+ 1 -- draw bounding box
209
+ 2 -- draw texture box
210
+ */
211
+ #ifndef CC_SPRITE_DEBUG_DRAW
212
+ #define CC_SPRITE_DEBUG_DRAW 0
213
+ #endif
214
+
215
+
216
+ /** @def CC_LABELBMFONT_DEBUG_DRAW
217
+ If enabled, all subclasses of CCLabelBMFont will draw a bounding box
218
+ Useful for debugging purposes only. It is recommened to leave it disabled.
219
+
220
+ To enable set it to a value different than 0. Disabled by default.
221
+ */
222
+ #ifndef CC_LABELBMFONT_DEBUG_DRAW
223
+ #define CC_LABELBMFONT_DEBUG_DRAW 0
224
+ #endif
225
+
226
+ /** @def CC_LABELATLAS_DEBUG_DRAW
227
+ If enabled, all subclasses of CCLabeltAtlas will draw a bounding box
228
+ Useful for debugging purposes only. It is recommened to leave it disabled.
229
+
230
+ To enable set it to a value different than 0. Disabled by default.
231
+ */
232
+ #ifndef CC_LABELATLAS_DEBUG_DRAW
233
+ #define CC_LABELATLAS_DEBUG_DRAW 0
234
+ #endif
235
+
236
+ /** @def CC_ENABLE_PROFILERS
237
+ If enabled, it will activate various profilers within cocos2d. This statistical data will be saved in the CCProfiler singleton.
238
+ In order to display saved data, you have to call the CC_PROFILER_DISPLAY_TIMERS() macro.
239
+ Useful for profiling purposes only. If unsure, leave it disabled.
240
+
241
+ To enable set it to a value different than 0. Disabled by default.
242
+ */
243
+ #ifndef CC_ENABLE_PROFILERS
244
+ #define CC_ENABLE_PROFILERS 0
245
+ #endif
@@ -0,0 +1,300 @@
1
+ /*
2
+ * cocos2d for iPhone: http://www.cocos2d-iphone.org
3
+ *
4
+ * Copyright (c) 2012 Ricardo Quesada
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */
24
+
25
+ #import "ccConfig.h"
26
+
27
+ #if CC_ENABLE_DEPRECATED
28
+
29
+ #import "ccTypes.h"
30
+ #import "ccMacros.h"
31
+ #import "CCMenu.h"
32
+ #import "CCDirector.h"
33
+ #import "CCSprite.h"
34
+ #import "CCGLProgram.h"
35
+ #import "CCAnimation.h"
36
+ #import "CCScheduler.h"
37
+ #import "CCActionManager.h"
38
+ #import "CCActionInterval.h"
39
+ #import "CCRenderTexture.h"
40
+ #import "CCSpriteFrameCache.h"
41
+ #import "CCLabelTTF.h"
42
+ #import "CCTexture2D.h"
43
+ #import "Support/CCFileUtils.h"
44
+ #import "Platforms/Mac/CCDirectorMac.h"
45
+ #import "Platforms/iOS/CCTouchDispatcher.h"
46
+ #import "Platforms/iOS/CCDirectorIOS.h"
47
+
48
+
49
+ /*
50
+ *
51
+ * IMPORTANT
52
+ *
53
+ * See the ccDrepecated.m file to see the name of the new methods
54
+ *
55
+ */
56
+
57
+ // CCLOGERROR is no longer supported.
58
+ #define CCLOGERROR CCLOGWARN
59
+
60
+ // ccTypes.h
61
+ enum {
62
+ #ifdef __CC_PLATFORM_IOS
63
+ kCCResolutionStandard DEPRECATED_ATTRIBUTE = kCCResolutioniPhone,
64
+ kCCResolutionRetinaDisplay DEPRECATED_ATTRIBUTE = kCCResolutioniPhoneRetinaDisplay,
65
+ #endif // __CC_PLATFORM_IOS
66
+ kCCMenuTouchPriority DEPRECATED_ATTRIBUTE = kCCMenuHandlerPriority,
67
+ };
68
+
69
+ // CCRenderTexture.h
70
+ enum {
71
+ kCCImageFormatJPG DEPRECATED_ATTRIBUTE = kCCImageFormatJPEG,
72
+ kCCImageFormatRawData UNAVAILABLE_ATTRIBUTE,
73
+ };
74
+
75
+ enum {
76
+ CCTextAlignmentLeft DEPRECATED_ATTRIBUTE = kCCTextAlignmentLeft,
77
+ CCTextAlignmentCenter DEPRECATED_ATTRIBUTE = kCCTextAlignmentCenter,
78
+ CCTextAlignmentRight DEPRECATED_ATTRIBUTE = kCCTextAlignmentRight,
79
+
80
+ CCVerticalTextAlignmentTop DEPRECATED_ATTRIBUTE = kCCVerticalTextAlignmentTop,
81
+ CCVerticalTextAlignmentMiddle DEPRECATED_ATTRIBUTE = kCCVerticalTextAlignmentCenter,
82
+ CCVerticalTextAlignmentBottom DEPRECATED_ATTRIBUTE = kCCVerticalTextAlignmentBottom,
83
+
84
+ CCLineBreakModeWordWrap DEPRECATED_ATTRIBUTE = kCCLineBreakModeWordWrap,
85
+ CCLineBreakModeCharacterWrap DEPRECATED_ATTRIBUTE = kCCLineBreakModeCharacterWrap,
86
+ CCLineBreakModeClip DEPRECATED_ATTRIBUTE = kCCLineBreakModeClip,
87
+ CCLineBreakModeHeadTruncation DEPRECATED_ATTRIBUTE = kCCLineBreakModeHeadTruncation,
88
+ CCLineBreakModeTailTruncation DEPRECATED_ATTRIBUTE = kCCLineBreakModeTailTruncation,
89
+ CCLineBreakModeMiddleTruncation DEPRECATED_ATTRIBUTE = kCCLineBreakModeMiddleTruncation,
90
+ };
91
+
92
+ //DEPRECATED_ATTRIBUTE typedef ccTextAlignment CCTextAlignment;
93
+ //
94
+ //DEPRECATED_ATTRIBUTE typedef ccVerticalTextAlignment CCVerticalTextAlignment;
95
+
96
+ // Free functions
97
+ void ccGLUniformModelViewProjectionMatrix(CCGLProgram* program) DEPRECATED_ATTRIBUTE;
98
+
99
+ // Renamed classes
100
+ DEPRECATED_ATTRIBUTE @interface EAGLView : CCGLView
101
+ @end
102
+
103
+ DEPRECATED_ATTRIBUTE @interface MacView : CCGLView
104
+ @end
105
+
106
+ // hack to prevent "incopatible pointer type"
107
+ #define GLProgram CCGLProgram
108
+
109
+ // Extensions
110
+ @interface CCScheduler (Deprecated)
111
+ // new: [director scheduler]
112
+ +(CCScheduler*) sharedScheduler DEPRECATED_ATTRIBUTE;
113
+ @end
114
+
115
+ @interface CCActionManager (Deprecated)
116
+ // new: [director actionManager]
117
+ +(CCActionManager*) sharedManager DEPRECATED_ATTRIBUTE;
118
+ @end
119
+
120
+ #if __CC_PLATFORM_IOS
121
+ @interface CCTouchDispatcher (Deprecated)
122
+ // new: [director touchDispatcher]
123
+ +(CCTouchDispatcher*) sharedDispatcher DEPRECATED_ATTRIBUTE;
124
+ @end
125
+ #elif __CC_PLATFORM_MAC
126
+ @interface CCEventDispatcher (Deprecated)
127
+ // new: [director eventDispatcher]
128
+ +(CCEventDispatcher*) sharedDispatcher DEPRECATED_ATTRIBUTE;
129
+ @end
130
+ #endif // __CC_PLATFORM_MAC
131
+
132
+ @interface CCDirector (Deprecated)
133
+ // new: setView:
134
+ -(void) setOpenGLView:(CCGLView*)view DEPRECATED_ATTRIBUTE;
135
+ // new: view
136
+ -(CCGLView*) openGLView DEPRECATED_ATTRIBUTE;
137
+ // new: setDisplayStats:
138
+ -(void) setDisplayFPS:(BOOL)display DEPRECATED_ATTRIBUTE;
139
+ @end
140
+
141
+ @interface CCNode (Deprecated)
142
+ -(void) setIsRelativeAnchorPoint:(BOOL)value DEPRECATED_ATTRIBUTE;
143
+ -(BOOL) isRelativeAnchorPoint DEPRECATED_ATTRIBUTE;
144
+ @end
145
+
146
+ @interface CCSprite (Deprecated)
147
+ // new: spriteWithTexture:rect:
148
+ +(id) spriteWithBatchNode:(CCSpriteBatchNode*)node rect:(CGRect)rect DEPRECATED_ATTRIBUTE;
149
+ // new: initWithTexture:rect:
150
+ -(id) initWithBatchNode:(CCSpriteBatchNode*)node rect:(CGRect)rect DEPRECATED_ATTRIBUTE;
151
+ // displayFrame
152
+ -(CCSpriteFrame*) displayedFrame DEPRECATED_ATTRIBUTE;
153
+ @end
154
+
155
+ @interface CCMenuItemAtlasFont (Deprecated)
156
+ // new itemWithStirng:charmapFile:itemWidth:itemHeight:startCharMap
157
+ +(id) itemFromString: (NSString*) value charMapFile:(NSString*) charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap DEPRECATED_ATTRIBUTE;
158
+ // new itemWithStirng:charmapFile:itemWidth:itemHeight:startCharMap:target:selector
159
+ +(id) itemFromString: (NSString*) value charMapFile:(NSString*) charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap target:(id) rec selector:(SEL) cb DEPRECATED_ATTRIBUTE;
160
+ // new itemWithStirng:charmapFile:itemWidth:itemHeight:startCharMap:block
161
+ +(id) itemFromString: (NSString*) value charMapFile:(NSString*) charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
162
+ // new initWithStirng:charmapFile:itemWidth:itemHeight:startCharMap:target:selector
163
+ -(id) initFromString: (NSString*) value charMapFile:(NSString*) charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap target:(id) rec selector:(SEL) cb DEPRECATED_ATTRIBUTE;
164
+ // new initWithStirng:charmapFile:itemWidth:itemHeight:startCharMap:block
165
+ -(id) initFromString: (NSString*) value charMapFile:(NSString*) charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
166
+ @end
167
+
168
+
169
+ @interface CCMenuItemFont (Deprecated)
170
+ // new: itemWithString:
171
+ +(id) itemFromString: (NSString*) value DEPRECATED_ATTRIBUTE;
172
+ // new: itemWithString:target:selector
173
+ +(id) itemFromString: (NSString*) value target:(id) r selector:(SEL) s DEPRECATED_ATTRIBUTE;
174
+ // new: itemWithString:block:
175
+ +(id) itemFromString: (NSString*) value block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
176
+ // new: initWithString:target:selector
177
+ -(id) initFromString: (NSString*) value target:(id) r selector:(SEL) s DEPRECATED_ATTRIBUTE;
178
+ // new: initWithString:block:
179
+ -(id) initFromString: (NSString*) value block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
180
+ @end
181
+
182
+ @interface CCMenuItemSprite (Deprecated)
183
+ +(id) itemFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite DEPRECATED_ATTRIBUTE;
184
+ +(id) itemFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite target:(id)target selector:(SEL)selector DEPRECATED_ATTRIBUTE;
185
+ +(id) itemFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite disabledSprite:(CCNode<CCRGBAProtocol>*)disabledSprite target:(id)target selector:(SEL)selector DEPRECATED_ATTRIBUTE;
186
+ +(id) itemFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
187
+ +(id) itemFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite disabledSprite:(CCNode<CCRGBAProtocol>*)disabledSprite block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
188
+
189
+ -(id) initFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite disabledSprite:(CCNode<CCRGBAProtocol>*)disabledSprite target:(id)target selector:(SEL)selector DEPRECATED_ATTRIBUTE;
190
+ -(id) initFromNormalSprite:(CCNode<CCRGBAProtocol>*)normalSprite selectedSprite:(CCNode<CCRGBAProtocol>*)selectedSprite disabledSprite:(CCNode<CCRGBAProtocol>*)disabledSprite block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
191
+ @end
192
+
193
+ @interface CCMenuItemImage (Deprecated)
194
+ // new: itemWithNormalImage:selectedImage:
195
+ +(id) itemFromNormalImage: (NSString*)value selectedImage:(NSString*) value2 DEPRECATED_ATTRIBUTE;
196
+ // new: itemWithNormalImage:selectedImage:target:selector
197
+ +(id) itemFromNormalImage: (NSString*)value selectedImage:(NSString*) value2 target:(id) r selector:(SEL) s DEPRECATED_ATTRIBUTE;
198
+ // new: itemWithNormalImage:selectedImage:disabledImage:target:selector
199
+ +(id) itemFromNormalImage: (NSString*)value selectedImage:(NSString*) value2 disabledImage:(NSString*) value3 target:(id) r selector:(SEL) s DEPRECATED_ATTRIBUTE;
200
+ // new: itemWithNormalImage:selectedImage:block
201
+ +(id) itemFromNormalImage: (NSString*)value selectedImage:(NSString*) value2 block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
202
+ // new: itemWithNormalImage:selectedImage:disabledImage:block
203
+ +(id) itemFromNormalImage: (NSString*)value selectedImage:(NSString*) value2 disabledImage:(NSString*) value3 block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
204
+ // new: initWithNormalImage:selectedImage:disabledImage:target:selector
205
+ -(id) initFromNormalImage: (NSString*) value selectedImage:(NSString*)value2 disabledImage:(NSString*) value3 target:(id) r selector:(SEL) s DEPRECATED_ATTRIBUTE;
206
+ // new: initWithNormalImage:selectedImage:disabledImage:block
207
+ -(id) initFromNormalImage: (NSString*) value selectedImage:(NSString*)value2 disabledImage:(NSString*) value3 block:(void(^)(id sender))block DEPRECATED_ATTRIBUTE;
208
+ @end
209
+
210
+ @interface CCAnimation (Deprecated)
211
+ +(id) animationWithFrames:(NSArray*)arrayOfSpriteFrameNames DEPRECATED_ATTRIBUTE;
212
+ +(id) animationWithFrames:(NSArray*)arrayOfSpriteFrameNames delay:(float)delay DEPRECATED_ATTRIBUTE;
213
+ -(id) initWithFrames:(NSArray*)arrayOfSpriteFrameNames DEPRECATED_ATTRIBUTE;
214
+ -(id) initWithFrames:(NSArray *)arrayOfSpriteFrameNames delay:(float)delay DEPRECATED_ATTRIBUTE;
215
+ -(void) addFrame:(CCSpriteFrame*)frame DEPRECATED_ATTRIBUTE;
216
+ -(void) addFrameWithFilename:(NSString*)filename DEPRECATED_ATTRIBUTE;
217
+ -(void) addFrameWithTexture:(CCTexture2D*)texture rect:(CGRect)rect DEPRECATED_ATTRIBUTE;
218
+ @end
219
+
220
+ @interface CCAnimate (Deprecated)
221
+ // new: actionWithAnimation:
222
+ +(id) actionWithAnimation:(CCAnimation*)animation restoreOriginalFrame:(BOOL)restoreOriginalFrame DEPRECATED_ATTRIBUTE;
223
+ // new: actiontWithAnimation:
224
+ +(id) actionWithDuration:(ccTime)duration animation:(CCAnimation*)animation restoreOriginalFrame:(BOOL)restoreOriginalFrame DEPRECATED_ATTRIBUTE;
225
+ // new: initWithAnimation:
226
+ -(id) initWithAnimation:(CCAnimation*) a restoreOriginalFrame:(BOOL)restoreOriginalFrame DEPRECATED_ATTRIBUTE;
227
+ // new: initWithAnimation:
228
+ -(id) initWithDuration:(ccTime)duration animation:(CCAnimation*)animation restoreOriginalFrame:(BOOL)restoreOriginalFrame DEPRECATED_ATTRIBUTE;
229
+ @end
230
+
231
+ @interface CCSequence (Deprecated)
232
+ // new: actionWithArray
233
+ +(id) actionsWithArray: (NSArray*) actions DEPRECATED_ATTRIBUTE;
234
+ @end
235
+
236
+ @interface CCSpawn (Deprecated)
237
+ // new: actionWithArray
238
+ +(id) actionsWithArray: (NSArray*) actions DEPRECATED_ATTRIBUTE;
239
+ @end
240
+
241
+
242
+ @interface CCRenderTexture (Deprecated)
243
+ // new: saveToFile:
244
+ -(BOOL)saveBuffer:(NSString*)name DEPRECATED_ATTRIBUTE;
245
+ // new: saveToFile:format:
246
+ -(BOOL)saveBuffer:(NSString*)name format:(int)format DEPRECATED_ATTRIBUTE;
247
+ // new: -- not implemented on v2.0
248
+ -(NSData*)getUIImageAsDataFromBuffer:(int) format UNAVAILABLE_ATTRIBUTE;
249
+ #if __CC_PLATFORM_IOS
250
+ // new: getUIImage
251
+ -(UIImage *)getUIImageFromBuffer DEPRECATED_ATTRIBUTE;
252
+ #endif
253
+ @end
254
+
255
+ @interface CCFileUtils (Deprecated)
256
+
257
+ // new: -(NSString*) fullPathFromRelativePath: (instance method, not class method)
258
+ +(NSString*) fullPathFromRelativePath:(NSString*) relPath DEPRECATED_ATTRIBUTE;
259
+ // new: -(NSString*) fullPathFromRelativePath:resolutionType (instance method, not class method)
260
+ +(NSString*) fullPathFromRelativePath:(NSString*)relPath resolutionType:(ccResolutionType*)resolutionType DEPRECATED_ATTRIBUTE;
261
+
262
+ #ifdef __CC_PLATFORM_IOS
263
+ // new: -(NSString*) removeSuffixFromFile: (instance method, not class method)
264
+ +(NSString *)removeSuffixFromFile:(NSString*) path DEPRECATED_ATTRIBUTE;
265
+ // new: -(BOOL) iPhoneRetinaDisplayFileExistsAtPath: (instance method, not class method)
266
+ +(BOOL) iPhoneRetinaDisplayFileExistsAtPath:(NSString*)filename DEPRECATED_ATTRIBUTE;
267
+ // new: -(BOOL) iPadFileExistsAtPath: (instance method, not class method)
268
+ +(BOOL) iPadFileExistsAtPath:(NSString*)filename DEPRECATED_ATTRIBUTE;
269
+ // new: -(BOOL) iPadRetinaDisplayFileExistsAtPath: (instance method, not class method)
270
+ +(BOOL) iPadRetinaDisplayFileExistsAtPath:(NSString*)filename DEPRECATED_ATTRIBUTE;
271
+ // new: -(void) setiPhoneRetinaDisplaySuffix: (instance method, not class method)
272
+ +(void) setRetinaDisplaySuffix:(NSString*)suffix DEPRECATED_ATTRIBUTE;
273
+ #endif //__CC_PLATFORM_IOS
274
+ @end
275
+
276
+
277
+ @interface CCSpriteFrameCache (Deprecated)
278
+ -(void) addSpriteFramesWithDictionary:(NSDictionary*)dictionary textureFile:(NSString*)filename DEPRECATED_ATTRIBUTE;
279
+ -(void) addSpriteFramesWithFile:(NSString*)plist textureFile:(NSString*)filename DEPRECATED_ATTRIBUTE;
280
+ @end
281
+
282
+
283
+ @interface CCLabelTTF (Deprecated)
284
+ // new: + (id) labelWithString:(NSString*)string dimensions:hAlignment:fontName:fontSize:
285
+ + (id) labelWithString:(NSString*)string dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
286
+ // new: + (id) labelWithString:(NSString*)string dimensions:hAlignment:lineBreakMode:fontName:fontSize:
287
+ + (id) labelWithString:(NSString*)string dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment lineBreakMode:(CCLineBreakMode)lineBreakMode fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
288
+ // new: + (id) initWithString:(NSString*)string dimensions:hAlignment:fontName:fontSize:
289
+ - (id) initWithString:(NSString*)string dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
290
+ // new: + (id) initWithString:(NSString*)string dimensions:hAlignment:lineBreakMode:fontName:fontSize:
291
+ - (id) initWithString:(NSString*)str dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment lineBreakMode:(CCLineBreakMode)lineBreakMode fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
292
+ @end
293
+
294
+ @interface CCTexture2D (Deprecated)
295
+ - (id) initWithString:(NSString*)string dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment lineBreakMode:(CCLineBreakMode)lineBreakMode fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
296
+ - (id) initWithString:(NSString*)string dimensions:(CGSize)dimensions alignment:(CCTextAlignment)alignment fontName:(NSString*)name fontSize:(CGFloat)size DEPRECATED_ATTRIBUTE;
297
+ @end
298
+
299
+ #endif // CC_ENABLE_DEPRECATED
300
+