Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » FleetIntel question
Re: FleetIntel question Sat, 09 July 2011 20:22 Go to previous messageGo to previous message
Daniel is currently offline Daniel

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

Messages: 179
Registered: April 2006
Location: Nowra, Australia
Having thought about this a bit more after delving into the guts of EmpireData I have the following additional suggestions:

Within EmpireData these collections should be called StarReports, FleetReports, OwnedStars (instead of just Stars), OwnedFleets (instead of just Fleets) and EmpireReports.

Star should inherit from StarReport. (instead of vice versa)

Fleet should inherit from FleetReport. (instead of vice versa)

The Reports should contain all known objects, whether owned or not, to simplify generation of things like the star map. Some of the report objects may be the full versions of the object. So StarReport for your homeworld is actually the same object as the Star for your homeworld, using polymorphism.

The Owned collections should contain only objects the empire controls and can issue orders to (change production, move fleets, etc). This effectively replaces the former ClientState.Data.OwnedStars and ClientState.Data.OwnedFleets.



Have fun.

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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugs/Other Trackers
Next Topic: Anyone still around?
Goto Forum:
  


Current Time: Sat May 04 10:04:25 EDT 2024