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? Sat, 10 March 2012 23:20 Go to previous messageGo to previous message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I removed Design and left ShipDesign only as everything that is not a ship will be handled by Star properties.

I was looking to implement the structure in your image as it's much cleaner, but there's something not accounted for: Components. They also have mass/cost.

How about renaming GameObject to something like "KeyableObject", and where Design sits in the picture we intrododuce a "BuildableObject" which contains Mass/Cost and from which designs and components can inherit. The left hand branch should be left like it is in the pic.

Ideas?

EDIT -

I removed "Ship" in favour of a new "ShipToken" class which tracks a design, it's quantity, and the armor damage it has sustained. It does not inherit from anything, and made ship handling easier. It also led to the simplification of some things on the battle engine, and it's now closer to Stars! as it targets tokens instead of individual ships.

The battle engine still needs some work though, as I suspect it's not accurate yet.


[Updated on: Sun, 11 March 2012 23:54]

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: Mon Apr 29 01:39:54 EDT 2024