diff options
Diffstat (limited to 'libs/cocos2d/cocos2d.h')
-rwxr-xr-x | libs/cocos2d/cocos2d.h | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/libs/cocos2d/cocos2d.h b/libs/cocos2d/cocos2d.h new file mode 100755 index 0000000..fed2a9b --- /dev/null +++ b/libs/cocos2d/cocos2d.h | |||
@@ -0,0 +1,161 @@ | |||
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 | /** @mainpage cocos2d for iPhone API reference | ||
27 | * | ||
28 | * @image html Icon.png | ||
29 | * | ||
30 | * @section intro Introduction | ||
31 | * This is cocos2d API reference | ||
32 | * | ||
33 | * The programming guide is hosted here: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:index | ||
34 | * | ||
35 | * <hr> | ||
36 | * | ||
37 | * @todo A native english speaker should check the grammar. We need your help! | ||
38 | * | ||
39 | */ | ||
40 | |||
41 | // 0x00 HI ME LO | ||
42 | // 00 01 00 00 | ||
43 | #define COCOS2D_VERSION 0x00010000 | ||
44 | |||
45 | #import <Availability.h> | ||
46 | |||
47 | // | ||
48 | // all cocos2d include files | ||
49 | // | ||
50 | #import "ccConfig.h" // should be included first | ||
51 | |||
52 | #import "CCActionManager.h" | ||
53 | #import "CCAction.h" | ||
54 | #import "CCActionInstant.h" | ||
55 | #import "CCActionInterval.h" | ||
56 | #import "CCActionEase.h" | ||
57 | #import "CCActionCamera.h" | ||
58 | #import "CCActionTween.h" | ||
59 | #import "CCActionEase.h" | ||
60 | #import "CCActionTiledGrid.h" | ||
61 | #import "CCActionGrid3D.h" | ||
62 | #import "CCActionGrid.h" | ||
63 | #import "CCActionProgressTimer.h" | ||
64 | #import "CCActionPageTurn3D.h" | ||
65 | |||
66 | #import "CCAnimation.h" | ||
67 | #import "CCAnimationCache.h" | ||
68 | #import "CCSprite.h" | ||
69 | #import "CCSpriteFrame.h" | ||
70 | #import "CCSpriteBatchNode.h" | ||
71 | #import "CCSpriteFrameCache.h" | ||
72 | |||
73 | #import "CCLabelTTF.h" | ||
74 | #import "CCLabelBMFont.h" | ||
75 | #import "CCLabelAtlas.h" | ||
76 | |||
77 | #import "CCParticleSystem.h" | ||
78 | #import "CCParticleSystemPoint.h" | ||
79 | #import "CCParticleSystemQuad.h" | ||
80 | #import "CCParticleExamples.h" | ||
81 | |||
82 | #import "CCTexture2D.h" | ||
83 | #import "CCTexturePVR.h" | ||
84 | #import "CCTextureCache.h" | ||
85 | #import "CCTextureAtlas.h" | ||
86 | |||
87 | #import "CCTransition.h" | ||
88 | #import "CCTransitionPageTurn.h" | ||
89 | #import "CCTransitionRadial.h" | ||
90 | |||
91 | #import "CCTMXTiledMap.h" | ||
92 | #import "CCTMXLayer.h" | ||
93 | #import "CCTMXObjectGroup.h" | ||
94 | #import "CCTMXXMLParser.h" | ||
95 | #import "CCTileMapAtlas.h" | ||
96 | |||
97 | #import "CCLayer.h" | ||
98 | #import "CCMenu.h" | ||
99 | #import "CCMenuItem.h" | ||
100 | #import "CCDrawingPrimitives.h" | ||
101 | #import "CCScene.h" | ||
102 | #import "CCScheduler.h" | ||
103 | #import "CCBlockSupport.h" | ||
104 | #import "CCCamera.h" | ||
105 | #import "CCProtocols.h" | ||
106 | #import "CCNode.h" | ||
107 | #import "CCDirector.h" | ||
108 | #import "CCAtlasNode.h" | ||
109 | #import "CCGrabber.h" | ||
110 | #import "CCGrid.h" | ||
111 | #import "CCParallaxNode.h" | ||
112 | #import "CCRenderTexture.h" | ||
113 | #import "CCMotionStreak.h" | ||
114 | #import "CCConfiguration.h" | ||
115 | |||
116 | // | ||
117 | // cocos2d macros | ||
118 | // | ||
119 | #import "ccTypes.h" | ||
120 | #import "ccMacros.h" | ||
121 | |||
122 | |||
123 | // Platform common | ||
124 | #import "Platforms/CCGL.h" | ||
125 | #import "Platforms/CCNS.h" | ||
126 | |||
127 | #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED | ||
128 | #import "Platforms/iOS/CCTouchDispatcher.h" | ||
129 | #import "Platforms/iOS/CCTouchDelegateProtocol.h" | ||
130 | #import "Platforms/iOS/CCTouchHandler.h" | ||
131 | #import "Platforms/iOS/EAGLView.h" | ||
132 | #import "Platforms/iOS/CCDirectorIOS.h" | ||
133 | |||
134 | #elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED) | ||
135 | #import "Platforms/Mac/MacGLView.h" | ||
136 | #import "Platforms/Mac/CCDirectorMac.h" | ||
137 | #endif | ||
138 | |||
139 | // | ||
140 | // cocos2d helper files | ||
141 | // | ||
142 | #import "Support/OpenGL_Internal.h" | ||
143 | #import "Support/CCFileUtils.h" | ||
144 | #import "Support/CGPointExtension.h" | ||
145 | #import "Support/ccCArray.h" | ||
146 | #import "Support/CCArray.h" | ||
147 | #import "Support/ccUtils.h" | ||
148 | |||
149 | #if CC_ENABLE_PROFILERS | ||
150 | #import "Support/CCProfiling.h" | ||
151 | #endif // CC_ENABLE_PROFILERS | ||
152 | |||
153 | |||
154 | // free functions | ||
155 | NSString * cocos2dVersion(void); | ||
156 | |||
157 | #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED | ||
158 | #ifndef __IPHONE_4_0 | ||
159 | #error "If you are targeting iPad, you should set BASE SDK = 4.0 (or 4.1, or 4.2), and set the 'iOS deploy target' = 3.2" | ||
160 | #endif | ||
161 | #endif | ||