Esempio n. 1
0
        public object Clone()
        {
            Movement cpyMovement = new Movement(mLevel);

            if (mBaseMovement != null)
            {
                cpyMovement.mBaseMovement = (Movement)mBaseMovement.Clone();
            }

            cpyMovement.mType         = mType;
            cpyMovement.mReverse      = mReverse;
            cpyMovement.mTimePeriod   = mTimePeriod;
            cpyMovement.mRadius1      = mRadius1;
            cpyMovement.mRadius2      = mRadius2;
            cpyMovement.mStartPhase   = mStartPhase;
            cpyMovement.mMoveRotation = mMoveRotation;
            cpyMovement.mAnchorPoint  = mAnchorPoint;

            cpyMovement.mOffset         = mOffset;
            cpyMovement.mPause1         = mPause1;
            cpyMovement.mPause2         = mPause2;
            cpyMovement.mPhase1         = mPhase1;
            cpyMovement.mPhase2         = mPhase2;
            cpyMovement.mPostDelayPhase = mPostDelayPhase;
            cpyMovement.mMaxAngle       = mMaxAngle;
            cpyMovement.mUnknown8       = mUnknown8;
            cpyMovement.mRotation       = mRotation;
            cpyMovement.mUnknown10      = mUnknown10;
            cpyMovement.mUnknown11      = mUnknown11;
            cpyMovement.mObjectX        = mObjectX;
            cpyMovement.mObjectY        = mObjectY;

            return(cpyMovement);
        }
Esempio n. 2
0
        protected void CloneTo(LevelEntry dest)
        {
            dest.mX = mX;
            dest.mY = mY;

            if (HasPegInfo)
            {
                dest.mPegInfo        = (PegInfo)mPegInfo.Clone();
                dest.mPegInfo.Parent = dest;
            }

            if (HasMovementInfo)
            {
                dest.mMovement = (Movement)mMovement.Clone();
            }

            dest.mImageFilename     = mImageFilename;
            dest.mID                = mID;
            dest.mLogic             = mLogic;
            dest.mCollision         = mCollision;
            dest.mVisible           = mVisible;
            dest.mCanMove           = mCanMove;
            dest.mBackground        = mBackground;
            dest.mBallStopReset     = mBallStopReset;
            dest.mForeground        = mForeground;
            dest.mDrawSort          = mDrawSort;
            dest.mForeground2       = mForeground2;
            dest.mDrawFloat         = mDrawFloat;
            dest.mBaseObject        = mBaseObject;
            dest.mRolly             = mRolly;
            dest.mBouncy            = mBouncy;
            dest.mSolidColour       = mSolidColour;
            dest.mOutlineColour     = mOutlineColour;
            dest.mImageDX           = mImageDX;
            dest.mImageDY           = mImageDY;
            dest.mImageRotation     = mImageRotation;
            dest.mSound             = mSound;
            dest.mMaxBounceVelocity = mMaxBounceVelocity;
            dest.mSubID             = mSubID;
            dest.mFlipperFlags      = mFlipperFlags;
            dest.mShadow            = mShadow;
        }