Re: Item.Mass - should this be an abstract property? |
Sun, 12 February 2012 15:50 |
|
ekolis | | | Messages: 51
Registered: May 2006 Location: Cincinnati, OH, USA |
|
|
Aeglos, I think you're confusing inheritance and composition. Ship should not inherit from design, as it makes no sense to say "a ship is a design". Rather, it is correct to say "a ship has a design". Thus the current system of ship object having a reference to a design object.
I think the main problem is that the inheritance hierarchy is too top-heavy: Item has way too much information that is irrelevant for certain subclasses.
I agree with Daniel that we should think this out, though.
Oh, and by the way, I'm not exactly a "new" developer on the project, but neither am I all that experienced with it - I was involved with Nova a bit several years ago, but then I got involved with another project, called Star Legacy, so I left the Nova project. Unfortunately Star Legacy has kind of fizzled out, but on the bright side, I can get involved with Nova again!
Mr. Flibble says...
Game over, boys!Report message to a moderator
|
|
|