Beispiel #1
0
        public static CCSpeed actionWithAction(CCActionInterval action, float fRate)
        {
            CCSpeed ret = new CCSpeed();

            if (ret != null && ret.initWithAction(action, fRate))
            {
                return(ret);
            }

            return(null);
        }
Beispiel #2
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone  tmpZone = null;
            CCSpeed ret     = null;

            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = (CCSpeed)tmpZone.m_pCopyObject;
            }
            else
            {
                ret     = new CCSpeed();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(zone);

            ret.initWithAction((CCActionInterval)m_pInnerAction.copy(), m_fSpeed);

            return(ret);
        }
Beispiel #3
0
 public virtual CCActionInterval reverse()
 {
     return((CCActionInterval)(CCAction)CCSpeed.actionWithAction((CCActionInterval)m_pInnerAction.reverse(), m_fSpeed));
 }