Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Production classes - IProductionUnit and derivates
Production classes - IProductionUnit and derivates Sun, 26 February 2012 20:25 Go to next message
Aeglos is currently offline Aeglos

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

Messages: 142
Registered: May 2011
Location: Chile
I'm moving onto the Production commands now, and I remembered that some time ago I noticed these classes in Common/DataStructures:

FactoryProductionUnit, MineProductionUnit, ShipProductionUnit, TerraformProductionUnit, AlchemyProductionUnit, DefenseProductionUnit. They all derive from a common IProductionUnit interface.

However, they are currently not used anywhere even though they seemed pretty fleshed out. Are these an old system that was discarded or was someone working on them and never finished it (which seems to be the case)?

They seem useful, specially for refactoring some production code out of the horribly huge ProductionQueue dialog.

Report message to a moderator

Re: Production classes - IProductionUnit and derivates Mon, 27 February 2012 03:43 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
Pavel (eraser8head) implemented those when he was reworking the production system. Never completely finished though and has moved on to work on other things. He said he would be happy to answer any Q's though so I will PM you his email address.

---edit

He was also the one who created the density based map generation.


[Updated on: Mon, 27 February 2012 03:47]




Have fun.

Report message to a moderator

Re: Production classes - IProductionUnit and derivates Mon, 27 February 2012 21:15 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

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

Messages: 142
Registered: May 2011
Location: Chile
I actually dug up his thread on the matter on the SF forums, which gave me much better understanding on his intent. I'll try to follow it and make use of these classes, as they seem a very clean refactoring.

Sadly it means the order system will be yet again delayed until I finish it.

Sigh... every improvement chain reacts into a myriad of changes it seems.


[Updated on: Mon, 27 February 2012 21:21]

Report message to a moderator

Re: Production classes - IProductionUnit and derivates Tue, 28 February 2012 02:23 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
Yes, but it is nice to see some activity again after a bit of a pause. And I have another week until uni starts Very Happy


Have fun.

Report message to a moderator

Re: Production classes - IProductionUnit and derivates Sat, 10 March 2012 21:39 Go 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
Right.

I finished Pavel's system and it's now in place. While there is still room for more refactoring, it greatly simplified many things in ProductionDialog and Manufacturing.

For now you can only build ships/factories/mines. Terraforming, Alchemy and Defenses are pending.

I'm going to now remove/consolidate the Design class as it has been made obsolete by this system, clearing the inheritances a bit as per the discussion in the other thread.

(Production commands are also in, you can now set waypoints, produce, set research and design ships with the new commands).

Report message to a moderator

Previous Topic: Can not launch client with a new game
Next Topic: Item.Mass - should this be an abstract property?
Goto Forum:
  


Current Time: Wed Jul 28 07:10:40 EDT 2021