Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » I've branched the Codebase [Merged back into trunk]
Re: I've branched the Codebase Mon, 27 June 2011 04:07 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
Good idea on the Age/Year thing. I'll go with year.

Musmuris wrote on Mon, 27 June 2011 03:22

(i.e. Intel would neither contain nor extend a star))


I've gone with extending it, otherwise it makes no sense code-wise. An Intel report would have the exact same variables plus Year/IntelLevel and be a different unrelated object altogheter. It would double maintainability and be much more error prone; any changes we introduce to a star are now auto done on an StarIntel object, same as in fleet. They also use the same serialization and since an Intel object is of base type Fleet/Star, plugging them into the code already there in the GUI was trivial.

The thing is that both enemy and own info are sent through intel reports; it's just the amount of key info you get that changes. The difficulty arises when selecting what to send... for enemy fleets I need to send the Fleet's FleetShip<Ship> collection so that the FleetComposition property works, but doing so reveals their designs. I'll probably just loop over the sever's Fleet.FleetShips collection copying the names to the intel's FleetIntel.FleetShips when constructing a FleetReport for enemy ships.

I think there might be some miscomunication about how I intended this intel objects work. Laughing

Report message to a moderator

 
Read Message
Read Message icon7.gif
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: Where y'all from
Next Topic: "Intel" class becoming obsolete.
Goto Forum:
  


Current Time: Mon Apr 29 08:30:28 EDT 2024