I'm building a game in libgdx where I need to notify someclass about an explosion that occured. Now, I have access to that exact same moment when it occurs. How exactly do I notify my class that an explosion has happened?
I read this: http://www.javaworld.com/article/2077462/learn-java/java-tip-10--implement-callback-routines-in-java.html
But I didn't understand the concept of callbacks. I understand that it is a way to notify classes and objects that an event has happened but I'm not sure how to implement this. If you guys could clarify that for me I would really appreaciate it!