예제 #1
0
        public static CCPlace actionWithPosition(CCPoint pos)
        {
            CCPlace cCPlace = new CCPlace();

            if (cCPlace != null && cCPlace.initWithPosition(pos))
            {
                return(cCPlace);
            }
            return(null);
        }
예제 #2
0
        public static CCPlace actionWithPosition(CCPoint pos) 
        {
	        CCPlace pRet = new CCPlace();

	        if (pRet != null && pRet.initWithPosition(pos)) 
            {
		        return pRet;
	        }

	        return null;
        }
예제 #3
0
파일: CCPlace.cs 프로젝트: liwq-net/liwq718
        public static CCPlace actionWithPosition(CCPoint pos)
        {
            CCPlace pRet = new CCPlace();

            if (pRet != null && pRet.initWithPosition(pos))
            {
                return(pRet);
            }

            return(null);
        }
예제 #4
0
        public override CCObject copyWithZone(CCZone pZone) 
        {
	        CCZone pNewZone = null;
	        CCPlace pRet = null;

	        if (pZone != null && pZone.m_pCopyObject != null) 
            {
		        pRet = (CCPlace) (pZone.m_pCopyObject);
	        } else {
		        pRet = new CCPlace();
		        pZone = pNewZone = new CCZone(pRet);
	        }

	        base.copyWithZone(pZone);
	        pRet.initWithPosition(m_tPosition);
	        return pRet;
        }
예제 #5
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCPlace cCPlace = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCPlace = new CCPlace();
                pZone   = new CCZone(cCPlace);
            }
            else
            {
                cCPlace = (CCPlace)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCPlace.initWithPosition(this.m_tPosition);
            return(cCPlace);
        }
예제 #6
0
파일: CCPlace.cs 프로젝트: liwq-net/liwq718
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone  pNewZone = null;
            CCPlace pRet     = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pRet = (CCPlace)(pZone.m_pCopyObject);
            }
            else
            {
                pRet  = new CCPlace();
                pZone = pNewZone = new CCZone(pRet);
            }

            base.copyWithZone(pZone);
            pRet.initWithPosition(m_tPosition);
            return(pRet);
        }