issue #5, implement

This commit is contained in:
Walzer 2010-07-30 09:18:20 +00:00
parent 88ce1c8f83
commit 458ca18148
2 changed files with 5 additions and 5 deletions

View File

@ -48,6 +48,7 @@ public:
virtual void onEnter(); virtual void onEnter();
virtual void onExit(); virtual void onExit();
virtual bool ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent);
/** If isTouchEnabled, this method is called onEnter. Override it to change the /** If isTouchEnabled, this method is called onEnter. Override it to change the
way CCLayer receives touch events. way CCLayer receives touch events.

View File

@ -128,12 +128,11 @@ void CCLayer::onExit()
[super onExit];*/ [super onExit];*/
} }
/** @todo CCTouch bool CCLayer::ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent)
-(BOOL) ccTouchBegan:(CCTouch *)touch withEvent:(UIEvent *)event
{ {
NSAssert(NO, @"Layer#ccTouchBegan override me"); NSAssert(false, "Layer#ccTouchBegan override me");
return YES; return true;
}*/ }
/// ColorLayer /// ColorLayer