2010-07-06 15:46:45 +08:00
|
|
|
/****************************************************************************
|
2011-03-19 10:59:01 +08:00
|
|
|
Copyright (c) 2010-2011 cocos2d-x.org
|
|
|
|
Copyright (c) 2008-2010 Ricardo Quesada
|
2011-07-05 14:51:17 +08:00
|
|
|
Copyright (c) 2011 Zynga 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__
|
|
|
|
|
2011-12-11 12:59:20 +08:00
|
|
|
// 0x00 HI ME LO
|
|
|
|
// 00 01 00 01
|
2011-08-02 15:45:27 +08:00
|
|
|
#define COCOS2D_VERSION 0x00010001
|
|
|
|
|
2010-07-06 10:19:51 +08:00
|
|
|
//
|
|
|
|
// all cocos2d include files
|
|
|
|
//
|
2010-08-25 09:40:31 +08:00
|
|
|
|
|
|
|
#include "ccConfig.h" // should be included first
|
|
|
|
#include "CCAction.h"
|
2011-02-23 16:47:25 +08:00
|
|
|
#include "CCAnimation.h"
|
|
|
|
#include "CCAnimationCache.h"
|
2010-08-30 15:04:46 +08:00
|
|
|
#include "CCActionManager.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCCamera.h"
|
2010-12-22 15:15:04 +08:00
|
|
|
#include "CCActionCamera.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCProtocols.h"
|
|
|
|
#include "CCNode.h"
|
2010-07-06 10:19:51 +08:00
|
|
|
#include "CCDirector.h"
|
2011-05-06 15:31:51 +08:00
|
|
|
#include "CCUserDefault.h"
|
2010-12-22 15:15:04 +08:00
|
|
|
#include "CCActionInstant.h"
|
|
|
|
#include "CCActionInterval.h"
|
|
|
|
#include "CCActionEase.h"
|
2010-12-24 14:00:49 +08:00
|
|
|
#include "CCLabelTTF.h"
|
2010-07-06 10:19:51 +08:00
|
|
|
#include "CCLayer.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCMenu.h"
|
|
|
|
#include "CCMenuItem.h"
|
|
|
|
#include "CCParticleSystem.h"
|
2010-12-31 09:48:48 +08:00
|
|
|
#include "CCParticleSystemPoint.h"
|
2010-12-31 14:56:24 +08:00
|
|
|
#include "CCParticleSystemQuad.h"
|
2010-08-25 11:18:59 +08:00
|
|
|
#include "CCParticleExamples.h"
|
2010-07-06 10:19:51 +08:00
|
|
|
#include "CCScene.h"
|
|
|
|
#include "CCSprite.h"
|
2010-09-09 10:17:38 +08:00
|
|
|
#include "CCSpriteFrameCache.h"
|
2010-07-06 10:19:51 +08:00
|
|
|
#include "CCTextureCache.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCTransition.h"
|
|
|
|
#include "CCTextureAtlas.h"
|
|
|
|
#include "CCLabelAtlas.h"
|
|
|
|
#include "CCAtlasNode.h"
|
2010-12-22 15:15:04 +08:00
|
|
|
#include "CCActionTiledGrid.h"
|
|
|
|
#include "CCActionGrid3D.h"
|
|
|
|
#include "CCActionGrid.h"
|
2010-12-24 14:00:49 +08:00
|
|
|
#include "CCLabelBMFont.h"
|
2010-08-26 11:39:26 +08:00
|
|
|
#include "CCParallaxNode.h"
|
2010-09-01 14:57:55 +08:00
|
|
|
#include "CCTileMapAtlas.h"
|
|
|
|
#include "CCTMXTiledMap.h"
|
|
|
|
#include "CCTMXLayer.h"
|
|
|
|
#include "CCTMXObjectGroup.h"
|
|
|
|
#include "CCTMXXMLParser.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCRenderTexture.h"
|
|
|
|
#include "CCMotionStreak.h"
|
2010-12-22 15:15:04 +08:00
|
|
|
#include "CCActionPageTurn3D.h"
|
2010-12-25 18:07:34 +08:00
|
|
|
#include "CCTransitionPageTurn.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
#include "CCTexture2D.h"
|
2011-07-19 15:14:59 +08:00
|
|
|
#include "CCTexturePVR.h"
|
2010-12-25 18:07:34 +08:00
|
|
|
#include "CCTransitionRadial.h"
|
2010-12-22 15:15:04 +08:00
|
|
|
#include "CCActionProgressTimer.h"
|
2011-07-28 22:09:06 +08:00
|
|
|
#include "CCTouchHandler.h"
|
2010-08-25 10:19:20 +08:00
|
|
|
#include "CCTouchDispatcher.h"
|
2010-08-26 10:53:49 +08:00
|
|
|
#include "CCDrawingPrimitives.h"
|
2010-09-09 16:15:21 +08:00
|
|
|
#include "CCScheduler.h"
|
2011-04-28 10:31:51 +08:00
|
|
|
|
2011-12-11 12:59:20 +08:00
|
|
|
// havn't implement on wophone and marmalade
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2011-04-26 18:04:07 +08:00
|
|
|
#include "CCTextFieldTTF.h"
|
2011-12-11 12:59:20 +08:00
|
|
|
#endif
|
2010-08-25 10:19:20 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// cocoa includes
|
|
|
|
//
|
2011-03-07 17:11:57 +08:00
|
|
|
#include "CCSet.h"
|
|
|
|
#include "CCMutableArray.h"
|
|
|
|
#include "CCMutableDictionary.h"
|
|
|
|
#include "CCObject.h"
|
|
|
|
#include "CCZone.h"
|
|
|
|
#include "CCGeometry.h"
|
|
|
|
#include "CCAffineTransform.h"
|
2010-08-25 10:19:20 +08:00
|
|
|
#include "selector_protocol.h"
|
|
|
|
#include "CCTouch.h"
|
2011-03-07 17:11:57 +08:00
|
|
|
#include "CCPointExtension.h"
|
2010-08-25 10:19:20 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// platform specific
|
|
|
|
//
|
2011-03-07 17:11:57 +08:00
|
|
|
#include "CCApplication.h"
|
|
|
|
#include "CCEGLView.h"
|
|
|
|
#include "CCImage.h"
|
|
|
|
#include "CCFileUtils.h"
|
|
|
|
#include "CCAccelerometer.h"
|
2010-08-25 09:40:31 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// cocos2d macros
|
|
|
|
//
|
|
|
|
#include "ccTypes.h"
|
|
|
|
#include "ccMacros.h"
|
2010-08-05 18:58:38 +08:00
|
|
|
|
2010-12-17 23:44:19 +08:00
|
|
|
namespace cocos2d {
|
2010-08-04 15:46:12 +08:00
|
|
|
|
2010-12-17 23:44:19 +08:00
|
|
|
const char* cocos2dVersion();
|
2011-06-03 15:22:50 +08:00
|
|
|
|
2010-12-17 23:44:19 +08:00
|
|
|
}//namespace cocos2d
|
2010-07-06 10:19:51 +08:00
|
|
|
|
|
|
|
#endif // __COCOS2D_H__
|