Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » FleetIntel question
Re: FleetIntel question |
Wed, 06 July 2011 18:52 |
|
Daniel | | | Messages: 179
Registered: April 2006 Location: Nowra, Australia | |
|
Aeglos wrote on Wed, 06 July 2011 12:00 |
So I was strongly considering "reverting" some implementations on the Intel objects to no longer inherit Fleet/Star, to hold specific subset of data from them and to use them only for enemy/neutral things, while passing regular Star/Fleet objects in another collection to their owners. For example, StarIntel would not care about the Star's production queue as it is irrelevant unless you own the star, so don't even have it as a member. FleetIntel would have a specific member not found on Fleet to report composition without revealing designs, etc.
In this scenario, it makes more sense to hold Fleet and Star reports inside OtherEmpires<EnemyData> grouped by owner, and another EmpireStars<Star> and EmpireFleets<Fleet> collections inside EmpireData for that player's own things... but there would be a need to use IFleet and IStar interfaces for the client to use both star/fleet reports and star/fleets interchangeably for drawing and summaries, else we would need lots of if/else clauses, and we would need to loop through all of OtherEmpires' FleetReports and StarReports plus looping through the EmpireData's EmpireFleets and EmpireStars to actually get them all together.
Also implementing IFleet/IStar would mean adding lots of properties to Fleet/Star and making currently public variables private, which is in a way something desirable.
|
I like this idea. It sounds cleaner to me to have a seperate report class for fleet and star reports and to use an interface for common members.
Have fun.Report message to a moderator
|
|
|
|
|
FleetIntel question
|
|
|
Re: FleetIntel question
By: Aeglos on Tue, 05 July 2011 22:00
|
|
|
Re: FleetIntel question
By: Daniel on Wed, 06 July 2011 18:52
|
|
|
Re: FleetIntel question
By: Aeglos on Wed, 06 July 2011 22:06
|
|
|
Re: FleetIntel question
By: Daniel on Thu, 07 July 2011 05:03
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Aeglos on Wed, 06 July 2011 17:01
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Aeglos on Wed, 06 July 2011 21:05
|
|
|
Re: FleetIntel question
By: Aeglos on Thu, 07 July 2011 05:40
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Daniel on Sat, 09 July 2011 20:22
|
|
|
Re: FleetIntel question
By: Aeglos on Sun, 10 July 2011 16:53
|
|
|
Re: FleetIntel question
By: Daniel on Mon, 11 July 2011 03:15
|
|
|
Re: FleetIntel question
By: Aeglos on Sat, 09 July 2011 20:38
|
|
|
Re: FleetIntel question
By: Daniel on Sat, 09 July 2011 23:50
|
|
|
Re: FleetIntel question
By: Aeglos on Mon, 11 July 2011 04:11
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Daniel on Mon, 11 July 2011 07:19
|
|
|
Re: FleetIntel question
By: Aeglos on Mon, 11 July 2011 14:44
|
|
|
Re: FleetIntel question
By: Aeglos on Wed, 13 July 2011 21:35
|
|
|
Re: FleetIntel question
By: Daniel on Thu, 14 July 2011 04:53
|
|
|
Re: FleetIntel question
By: Aeglos on Thu, 14 July 2011 05:11
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Aeglos on Thu, 14 July 2011 17:46
|
|
|
Re: FleetIntel question
By: Aeglos on Thu, 21 July 2011 23:59
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Aeglos on Fri, 22 July 2011 16:45
|
|
|
Re: FleetIntel question
|
|
|
Re: FleetIntel question
By: Daniel on Fri, 22 July 2011 17:52
|
Goto Forum:
Current Time: Sat Jun 08 02:52:37 EDT 2024
|