How to write solid Pure Aggregation (composition) Game Objects in Java?
问题 So I am just at the beginning of writing a game in Java and I am writing my game objects. Now I have read here in Evolve Your Hierarchy that you should build your games as compositions and not as a big class hierarchy. As this image from the previous link shows: However, when actually getting down to the implementation I have one small question about where to apply the interfaces. Lets say you have a class called Player and the interfaces Moveable and Renderable. Do you implement this using