Example #1
0
        public virtual void startWithTarget(Node pTarget)
        {
            base.StartWithTarget(pTarget);

            if (Target.Grid != null && Target.Grid.Active != null)
            {
                Target.Grid.ReuseGrid = Target.Grid.ReuseGrid + m_nTimes;
            }
        }
Example #2
0
        public override void StartWithTarget(Node pTarget)
        {
            base.StartWithTarget(pTarget);

            CCGridBase pGrid = Target.Grid;
            if (pGrid != null && pGrid.Active)
            {
                pGrid.Active = false;
            }
        }
Example #3
0
        public override void StartWithTarget(Node pTarget)
        {
            base.StartWithTarget(pTarget);

            ICCRGBAProtocol pRGBAProtocol = pTarget as ICCRGBAProtocol;
            if (pRGBAProtocol != null)
            {
                m_fromOpacity = pRGBAProtocol.Opacity;
            }
        }
Example #4
0
 public override void StartWithTarget(Node target)
 {
     base.StartWithTarget(target);
     m_split = m_pActions[0].Duration / Duration;
     m_last = -1;
 }
Example #5
0
 /// <summary>
 /// called after the action has finished. It will set the 'target' to nil.
 /// IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
 /// </summary>
 public virtual void Stop()
 {
     this.Target = null;
 }
Example #6
0
 /// <summary>
 /// called before the action start. 
 /// It will also set the target.
 /// </summary>
 public virtual void StartWithTarget(Node target)
 {
     this.OriginalTarget = target;
     this.Target = target;
 }
Example #7
0
        public override void AddChild(Node child, int zOrder, int tag)
        {
            Debug.Assert(child != null);

            CCSprite pSprite = child as CCSprite;

            if (pSprite == null)
            {
                return;
            }
            // check CCSprite is using the same texture id
            //Debug.Assert(pSprite.Texture.Name == m_pobTextureAtlas.Texture.Name);

            base.AddChild(child, zOrder, tag);

            int uIndex = atlasIndexForChild(pSprite, zOrder);
            insertChild(pSprite, uIndex);
        }
Example #8
0
        public override void StartWithTarget(Node pTarget)
        {
            base.StartWithTarget(pTarget);
            CCSprite pSprite = (CCSprite)(pTarget);

            if (m_bRestoreOriginalFrame)
            {
                // original code : m_pOrigFrame = pSprite->displayedFrame();
                m_pOrigFrame = pSprite.DisplayFrame;
            }
        }
Example #9
0
        public override void StartWithTarget(Node pTarget)
        {
            int i;

            base.StartWithTarget(pTarget);

            if (m_nSeed != -1)
            {
                random.Next(m_nSeed);
            }

            m_nTilesCount = m_sGridSize.x * m_sGridSize.y;
            m_pTilesOrder = new int[m_nTilesCount];

            for (i = 0; i < m_nTilesCount; ++i)
            {
                m_pTilesOrder[i] = i;
            }

            shuffle(m_pTilesOrder, m_nTilesCount);
        }
Example #10
0
 public override void StartWithTarget(Node pTarget)
 {
     base.StartWithTarget(pTarget);
     ((CCSprite)(pTarget)).IsFlipX = m_bFlipX;
 }
Example #11
0
 public override void StartWithTarget(Node target)
 {
     base.StartWithTarget(target);
     m_pInnerAction.StartWithTarget(target);
 }
Example #12
0
 protected void startWithTargetUsedByCCOrbitCamera(Node target)
 {
     base.StartWithTarget(target);
     m_elapsed = 0.0f;
     m_bFirstTick = true;
 }
Example #13
0
 public override void StartWithTarget(Node target)
 {
     base.StartWithTarget(target);
     m_elapsed = 0.0f;
     m_bFirstTick = true;
 }
Example #14
0
 public override void StartWithTarget(Node pTarget)
 {
     base.StartWithTarget(pTarget);
     m_pOther.StartWithTarget(pTarget);
 }
Example #15
0
 public override void StartWithTarget(Node target)
 {
     base.StartWithTarget(target);
     m_pOne.StartWithTarget(target);
     m_pTwo.StartWithTarget(target);
 }
Example #16
0
 public override void StartWithTarget(Node pTarget)
 {
     base.StartWithTarget(pTarget);
     pTarget.Visible = false;
 }
Example #17
0
 //super methods
 public override void StartWithTarget(Node pTarget)
 {
     base.StartWithTarget(pTarget);
     execute();
 }