Thunderbrd
C2C War Dog
Poor Koshling, always optimizing other people's inefficient code.
It would be better to think about how to do stuff in an efficient way before implementing, as afterwards it might not be that easy to implement some of the optimizations.
If that information about if there is orbital infrastructure is needed often, then it is better to store it on the city and player object similar to how it is done with some other information. Because going through all cities and then checking all building types for each is quite costly. If that is then used in an AI evaluation that is run for all buildings it can build, then there is a significant cost.
Of course it would be better! But for me, I do the best I KNOW how to do and it may often take being shown a better way and how to apply it once I've already made my best effort. This comes as a result of learning C++ only as far as it has been so far necessary to mod. Coming at this from a modder angle, without previous programming experience, leads us into less optimal program designs, yes, but thank god for you guys who can guide us into better structures because for the modder, rather than the programmer, if it WORKS is the main thing. Not having ANY previous C++ programming knowledge or experience is going to mean we've got a pretty long learning curve to get to the kinds of understandings you and Koshling have.
And it doesn't help that most of the time I ask a question I get an answer that I find so thoroughly baffling that I say to myself "shouldn't have bothered asking... I should've known I wouldn't understand the answer."
I don't blame that on y'all though... I know how it is to understand something of vast complexity to the point that it becomes next to impossible to explain even a part of it to someone who understand only 5% of what I do - how can you know what I would grasp and what I wouldn't? To be honest, I'm just glad you guys aren't angry with us for being crap programmers messing with your code.