Hero->heroWithGame(this)
>
Although I am not sure exactly what you want.
Hi,
in Cocos2d
This is constructor of my HeroContactListener:
HeroContactListener(Hero* hero) { _hero = [hero retain]; }
and in my Hero class:
contactListener = new HeroContactListener(self);
When i port it to cocos2dx, i cant replace self to this, because i have this error: No matching constructor for initialization of 'HeroContactListener'