Hello,
I wonder how to handle all my entities in Java 2D RTS the best way. I’ve considered to create a big ArrayList in singleton in that I store all my entities. In may main game loop I call update(int time) doLogic and so on by iterating all entities of the singleton. But I suppose that’s not the best solution.
So I ask you how you handle (that means updating, painting, …) your entities?
- Lutze