예제 #1
0
        public override void onEnter()
        {
            base.onEnter();

            alignSpritesLeft(2);

            CCActionInterval a1      = CCMoveBy.actionWithDuration(1, new CCPoint(150, 0));
            CCActionInterval action1 = CCRepeat.actionWithAction(
                CCSequence.actions(CCPlace.actionWithPosition(new CCPoint(60, 60)), a1),
                3);
            CCAction action2 = CCRepeatForever.actionWithAction(
                (CCActionInterval)(CCSequence.actions((CCActionInterval)(a1.copy()), a1.reverse()))
                );

            m_kathia.runAction(action1);
            m_tamara.runAction(action2);
        }
예제 #2
0
        public override object Copy(ICopyable pZone)
        {
            CCPlace pRet;

            if (pZone != null)
            {
                pRet = (CCPlace)(pZone);
            }
            else
            {
                pRet  = new CCPlace();
                pZone = (pRet);
            }

            base.Copy(pZone);
            pRet.InitWithPosition(m_tPosition);
            return(pRet);
        }
예제 #3
0
        public override object Copy(ICopyable pZone)
        {
            CCPlace pRet;

            if (pZone != null)
            {
                pRet = (CCPlace) (pZone);
            }
            else
            {
                pRet = new CCPlace();
                pZone =  (pRet);
            }

            base.Copy(pZone);
            pRet.InitWithPosition(m_tPosition);
            return pRet;
        }
예제 #4
0
        public override void onEnter()
        {
            base.onEnter();

            alignSpritesLeft(1);

            m_grossini.visible = false;

            CCFiniteTimeAction action = CCSequence.actions(
                CCPlace.actionWithPosition(new CCPoint(200, 200)),
                CCShow.action(),
                CCMoveBy.actionWithDuration(1, new CCPoint(100, 0)),
                CCCallFunc.actionWithTarget(this, new SEL_CallFunc(callback1)),
                CCCallFuncN.actionWithTarget(this, new SEL_CallFuncN(callback2)),
                CCCallFuncND.actionWithTarget(this, new SEL_CallFuncND(callback3), (object)0xbebabeba));

            m_grossini.runAction(action);
        }
예제 #5
0
 protected CCPlace(CCPlace place) : base(place)
 {
     InitWithPosition(m_tPosition);
 }
예제 #6
0
 protected CCPlace(CCPlace place) : base(place)
 {
     InitWithPosition(m_tPosition);
 }
예제 #7
0
 public CCPlaceState (CCPlace action, CCNode target)
     : base (action, target)
 { 
     Target.Position = action.Position;
 }
예제 #8
0
 public CCPlaceState(CCPlace action, CCNode target)
     : base(action, target)
 {
     Target.Position = action.Position;
 }