Beispiel #1
0
        /// <summary>
        ///  creates a CCOrbitCamera action with radius, delta-radius,  z, deltaZ, x, deltaX
        /// </summary>
        public static CCOrbitCamera actionWithDuration(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX)
        {
            CCOrbitCamera pRet = new CCOrbitCamera();

            if (pRet.initWithDuration(t, radius, deltaRadius, angleZ, deltaAngleZ, angleX, deltaAngleX))
            {
                return(pRet);
            }

            return(null);
        }
Beispiel #2
0
        // super methods
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone        pNewZone = null;
            CCOrbitCamera pRet     = null;

            if (pZone != null && pZone.m_pCopyObject != null) //in case of being called at sub class
            {
                pRet = (CCOrbitCamera)(pZone.m_pCopyObject);
            }
            else
            {
                pRet  = new CCOrbitCamera();
                pZone = pNewZone = new CCZone(pRet);
            }

            copyWithZone(pZone);

            pRet.initWithDuration(m_fDuration, m_fRadius, m_fDeltaRadius, m_fAngleZ, m_fDeltaAngleZ, m_fAngleX, m_fDeltaAngleX);

            return(pRet);
        }