2010-07-09 16:26:01 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2010 cocos2d-x.org
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
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.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CCRADIAL_TRANSITION_H__
|
|
|
|
#define __CCRADIAL_TRANSITION_H__
|
2010-08-04 15:46:12 +08:00
|
|
|
#include "CCTransition.h"
|
2010-08-21 10:26:26 +08:00
|
|
|
#include "CCProgressTimer.h"
|
2010-07-09 16:26:01 +08:00
|
|
|
|
2010-08-04 15:46:12 +08:00
|
|
|
namespace cocos2d {
|
2010-07-28 15:27:51 +08:00
|
|
|
|
2010-09-29 12:03:21 +08:00
|
|
|
/**
|
|
|
|
@brief A counter colock-wise radial transition to the next scene
|
|
|
|
*/
|
2010-08-20 14:35:37 +08:00
|
|
|
class CCX_DLL CCRadialCCWTransition : public CCTransitionScene
|
2010-07-09 16:26:01 +08:00
|
|
|
{
|
2010-07-09 18:24:08 +08:00
|
|
|
public:
|
2010-09-28 12:14:12 +08:00
|
|
|
CCRadialCCWTransition(){}
|
|
|
|
virtual ~CCRadialCCWTransition(){}
|
2010-07-13 09:48:39 +08:00
|
|
|
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
|
2010-08-20 14:35:37 +08:00
|
|
|
static CCRadialCCWTransition* transitionWithDuration(ccTime t, CCScene* scene);
|
|
|
|
|
2010-07-13 09:48:39 +08:00
|
|
|
protected:
|
|
|
|
virtual void sceneOrder();
|
2010-07-28 15:27:51 +08:00
|
|
|
virtual CCProgressTimerType radialType();
|
2010-07-09 16:26:01 +08:00
|
|
|
};
|
|
|
|
|
2010-09-29 12:03:21 +08:00
|
|
|
/**
|
|
|
|
@brief A counter colock-wise radial transition to the next scene
|
|
|
|
*/
|
2010-08-20 14:35:37 +08:00
|
|
|
class CCX_DLL CCRadialCWTransition : public CCRadialCCWTransition
|
2010-07-09 16:26:01 +08:00
|
|
|
{
|
2010-07-09 18:24:08 +08:00
|
|
|
public:
|
2010-09-28 12:14:12 +08:00
|
|
|
CCRadialCWTransition(){}
|
|
|
|
virtual ~CCRadialCWTransition(){}
|
2010-08-20 14:35:37 +08:00
|
|
|
static CCRadialCWTransition* transitionWithDuration(ccTime t, CCScene* scene);
|
|
|
|
|
2010-07-13 09:48:39 +08:00
|
|
|
protected:
|
2010-07-28 15:27:51 +08:00
|
|
|
virtual CCProgressTimerType radialType();
|
2010-07-09 16:26:01 +08:00
|
|
|
};
|
|
|
|
|
2010-08-04 15:46:12 +08:00
|
|
|
}//namespace cocos2d
|
2010-07-09 16:26:01 +08:00
|
|
|
|
2010-07-09 18:24:08 +08:00
|
|
|
#endif __CCRADIAL_TRANSITION_H__
|
|
|
|
|