I've got a problem with some designing in my code. I'm currently writing a prototype for a game in Java but I'm not confortable with the choices I've made. Currently my game has a couple of classes: Circle, CircleSet and Component ( the main class basically ). The relationships between these classes are the following: 1 CircleSet can have multiple Circles and every Circle needs to know in what CircleSet it's in.
Can someone help me with some examples of collections and what suits best for me?
Thanks in advance!