Resources information on planet list

* Added resource information records to the planet list's response.

* Added a database view and the corresponding row mapper and DAO method
which can be used as the data source for the planet list's resource
information. For now this view always returns 0 for both civilian and
military investments.

* Added new tab to display resource information on the planet list page.
The old version of the economy tab will be kept until the corresponding
data no longer exists.

* The following SQL scripts must be re-executed to upgrade a database:
  -> 040-functions/167-planet-list.sql
This commit is contained in:
Emmanuel BENOîT 2012-02-15 14:45:43 +01:00
parent bf6bea5a79
commit 96670d45be
15 changed files with 1079 additions and 31 deletions
legacyworlds-server-interfaces/src/main/java/com/deepclone/lw/interfaces/game/resources

View file

@ -2,7 +2,9 @@ package com.deepclone.lw.interfaces.game.resources;
import java.util.List;
import java.util.Map;
import com.deepclone.lw.cmd.player.gdata.PlanetListResourceRecord;
import com.deepclone.lw.cmd.player.gdata.empire.EmpireResourceRecord;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetResourceRecord;
@ -40,4 +42,16 @@ public interface ResourcesInformationDAO
* @return the list of empire economic records
*/
public List< EmpireResourceRecord > getEmpireInformation( int empire );
/**
* Obtain resources information for an empire's planet list
*
* @param empire
* the empire whose planet list is being generated
*
* @return a map of planet list resource records associating planet identifiers to lists of
* resource records
*/
public Map< Integer , List< PlanetListResourceRecord > > getPlanetListData( int empire );
}