to commit some pkg files

This commit is contained in:
RongHong 2011-07-08 18:31:02 +08:00
parent fdf2834b63
commit 1a869e7c3a
7 changed files with 49 additions and 9 deletions

View File

@ -68,6 +68,9 @@ namespace cocos2d {
void step(ccTime dt);
bool isDone(void);
CCActionInterval* reverse(void);
void setInnerAction(CCActionInterval *pAction);
CCActionInterval* getInnerAction();
static CCSpeed* actionWithAction(CCActionInterval *pAction, float fRate);

View File

@ -98,6 +98,9 @@ namespace cocos2d {
void execute();
void startWithTarget(CCNode *pTarget);
CCObject * copyWithZone(cocos2d::CCZone *pZone);
SelectorProtocol* getTargetCallback();
void setTargetCallback(SelectorProtocol* pSel);
};
@ -142,6 +145,9 @@ namespace cocos2d {
CCObject* copyWithZone(CCZone *pZone);
void execute();
CCObject* getObject();
void setObject(CCObject* pObj);
};
}

View File

@ -35,6 +35,8 @@ namespace cocos2d {
// static CCFiniteTimeAction* actions(CCFiniteTimeAction *pAction1, ...);
//用以下方法替代
static CCSequence* actionOneTwo(CCFiniteTimeAction *pActionOne, CCFiniteTimeAction *pActionTwo);
/** helper contructor to create an array of sequenceable actions given an array */
static CCFiniteTimeAction* actionsWithArray(CCArray *actions);
};
@ -50,6 +52,9 @@ namespace cocos2d {
void update(ccTime time);
bool isDone(void);
CCActionInterval* reverse(void);
void setInnerAction(CCFiniteTimeAction *pAction);
CCFiniteTimeAction* getInnerAction();
static CCRepeat* actionWithAction(CCFiniteTimeAction *pAction, unsigned int times);
@ -67,6 +72,10 @@ namespace cocos2d {
void step(ccTime dt);
bool isDone(void);
CCActionInterval* reverse(void);
void setInnerAction(CCActionInterval *pAction);
CCActionInterval* getInnerAction();
static CCRepeatForever* actionWithAction(CCActionInterval *pAction);
};
@ -85,6 +94,9 @@ namespace cocos2d {
//用以下方法替代
static CCSpawn* actionOneTwo(CCFiniteTimeAction *pAction1, CCFiniteTimeAction *pAction2);
/** helper contructor to create an array of spawned actions given an array */
static CCFiniteTimeAction* actionsWithArray(CCArray *actions);
};
class CCRotateTo : public CCActionInterval
@ -137,6 +149,24 @@ namespace cocos2d {
CCActionInterval* reverse(void);
static CCMoveBy* actionWithDuration(ccTime duration, CCPoint position);
};
class CC_DLL CCSkewTo : public CCActionInterval
{
CCSkewTo();
virtual bool initWithDuration(ccTime t, float sx, float sy);
virtual CCObject* copyWithZone(CCZone* pZone);
virtual void startWithTarget(CCNode *pTarget);
virtual void update(ccTime time);
static CCSkewTo* actionWithDuration(ccTime t, float sx, float sy);
};
class CC_DLL CCSkewBy : public CCSkewTo
{
virtual bool initWithDuration(ccTime t, float sx, float sy);
virtual void startWithTarget(CCNode *pTarget);
virtual CCActionInterval* reverse(void);
static CCSkewBy* actionWithDuration(ccTime t, float deltaSkewX, float deltaSkewY);
};
class CCJumpBy : public CCActionInterval
{

View File

@ -22,8 +22,6 @@ public:
int numberOfRunningActionsInTarget(CCObject *pTarget);
void pauseTarget(CCObject *pTarget);
void resumeTarget(CCObject *pTarget);
void resumeAllActionsForTarget(CCObject *pTarget);
void pauseAllActionsForTarget(CCObject *pTarget);
void purgeSharedManager(void);
void selectorProtocolRetain(void);
void selectorProtocolRelease(void);

View File

@ -35,7 +35,12 @@ namespace cocos2d
void removeObjectsInArray(CCArray* otherArray);
void removeAllObjects();
void fastRemoveObject(CCObject* object);
void fastRemoveObjectAtIndex(unsigned int index);
void fastRemoveObjectAtIndex(unsigned int index);
void exchangeObject(CCObject* object1, CCObject* object2);
void exchangeObjectAtIndex(unsigned int index1, unsigned int index2);
void reverseObjects();
void reduceMemoryFootprint();
public:
ccArray* data;

View File

@ -11,10 +11,8 @@ namespace cocos2d {
CCAtlasNode();
static CCAtlasNode * atlasWithTileFile(const char* tile,int tileWidth, int tileHeight, int itemsToRender);
/** initializes an CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render*/
bool initWithTileFile(const char* tile, int tileWidth, int tileHeight, int itemsToRender);
static CCAtlasNode * atlasWithTileFile(const char* tile,unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
bool initWithTileFile(const char* tile, unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
void updateAtlasValues();

View File

@ -47,7 +47,7 @@
//#define CC_RETINA_DISPLAY_FILENAME_SUFFIX "-hd"
#define CC_USE_RGBA32_LABELS_ON_NEON_ARCH 0
#define CC_USE_LA88_LABELS_ON_NEON_ARCH 0
#define CC_SPRITE_DEBUG_DRAW 0
@ -56,7 +56,7 @@
#define CC_SPRITEBATCHNODE_DEBUG_DRAW 0
#define CC_BITMAPFONTATLAS_DEBUG_DRAW 0
#define CC_LABELBMFONT_DEBUG_DRAW 0
#define CC_LABELATLAS_DEBUG_DRAW 0