2010-07-06 15:46:45 +08:00
|
|
|
/****************************************************************************
|
2011-03-19 10:59:01 +08:00
|
|
|
Copyright (c) 2008-2010 Ricardo Quesada
|
2014-01-07 11:25:07 +08:00
|
|
|
Copyright (c) 2010-2012 cocos2d-x.org
|
2011-07-05 14:51:17 +08:00
|
|
|
Copyright (c) 2011 Zynga Inc.
|
2014-01-07 11:25:07 +08:00
|
|
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
2010-07-06 15:46:45 +08:00
|
|
|
|
2010-07-06 20:55:05 +08:00
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
2010-07-06 15:46:45 +08:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2010-07-06 10:19:51 +08:00
|
|
|
#ifndef __COCOS2D_H__
|
|
|
|
#define __COCOS2D_H__
|
|
|
|
|
2012-06-18 16:16:09 +08:00
|
|
|
// 0x00 HI ME LO
|
2013-09-19 07:56:25 +08:00
|
|
|
// 00 03 00 00
|
|
|
|
#define COCOS2D_VERSION 0x00030000
|
2012-06-18 16:16:09 +08:00
|
|
|
|
2010-07-06 10:19:51 +08:00
|
|
|
//
|
|
|
|
// all cocos2d include files
|
|
|
|
//
|
2012-04-25 16:18:04 +08:00
|
|
|
#include "ccConfig.h"
|
|
|
|
|
|
|
|
// actions
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCAction.h"
|
|
|
|
#include "CCActionInterval.h"
|
|
|
|
#include "CCActionCamera.h"
|
|
|
|
#include "CCActionManager.h"
|
|
|
|
#include "CCActionEase.h"
|
|
|
|
#include "CCActionPageTurn3D.h"
|
|
|
|
#include "CCActionGrid.h"
|
|
|
|
#include "CCActionProgressTimer.h"
|
|
|
|
#include "CCActionGrid3D.h"
|
|
|
|
#include "CCActionTiledGrid.h"
|
|
|
|
#include "CCActionInstant.h"
|
|
|
|
#include "CCActionTween.h"
|
|
|
|
#include "CCActionCatmullRom.h"
|
2014-02-17 11:01:17 +08:00
|
|
|
#include "CCTweenFunction.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// base_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCNode.h"
|
|
|
|
#include "CCAtlasNode.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// cocoa
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCAffineTransform.h"
|
2014-02-20 10:53:49 +08:00
|
|
|
#include "CCRef.h"
|
2013-11-28 11:04:39 +08:00
|
|
|
#include "CCVector.h"
|
2013-11-29 16:33:38 +08:00
|
|
|
#include "CCMap.h"
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCGeometry.h"
|
|
|
|
#include "CCAutoreleasePool.h"
|
|
|
|
#include "CCNS.h"
|
|
|
|
#include "CCData.h"
|
2013-12-04 10:33:27 +08:00
|
|
|
#include "CCValue.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2012-11-09 12:08:18 +08:00
|
|
|
// draw nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCDrawingPrimitives.h"
|
|
|
|
#include "CCDrawNode.h"
|
2012-11-09 12:08:18 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// effects
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCGrabber.h"
|
|
|
|
#include "CCGrid.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// include
|
2012-04-25 18:17:04 +08:00
|
|
|
#include "CCEventType.h"
|
|
|
|
#include "CCProtocols.h"
|
|
|
|
#include "ccConfig.h"
|
|
|
|
#include "ccMacros.h"
|
|
|
|
#include "ccTypes.h"
|
2013-07-18 13:38:23 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// label_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCLabelAtlas.h"
|
|
|
|
#include "CCLabelTTF.h"
|
|
|
|
#include "CCLabelBMFont.h"
|
|
|
|
#include "CCLabel.h"
|
2014-04-10 17:31:42 +08:00
|
|
|
#include "CCFontFNT.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// layers_scenes_transitions_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCLayer.h"
|
|
|
|
#include "CCScene.h"
|
|
|
|
#include "CCTransition.h"
|
|
|
|
#include "CCTransitionPageTurn.h"
|
|
|
|
#include "CCTransitionProgress.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// menu_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCMenu.h"
|
|
|
|
#include "CCMenuItem.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// misc_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCClippingNode.h"
|
|
|
|
#include "CCMotionStreak.h"
|
|
|
|
#include "CCProgressTimer.h"
|
|
|
|
#include "CCRenderTexture.h"
|
2014-01-03 14:51:36 +08:00
|
|
|
#include "CCNodeGrid.h"
|
2010-08-25 10:19:20 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// particle_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCParticleBatchNode.h"
|
|
|
|
#include "CCParticleSystem.h"
|
|
|
|
#include "CCParticleExamples.h"
|
|
|
|
#include "CCParticleSystemQuad.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2013-12-17 15:40:50 +08:00
|
|
|
// new renderer
|
2013-12-18 10:41:09 +08:00
|
|
|
#include "renderer/CCCustomCommand.h"
|
|
|
|
#include "renderer/CCGroupCommand.h"
|
|
|
|
#include "renderer/CCMaterialManager.h"
|
|
|
|
#include "renderer/CCQuadCommand.h"
|
|
|
|
#include "renderer/CCRenderCommand.h"
|
|
|
|
#include "renderer/CCRenderCommandPool.h"
|
|
|
|
#include "renderer/CCRenderMaterial.h"
|
|
|
|
#include "renderer/CCRenderer.h"
|
2013-12-17 15:40:50 +08:00
|
|
|
|
2013-09-10 10:06:51 +08:00
|
|
|
// physics
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCPhysicsBody.h"
|
|
|
|
#include "CCPhysicsContact.h"
|
|
|
|
#include "CCPhysicsShape.h"
|
|
|
|
#include "CCPhysicsJoint.h"
|
|
|
|
#include "CCPhysicsWorld.h"
|
2013-09-10 10:06:51 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// platform
|
2013-02-16 19:36:21 +08:00
|
|
|
#include "platform/CCDevice.h"
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "platform/CCCommon.h"
|
|
|
|
#include "platform/CCFileUtils.h"
|
|
|
|
#include "platform/CCImage.h"
|
|
|
|
#include "platform/CCSAXParser.h"
|
|
|
|
#include "platform/CCThread.h"
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCPlatformConfig.h"
|
|
|
|
#include "CCPlatformMacros.h"
|
2012-06-19 13:50:11 +08:00
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
|
|
#include "platform/ios/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/ios/CCGLView.h"
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "platform/ios/CCGL.h"
|
|
|
|
#include "platform/ios/CCStdC.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "platform/android/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/android/CCGLView.h"
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "platform/android/CCGL.h"
|
|
|
|
#include "platform/android/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
2012-06-19 13:50:11 +08:00
|
|
|
|
2012-08-18 05:45:21 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
|
|
|
|
#include "platform/blackberry/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/blackberry/CCGLView.h"
|
2012-08-18 05:45:21 +08:00
|
|
|
#include "platform/blackberry/CCGL.h"
|
|
|
|
#include "platform/blackberry/CCStdC.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/win32/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/desktop/CCGLView.h"
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/win32/CCGL.h"
|
|
|
|
#include "platform/win32/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/mac/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/desktop/CCGLView.h"
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/mac/CCGL.h"
|
|
|
|
#include "platform/mac/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
2012-06-19 13:50:11 +08:00
|
|
|
|
2012-08-02 13:02:59 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/linux/CCApplication.h"
|
2014-01-31 08:51:43 +08:00
|
|
|
#include "platform/desktop/CCGLView.h"
|
2014-01-23 05:05:37 +08:00
|
|
|
#include "platform/linux/CCGL.h"
|
|
|
|
#include "platform/linux/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2014-03-22 21:09:48 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
|
|
|
#include "platform/winrt/CCApplication.h"
|
|
|
|
#include "platform/winrt/CCGLView.h"
|
|
|
|
#include "platform/winrt/CCGL.h"
|
|
|
|
#include "platform/winrt/CCStdC.h"
|
|
|
|
#include "platform/winrt/CCPrecompiledShaders.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WINRT
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
|
|
|
#include "platform/winrt/CCApplication.h"
|
|
|
|
#include "platform/wp8/CCGLView.h"
|
|
|
|
#include "platform/winrt/CCGL.h"
|
|
|
|
#include "platform/winrt/CCStdC.h"
|
|
|
|
#include "platform/winrt/CCPrecompiledShaders.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// script_support
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCScriptSupport.h"
|
2012-02-14 15:13:54 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// shaders
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCGLProgram.h"
|
|
|
|
#include "ccGLStateCache.h"
|
|
|
|
#include "CCShaderCache.h"
|
|
|
|
#include "ccShaders.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// sprite_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCAnimation.h"
|
|
|
|
#include "CCAnimationCache.h"
|
|
|
|
#include "CCSprite.h"
|
|
|
|
#include "CCSpriteBatchNode.h"
|
|
|
|
#include "CCSpriteFrame.h"
|
|
|
|
#include "CCSpriteFrameCache.h"
|
2010-08-05 18:58:38 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// support
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "ccUTF8.h"
|
|
|
|
#include "CCProfiling.h"
|
2013-12-05 10:54:15 +08:00
|
|
|
#include "CCConsole.h"
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCUserDefault.h"
|
|
|
|
#include "CCVertex.h"
|
2012-03-14 14:55:17 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// text_input_node
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCIMEDelegate.h"
|
|
|
|
#include "CCIMEDispatcher.h"
|
|
|
|
#include "CCTextFieldTTF.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// textures
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCTexture2D.h"
|
|
|
|
#include "CCTextureAtlas.h"
|
|
|
|
#include "CCTextureCache.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2012-08-03 11:16:34 +08:00
|
|
|
// tilemap_parallax_nodes
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCParallaxNode.h"
|
|
|
|
#include "CCTMXLayer.h"
|
|
|
|
#include "CCTMXObjectGroup.h"
|
|
|
|
#include "CCTMXTiledMap.h"
|
|
|
|
#include "CCTMXXMLParser.h"
|
|
|
|
#include "CCTileMapAtlas.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2013-09-03 18:22:03 +08:00
|
|
|
// EventDispatcher
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCEventDispatcher.h"
|
|
|
|
#include "CCEventListenerTouch.h"
|
|
|
|
#include "CCEventTouch.h"
|
|
|
|
#include "CCEventListenerKeyboard.h"
|
|
|
|
#include "CCEventKeyboard.h"
|
2013-10-31 14:19:36 +08:00
|
|
|
#include "CCEventListenerMouse.h"
|
|
|
|
#include "CCEventMouse.h"
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCEventAcceleration.h"
|
|
|
|
#include "CCEventListenerAcceleration.h"
|
|
|
|
#include "CCEventCustom.h"
|
|
|
|
#include "CCEventListenerCustom.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// root
|
|
|
|
#include "CCConfiguration.h"
|
|
|
|
#include "CCDirector.h"
|
|
|
|
#include "CCScheduler.h"
|
2012-04-17 11:12:05 +08:00
|
|
|
|
2013-06-04 17:38:43 +08:00
|
|
|
// component
|
2013-10-14 14:01:00 +08:00
|
|
|
#include "CCComponent.h"
|
|
|
|
#include "CCComponentContainer.h"
|
2013-06-04 17:38:43 +08:00
|
|
|
|
2013-07-18 13:38:23 +08:00
|
|
|
// Deprecated include
|
2014-04-09 22:30:49 +08:00
|
|
|
#include "deprecated/CCDictionary.h"
|
|
|
|
#include "deprecated/CCArray.h"
|
|
|
|
#include "deprecated/CCSet.h"
|
|
|
|
#include "deprecated/CCInteger.h"
|
|
|
|
#include "deprecated/CCFloat.h"
|
|
|
|
#include "deprecated/CCDouble.h"
|
|
|
|
#include "deprecated/CCBool.h"
|
|
|
|
#include "deprecated/CCString.h"
|
|
|
|
#include "deprecated/CCNotificationCenter.h"
|
|
|
|
// CCDeprecated.h must be included at the end
|
2014-04-09 21:18:37 +08:00
|
|
|
#include "deprecated/CCDeprecated.h"
|
2013-07-18 13:38:23 +08:00
|
|
|
|
2014-04-09 22:30:49 +08:00
|
|
|
|
2012-04-18 18:43:45 +08:00
|
|
|
NS_CC_BEGIN
|
2010-08-04 15:46:12 +08:00
|
|
|
|
2012-10-10 15:08:11 +08:00
|
|
|
CC_DLL const char* cocos2dVersion();
|
2011-06-03 15:22:50 +08:00
|
|
|
|
2012-04-18 18:43:45 +08:00
|
|
|
NS_CC_END
|
2010-07-06 10:19:51 +08:00
|
|
|
|
|
|
|
#endif // __COCOS2D_H__
|