Originally posted by Ernest Friedman-Hill:
I'd be interested to hear why this sounds bad to you. That's more or less how I like to do things.
Originally posted by Aaron Roberts:
I'd have to agree with Ernest.
What's so bad about a nice clean basic OO design like you described? There are times when pure OO makes the most sense and when pure function based design does. Often, a mix of both makes for a nice approach.
If you're worrying about performance, don't. Performance metrics are best done once you have something to start with- IE rendering my 9 Million things is slow. (Tongue in cheeck example) Then you can baseline where you are and adjust things to improve.
Since you admitted you are not a lover of scenegraphs, but also that you've never used them to their extent, maybe you're trying to be more anti-scenegraph than is practical? In your example, you didn't mention anything about inheritance of the ship class from a drawable class or a moveable class. You also didn't talk about interfaces. It seems like you've take a reasonable approach to the problem you have at hand. It also seems more intuitively maintainable than going a purely lower level way.
My 3.5 cents.![]()
Aaron R>
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |