The kind of simulation game that I mean is the kind where you have things that you can build in different places, and workers / carriers that connect such places.
Something more like the Settlers series.
Suppose I do not want graphics at the moment , that I think I can handle.
So my doubts are as follows:
- Should each object be a class, and each of them has a stream?
- If objects are grouped into lists inside classes, and each of them has a stream?
If we take implementation 1, it will be very difficult to work on low-specialized machines and will not scale well for large numbers.
If we take implementation 2, it will be better in terms of resources, but then ...
How do I group objects?
- Do you have a home class in general and have a list of interfaces for managing this?
- Do you have a class for certain house groups and a list of objects to manage this?
what about threads?
- Should I have a simplified main game loop?
- Should I have a thread for each class group?
- How do workers / conveyors fit the image?
source share