Hello, I have a question about Observer pattern. I have Application class that has lists of objects, enemies and etc and I want to notify Observer when enemies list JUST got empty. How do I do that? Do I extend std::vector's erase function?
Application has render method that draws and updates application. Also this method deletes items from vectors if they are dead or etc.
↧