Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Item.Mass - should this be an abstract property?
Re: Item.Mass - should this be an abstract property? Sun, 12 February 2012 15:50 Go to previous messageGo to previous message
ekolis is currently offline ekolis

 
Petty Officer 2nd Class
Stars! Nova developer
Stars! Nova developer

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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Production classes - IProductionUnit and derivates
Next Topic: Spam posts
Goto Forum:
  


Current Time: Sun Apr 28 16:13:56 EDT 2024