1
Graphics / Re: Image too large?
« on: September 10, 2013, 09:42:52 pm »Yeah, trivial getters and setters tend to eat up a lot of space. In theory you should only need to add those methods when getting or setting has some additional step (eg, checking the value is valid), and you can't simply make the members public or let the constructor handle it. But in the real world it's best to add them early on so that all the code using this class won't need to be rewritten when you inevitably change how the class works internally.
With that said, it may be better to combine x and y into a single sf::Vector2i or std::pair<int,int>.
This was just kind of a retrofit for the rest of the program. Just to see how it would work. I can start to see some possibilities tho.
Stupid Q #2:
Is it common for class methods to use other class methods or even plain old functions throughout the program. Or are they generally self contained?