I’m looking for the best way for gameobjects to communicate… I’m used to flash event or ios nssnotifications to broadcast changes and haven’t found a c++/cocos2d-x equivalent. Say for instance a gameobject makes an internal change and an unknown number of other gameobjects may or may not care about it, is there a simple way to send a message to subscribers? Thanks for any help!
Hello ,
the mediator and the publish subscribe design pattern might make it .
and elegante solution using callback ,http://www.tutok.sk/fastgl/callback.html,
http://www.partow.net/programming/templatecallback/index.html
i hope it help
kind regards,
david