2013-07-18 23:27:07 +08:00
|
|
|
|
2013-07-19 14:57:02 +08:00
|
|
|
local function deprecatedTip(old_name,new_name)
|
|
|
|
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
local function addHandleOfControlEvent(self,func,controlEvent)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("addHandleOfControlEvent","registerControlEventHandler")
|
2013-07-18 23:27:07 +08:00
|
|
|
self:registerControlEventHandler(func,controlEvent)
|
|
|
|
end
|
|
|
|
rawset(CCControl,"addHandleOfControlEvent",addHandleOfControlEvent)
|
|
|
|
|
|
|
|
local function ccpLineIntersect(a,b,c,d,s,t)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpLineIntersect","CCPoint:isLineIntersect")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint:isLineIntersect(a,b,c,d,s,t)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpLineIntersect",ccpLineIntersect)
|
|
|
|
|
|
|
|
|
|
|
|
local function CCPointMake(x,y)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("CCPointMake(x,y)","CCPoint(x,y)")
|
|
|
|
return CCPoint(x,y)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"CCPointMake",CCPointMake)
|
|
|
|
|
|
|
|
local function ccp(x,y)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("ccp(x,y)","CCPoint(x,y)")
|
|
|
|
return CCPoint(x,y)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"ccp",ccp)
|
|
|
|
|
|
|
|
local function CCSizeMake(width,height)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("CCSizeMake(width,height)","CCSize(width,height)")
|
|
|
|
return CCSize(width,height)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"CCSizeMake",CCSizeMake)
|
|
|
|
|
|
|
|
local function CCRectMake(x,y,width,height)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("CCRectMake(x,y,width,height)","CCRect(x,y,width,height)")
|
|
|
|
return CCRect(x,y,width,height)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"CCRectMake",CCRectMake)
|
|
|
|
|
|
|
|
local function ccpNeg(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpNeg","CCPoint.__sub")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint.__sub(CCPoint:new_local(0,0),pt)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpNeg",ccpNeg)
|
|
|
|
|
|
|
|
local function ccpAdd(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpAdd","CCPoint.__add")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint.__add(pt1,pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpAdd",ccpAdd)
|
|
|
|
|
|
|
|
local function ccpSub(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpSub","CCPoint.__sub")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint.__sub(pt1,pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpSub",ccpSub)
|
|
|
|
|
|
|
|
local function ccpMult(pt,factor)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpMult","CCPoint.__mul")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint.__mul(pt,factor)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpMult",ccpMult)
|
|
|
|
|
|
|
|
local function ccpMidpoint(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpMidpoint","CCPoint:getMidpoint")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:getMidpoint(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpMidpoint",ccpMidpoint)
|
|
|
|
|
|
|
|
local function ccpDot(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpDot","CCPoint:dot")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:dot(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpDot",ccpDot)
|
|
|
|
|
|
|
|
local function ccpCross(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpCross","CCPoint:cross")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:cross(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpCross",ccpCross)
|
|
|
|
|
|
|
|
local function ccpPerp(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpPerp","CCPoint:getPerp")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getPerp()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpPerp",ccpPerp)
|
|
|
|
|
|
|
|
local function ccpRPerp(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpRPerp","CCPoint:getRPerp")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getRPerp()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpRPerp",ccpRPerp)
|
|
|
|
|
|
|
|
--no test
|
|
|
|
local function ccpProject(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpProject","CCPoint:project")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:project(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpProject",ccpProject)
|
|
|
|
|
|
|
|
local function ccpRotate(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpRotate","CCPoint:rotate")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:rotate(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpRotate",ccpRotate)
|
|
|
|
|
|
|
|
local function ccpUnrotate(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpUnrotate","CCPoint:unrotate")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:unrotate(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpUnrotate",ccpUnrotate)
|
|
|
|
|
|
|
|
local function ccpLengthSQ(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpLengthSQ","CCPoint:getLengthSq")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getLengthSq(pt)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpLengthSQ",ccpLengthSQ)
|
|
|
|
|
|
|
|
local function ccpDistanceSQ(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpDistanceSQ","CCPoint:__sub(pt1,pt2):getLengthSq")
|
2013-07-18 23:27:07 +08:00
|
|
|
return (CCPoint.__sub(pt1,pt2)):getLengthSq()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpDistanceSQ",ccpDistanceSQ)
|
|
|
|
|
|
|
|
local function ccpLength(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpLength","CCPoint:getLength")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getLength()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpLength",ccpLength)
|
|
|
|
|
|
|
|
local function ccpDistance(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpDistance","CCPoint:getDistance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:getDistance(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpDistance",ccpDistance)
|
|
|
|
|
|
|
|
local function ccpNormalize(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpNormalize","CCPoint:getDistance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getDistance()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpNormalize",ccpNormalize)
|
|
|
|
|
|
|
|
local function ccpForAngle(angle)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpForAngle","CCPoint:forAngle")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint:forAngle(angle)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpForAngle",ccpForAngle)
|
|
|
|
|
|
|
|
local function ccpToAngle(pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpToAngle","CCPoint:getAngle")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt:getAngle()
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpToAngle",ccpToAngle)
|
|
|
|
|
|
|
|
local function ccpClamp(pt1,pt2,pt3)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpClamp","CCPoint:getClampPoint")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:getClampPoint(pt2, pt3)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpClamp",ccpClamp)
|
|
|
|
|
|
|
|
|
|
|
|
local function ccpFromSize(sz)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("ccpFromSize(sz)","CCPoint(sz)")
|
|
|
|
return CCPoint(sz)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"ccpFromSize",ccpFromSize)
|
|
|
|
|
|
|
|
local function ccpLerp(pt1,pt2,alpha)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpLerp","CCPoint:lerp")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:lerp(pt2,alpha)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpLerp",ccpLerp)
|
|
|
|
|
|
|
|
local function ccpFuzzyEqual(pt1,pt2,variance)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpFuzzyEqual","CCPoint:fuzzyEquals")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:fuzzyEquals(pt2,variance)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpFuzzyEqual",ccpFuzzyEqual)
|
|
|
|
|
|
|
|
local function ccpCompMult(pt1,pt2)
|
2013-07-24 10:15:16 +08:00
|
|
|
deprecatedTip("ccpCompMult","CCPoint")
|
|
|
|
return CCPoint(pt1.x * pt2.x , pt1.y * pt2.y)
|
2013-07-18 23:27:07 +08:00
|
|
|
end
|
|
|
|
rawset(_G,"ccpCompMult",ccpCompMult)
|
|
|
|
|
|
|
|
local function ccpAngleSigned(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpAngleSigned","CCPoint:getAngle")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:getAngle(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpAngleSigned",ccpAngleSigned)
|
|
|
|
|
|
|
|
local function ccpAngle(pt1,pt2)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpAngle","CCPoint:getAngle")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:getAngle(pt2)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpAngle",ccpAngle)
|
|
|
|
|
|
|
|
local function ccpRotateByAngle(pt1,pt2,angle)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpRotateByAngle","CCPoint:rotateByAngle")
|
2013-07-18 23:27:07 +08:00
|
|
|
return pt1:rotateByAngle(pt2, angle)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpRotateByAngle",ccpRotateByAngle)
|
|
|
|
|
|
|
|
local function ccpSegmentIntersect(pt1,pt2,pt3,pt4)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpSegmentIntersect","CCPoint:isSegmentIntersect")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint:isSegmentIntersect(pt1,pt2,pt3,pt4)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpSegmentIntersect",ccpSegmentIntersect)
|
|
|
|
|
|
|
|
local function ccpIntersectPoint(pt1,pt2,pt3,pt4)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("ccpIntersectPoint","CCPoint:getIntersectPoint")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCPoint:getIntersectPoint(pt1,pt2,pt3,pt4)
|
|
|
|
end
|
|
|
|
rawset(_G,"ccpIntersectPoint",ccpIntersectPoint)
|
|
|
|
|
|
|
|
|
|
|
|
local function sharedOpenGLView()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCEGLView:sharedOpenGLView","CCEGLView:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCEGLView:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCEGLView,"sharedOpenGLView",sharedOpenGLView)
|
|
|
|
|
|
|
|
local function sharedFileUtils()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCFileUtils:sharedFileUtils","CCFileUtils:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCFileUtils:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCFileUtils,"sharedFileUtils",sharedFileUtils)
|
|
|
|
|
|
|
|
local function purgeFileUtils()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCFileUtils:purgeFileUtils","CCFileUtils:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCFileUtils:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCFileUtils,"purgeFileUtils",purgeFileUtils)
|
|
|
|
|
|
|
|
local function sharedApplication()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCApplication:sharedApplication","CCApplication:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCApplication:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCApplication,"sharedApplication",sharedApplication)
|
|
|
|
|
|
|
|
local function sharedDirector()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCDirector:sharedDirector","CCDirector:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCDirector:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCDirector,"sharedDirector",sharedDirector)
|
|
|
|
|
|
|
|
local function sharedUserDefault()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCUserDefault:sharedUserDefault","CCUserDefault:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCUserDefault:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCUserDefault,"sharedUserDefault",sharedUserDefault)
|
|
|
|
|
|
|
|
local function purgeSharedUserDefault()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCUserDefault:purgeSharedUserDefault","CCUserDefault:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCUserDefault:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCUserDefault,"purgeSharedUserDefault",purgeSharedUserDefault)
|
|
|
|
|
|
|
|
|
|
|
|
local function sharedNotificationCenter()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCNotificationCenter:sharedNotificationCenter","CCNotificationCenter:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCNotificationCenter:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCNotificationCenter,"sharedNotificationCenter",sharedNotificationCenter)
|
|
|
|
|
|
|
|
local function purgeNotificationCenter()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCNotificationCenter:purgeNotificationCenter","CCNotificationCenter:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCNotificationCenter:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCNotificationCenter,"purgeNotificationCenter",purgeNotificationCenter)
|
|
|
|
|
|
|
|
local function sharedTextureCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCTextureCache:sharedTextureCache","CCTextureCache:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCTextureCache:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCTextureCache,"sharedTextureCache",sharedTextureCache)
|
|
|
|
|
|
|
|
local function purgeSharedTextureCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCTextureCache:purgeSharedTextureCache","CCTextureCache:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCTextureCache:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCTextureCache,"purgeSharedTextureCache",purgeSharedTextureCache)
|
|
|
|
|
|
|
|
local function sharedSpriteFrameCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCSpriteFrameCache:sharedSpriteFrameCache","CCSpriteFrameCache:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCSpriteFrameCache:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCSpriteFrameCache,"sharedSpriteFrameCache",sharedSpriteFrameCache)
|
|
|
|
|
|
|
|
local function purgeSharedSpriteFrameCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCSpriteFrameCache:purgeSharedSpriteFrameCache","CCSpriteFrameCache:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCSpriteFrameCache:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCSpriteFrameCache,"purgeSharedSpriteFrameCache",purgeSharedSpriteFrameCache)
|
|
|
|
|
|
|
|
local function vertex(self,pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("vertex","CCGrid3DAction:getVertex")
|
2013-07-18 23:27:07 +08:00
|
|
|
return self:getVertex(pt)
|
|
|
|
end
|
|
|
|
rawset(CCGrid3DAction,"vertex",vertex)
|
|
|
|
|
|
|
|
local function originalVertex(self,pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("originalVertex","CCGrid3DAction:getOriginalVertex")
|
2013-07-18 23:27:07 +08:00
|
|
|
return self:getOriginalVertex(pt)
|
|
|
|
end
|
|
|
|
rawset(CCGrid3DAction,"originalVertex",originalVertex)
|
|
|
|
|
|
|
|
local function tile(self,pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("tile","CCTiledGrid3DAction:getTile")
|
2013-07-18 23:27:07 +08:00
|
|
|
return self:getTile(pt)
|
|
|
|
end
|
|
|
|
rawset(CCTiledGrid3DAction,"tile",tile)
|
|
|
|
|
|
|
|
local function originalTile(self,pt)
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("originalTile","CCTiledGrid3DAction:getOriginalTile")
|
2013-07-18 23:27:07 +08:00
|
|
|
return self:getOriginalTile(pt)
|
|
|
|
end
|
|
|
|
rawset(CCTiledGrid3DAction,"originalTile",originalTile)
|
|
|
|
|
|
|
|
local function sharedAnimationCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCAnimationCache:sharedAnimationCache","CCAnimationCache:getInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCAnimationCache:getInstance()
|
|
|
|
end
|
|
|
|
rawset(CCAnimationCache,"sharedAnimationCache",sharedAnimationCache)
|
|
|
|
|
|
|
|
local function purgeSharedAnimationCache()
|
2013-07-19 14:57:02 +08:00
|
|
|
deprecatedTip("CCAnimationCache:purgeSharedAnimationCache","CCAnimationCache:destroyInstance")
|
2013-07-18 23:27:07 +08:00
|
|
|
return CCAnimationCache:destroyInstance()
|
|
|
|
end
|
|
|
|
rawset(CCAnimationCache,"purgeSharedAnimationCache",purgeSharedAnimationCache)
|
|
|
|
|
2013-07-19 14:57:02 +08:00
|
|
|
local function boundingBox(self)
|
|
|
|
deprecatedTip("CCNode:boundingBox","CCNode:getBoundingBox")
|
|
|
|
return self:getBoundingBox()
|
|
|
|
end
|
|
|
|
rawset(CCNode,"boundingBox",boundingBox)
|
|
|
|
|
2013-07-22 13:42:58 +08:00
|
|
|
local function numberOfRunningActions(self)
|
|
|
|
deprecatedTip("CCNode:numberOfRunningActions","CCNode:getNumberOfRunningActions")
|
|
|
|
return self:getNumberOfRunningActions()
|
|
|
|
end
|
|
|
|
rawset(CCNode,"numberOfRunningActions",numberOfRunningActions)
|
|
|
|
|
|
|
|
local function stringForFormat(self)
|
|
|
|
deprecatedTip("Texture2D:stringForFormat","Texture2D:getStringForFormat")
|
|
|
|
return self:getStringForFormat()
|
|
|
|
end
|
|
|
|
rawset(CCTexture2D,"stringForFormat",stringForFormat)
|
|
|
|
|
|
|
|
local function bitsPerPixelForFormat(self)
|
|
|
|
deprecatedTip("Texture2D:bitsPerPixelForFormat","Texture2D:getBitsPerPixelForFormat")
|
|
|
|
return self:getBitsPerPixelForFormat()
|
|
|
|
end
|
|
|
|
rawset(CCTexture2D,"bitsPerPixelForFormat",bitsPerPixelForFormat)
|
|
|
|
|
|
|
|
local function bitsPerPixelForFormat(self,pixelFormat)
|
|
|
|
deprecatedTip("Texture2D:bitsPerPixelForFormat","Texture2D:getBitsPerPixelForFormat")
|
|
|
|
return self:getBitsPerPixelForFormat(pixelFormat)
|
|
|
|
end
|
|
|
|
rawset(CCTexture2D,"bitsPerPixelForFormat",bitsPerPixelForFormat)
|
|
|
|
|
|
|
|
local function defaultAlphaPixelFormat(self)
|
|
|
|
deprecatedTip("Texture2D:defaultAlphaPixelFormat","Texture2D:getDefaultAlphaPixelFormat")
|
|
|
|
return self:getDefaultAlphaPixelFormat()
|
|
|
|
end
|
|
|
|
rawset(CCTexture2D,"defaultAlphaPixelFormat",defaultAlphaPixelFormat)
|
|
|
|
|
|
|
|
local function spriteFrameByName(self,szName)
|
|
|
|
deprecatedTip("CCSpriteFrameCache:spriteFrameByName","CCSpriteFrameCache:getSpriteFrameByName")
|
|
|
|
return self:getSpriteFrameByName(szName)
|
|
|
|
end
|
|
|
|
rawset(CCSpriteFrameCache,"spriteFrameByName",spriteFrameByName)
|
|
|
|
|
|
|
|
local function timerWithScriptHandler(handler,seconds)
|
|
|
|
deprecatedTip("CCTimer:timerWithScriptHandler","CCTimer:createWithScriptHandler")
|
|
|
|
return CCTimer:createWithScriptHandler(handler,seconds)
|
|
|
|
end
|
|
|
|
rawset(CCTimer,"timerWithScriptHandler",timerWithScriptHandler)
|
|
|
|
|
|
|
|
local function numberOfRunningActionsInTarget(self,target)
|
|
|
|
deprecatedTip("CCActionManager:numberOfRunningActionsInTarget","CCActionManager:getNumberOfRunningActionsInTarget")
|
|
|
|
return self:getNumberOfRunningActionsInTarget(target)
|
|
|
|
end
|
|
|
|
rawset(CCTimer,"numberOfRunningActionsInTarget",numberOfRunningActionsInTarget)
|
|
|
|
|
|
|
|
local function fontSize()
|
|
|
|
deprecatedTip("CCMenuItemFont:fontSize","CCMenuItemFont:getFontSize")
|
|
|
|
return CCMenuItemFont:getFontSize()
|
|
|
|
end
|
|
|
|
rawset(CCMenuItemFont,"fontSize",fontSize)
|
2013-07-19 14:57:02 +08:00
|
|
|
|
2013-07-22 13:42:58 +08:00
|
|
|
local function fontName()
|
|
|
|
deprecatedTip("CCMenuItemFont:fontName","CCMenuItemFont:getFontName")
|
|
|
|
return CCMenuItemFont:getFontName()
|
|
|
|
end
|
|
|
|
rawset(CCMenuItemFont,"fontName",fontName)
|
2013-07-18 23:27:07 +08:00
|
|
|
|
2013-07-22 13:42:58 +08:00
|
|
|
local function fontSizeObj(self)
|
|
|
|
deprecatedTip("CCMenuItemFont:fontSizeObj","CCMenuItemFont:getFontSizeObj")
|
|
|
|
return self:getFontSizeObj()
|
|
|
|
end
|
|
|
|
rawset(CCMenuItemFont,"fontSizeObj",fontSizeObj)
|
2013-07-18 23:27:07 +08:00
|
|
|
|
2013-07-22 13:42:58 +08:00
|
|
|
local function fontNameObj(self)
|
|
|
|
deprecatedTip("CCMenuItemFont:fontNameObj","CCMenuItemFont:getFontNameObj")
|
|
|
|
return self:getFontNameObj()
|
|
|
|
end
|
|
|
|
rawset(CCMenuItemFont,"fontNameObj",fontNameObj)
|
|
|
|
|
|
|
|
local function selectedItem(self)
|
|
|
|
deprecatedTip("CCMenuItemToggle:selectedItem","CCMenuItemToggle:getSelectedItem")
|
|
|
|
return self:getSelectedItem()
|
|
|
|
end
|
|
|
|
rawset(CCMenuItemToggle,"selectedItem",selectedItem)
|
|
|
|
|
|
|
|
local function tileAt(self,pos)
|
|
|
|
deprecatedTip("CCTileMapAtlas:tileAt","CCTileMapAtlas:getTileAt")
|
|
|
|
return self:getTileAt(pos)
|
|
|
|
end
|
|
|
|
rawset(CCTileMapAtlas,"tileAt",tileAt)
|
|
|
|
|
|
|
|
local function tileAt(self,tileCoordinate)
|
|
|
|
deprecatedTip("CCTMXLayer:tileAt","CCTMXLayer:getTileAt")
|
|
|
|
return self:getTileAt(tileCoordinate)
|
|
|
|
end
|
|
|
|
rawset(CCTMXLayer,"tileAt",tileAt)
|
|
|
|
|
|
|
|
local function tileGIDAt(self,tileCoordinate)
|
|
|
|
deprecatedTip("CCTMXLayer:tileGIDAt","CCTMXLayer:getTileGIDAt")
|
|
|
|
return self:getTileGIDAt(tileCoordinate)
|
|
|
|
end
|
|
|
|
rawset(CCTMXLayer,"tileGIDAt",tileGIDAt)
|
|
|
|
|
|
|
|
local function positionAt(self,tileCoordinate)
|
|
|
|
deprecatedTip("CCTMXLayer:positionAt","CCTMXLayer:getPositionAt")
|
|
|
|
return self:getPositionAt(tileCoordinate)
|
|
|
|
end
|
|
|
|
rawset(CCTMXLayer,"positionAt",positionAt)
|
|
|
|
|
|
|
|
local function propertyNamed(self,propertyName)
|
|
|
|
deprecatedTip("CCTMXLayer:propertyNamed","CCTMXLayer:getPropertyNamed")
|
|
|
|
return self:getPropertyNamed(propertyName)
|
|
|
|
end
|
|
|
|
rawset(CCTMXLayer,"propertyNamed",propertyNamed)
|
|
|
|
|
|
|
|
local function sharedEngine()
|
|
|
|
deprecatedTip("SimpleAudioEngine:sharedEngine","SimpleAudioEngine:getInstance")
|
|
|
|
return SimpleAudioEngine:getInstance()
|
|
|
|
end
|
|
|
|
rawset(SimpleAudioEngine,"sharedEngine",sharedEngine)
|