2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
typedef enum {
|
2011-11-09 23:23:47 +08:00
|
|
|
/// An horizontal orientation where the Left is nearer
|
|
|
|
kOrientationLeftOver = 0,
|
|
|
|
/// An horizontal orientation where the Right is nearer
|
|
|
|
kOrientationRightOver = 1,
|
|
|
|
/// A vertical orientation where the Up is nearer
|
|
|
|
kOrientationUpOver = 0,
|
|
|
|
/// A vertical orientation where the Bottom is nearer
|
|
|
|
kOrientationDownOver = 1,
|
2011-06-14 14:31:25 +08:00
|
|
|
} tOrientation;
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSceneOriented
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSceneOriented* transitionWithDuration(ccTime t, CCScene* scene, tOrientation o);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionRotoZoom
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionRotoZoom* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionJumpZoom
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionJumpZoom* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionMoveInL
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionMoveInL* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionMoveInR
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionMoveInR* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionMoveInT
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionMoveInT* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionMoveInB
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionMoveInB* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSlideInL
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionSlideInL* transitionWithDuration(ccTime t, CCScene* scene);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSlideInR
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSlideInR* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSlideInB
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSlideInB* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSlideInT
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSlideInT* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionShrinkGrow
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionShrinkGrow* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFlipX
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionFlipX* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationRightOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFlipY
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionFlipY* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationUpOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFlipAngular
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionFlipAngular* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationRightOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionZoomFlipX
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionZoomFlipX* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationRightOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionZoomFlipY
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionZoomFlipY* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationUpOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionZoomFlipAngular
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
static CCTransitionZoomFlipAngular* transitionWithDuration(ccTime t, CCScene* s, tOrientation o = kOrientationRightOver);
|
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFade
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionFade* transitionWithDuration(ccTime duration,CCScene* scene, ccColor3B color = ccBLACK);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionCrossFade
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionCrossFade* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionTurnOffTiles
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionTurnOffTiles* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSplitCols
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSplitCols* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionSplitRows
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionSplitRows* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFadeTR
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionFadeTR* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFadeBL
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionFadeBL* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFadeUp
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionFadeUp* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTransitionFadeDown
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCTransitionFadeDown* transitionWithDuration(ccTime t, CCScene* scene);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|