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 03:22 Go to previous messageGo to previous message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
The way I saw this working is that the client intially gets the list of star names and positions and nothing else. It can then make Star or StarReport objects from these. Each turn it may get new StarReports which it then uses to update its objects - so the client persists its Stars, then on a turn reloads them and copies any Intel over the top (i.e. Intel would neither contain nor extend a star)

Aeglos wrote on Sun, 26 June 2011 19:16


I wanted to get some input on data design though. Currently the StarIntel object holds Age, IntelLevel (determined by the server, and mandates how much info you get)


Rather than an Age field can I suggest a Year field as that then won't ever need to change each turn and the age can be worked out as needed by the client

Aeglos wrote on Sun, 26 June 2011 19:16


I also thought of adding IStar and IFleet interfaces and making Star, Fleet, StarIntel and FleetIntel all from those, sort of use the composite pattern but decided against it since it would be over complicating things.



Agree - Keep it simple for sure Smile

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 05:18:17 EDT 2024