public override object Copy(ICCCopyable pZone)
        {
            CCShatteredTiles3D pCopy;
            if (pZone != null)
            {
                pCopy = (CCShatteredTiles3D) (pZone);
            }
            else
            {
                pCopy = new CCShatteredTiles3D();
                pZone =  (pCopy);
            }

            //copy super class's member
            base.Copy(pZone);

            pCopy.InitWithRange(m_nRandrange, m_bShatterZ, m_sGridSize, m_fDuration);

            return pCopy;
        }
Beispiel #2
0
        public override object Copy(ICopyable pZone)
        {
            CCShatteredTiles3D pCopy;

            if (pZone != null)
            {
                pCopy = (CCShatteredTiles3D)(pZone);
            }
            else
            {
                pCopy = new CCShatteredTiles3D();
                pZone = (pCopy);
            }

            //copy super class's member
            base.Copy(pZone);

            pCopy.InitWithRange(m_nRandrange, m_bShatterZ, m_sGridSize, m_fDuration);

            return(pCopy);
        }
 public CCShatteredTiles3DState (CCShatteredTiles3D action, CCNode target) : base (action, target)
 {
     Range = action.Range;
     ShatterZ = action.ShatterZ;
 }
 public new static CCActionInterval actionWithDuration(float t)
 {
     return(CCShatteredTiles3D.actionWithRange(5, true, new ccGridSize(16, 12), t));
 }
 public CCShatteredTiles3DState(CCShatteredTiles3D action, CCNode target) : base(action, target)
 {
     Range    = action.Range;
     ShatterZ = action.ShatterZ;
 }
 /// <summary>
 /// creates the action with a range, whether of not to shatter Z vertices, a grid size and duration
 /// </summary>
 public static CCShatteredTiles3D Create(int nRange, bool bShatterZ, CCGridSize gridSize, float duration)
 {
     var pAction = new CCShatteredTiles3D();
     pAction.InitWithRange(nRange, bShatterZ, gridSize, duration);
     return pAction;
 }