From c40e185ebe6d857bcf2bd781912e45fa21be2306 Mon Sep 17 00:00:00 2001 From: Walzer Date: Wed, 21 Jul 2010 10:03:47 +0000 Subject: [PATCH] issue #3, set methods virtual --- cocos2dx/include/CCNode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos2dx/include/CCNode.h b/cocos2dx/include/CCNode.h index 69639627fb..b6b69695d0 100644 --- a/cocos2dx/include/CCNode.h +++ b/cocos2dx/include/CCNode.h @@ -268,7 +268,7 @@ public: It returns self, so you can chain several addChilds. @since v0.7.1 */ - CCNode * addChild(CCNode * child, int zOrder, int tag); + virtual CCNode * addChild(CCNode * child, int zOrder, int tag); // composition: REMOVE @@ -281,7 +281,7 @@ public: /** Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter. @since v0.7.1 */ - void removeChild(CCNode* child, bool cleanup); + virtual void removeChild(CCNode* child, bool cleanup); /** Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter @since v0.7.1 @@ -291,7 +291,7 @@ public: /** Removes all children from the container and do a cleanup all running actions depending on the cleanup parameter. @since v0.7.1 */ - void removeAllChildrenWithCleanup(bool cleanup); + virtual void removeAllChildrenWithCleanup(bool cleanup); // composition: GET /** Gets a child from the container given its tag @@ -303,7 +303,7 @@ public: /** Reorders a child according to a new z value. * The child MUST be already added. */ - void reorderChild(CCNode * child, int zOrder); + virtual void reorderChild(CCNode * child, int zOrder); /** Stops all running actions and schedulers @since v0.8