In-game resources views
* Added session records to carry resource information over to the clients * Added SQL support code for the various views * Added interface and implementation of the resource information access component * Hooked resources information queries into both the empire and planet management component * Added resources display to planet and overview pages
This commit is contained in:
parent
56eddcc4f0
commit
597429fadf
45 changed files with 3211 additions and 52 deletions
legacyworlds-server-interfaces/src/main/java/com/deepclone/lw/interfaces/game/resources
|
@ -0,0 +1,43 @@
|
|||
package com.deepclone.lw.interfaces.game.resources;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.deepclone.lw.cmd.player.gdata.empire.EmpireResourceRecord;
|
||||
import com.deepclone.lw.cmd.player.gdata.planets.PlanetResourceRecord;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Resources information access component interface
|
||||
*
|
||||
* <p>
|
||||
* This interface defines the methods which execute the queries required to extract information
|
||||
* about resources from the database.
|
||||
*
|
||||
* @author <a href="mailto:tseeker@legacyworlds.com">E. Benoît</a>
|
||||
*/
|
||||
public interface ResourcesInformationDAO
|
||||
{
|
||||
|
||||
/**
|
||||
* Obtain resources information for a planet
|
||||
*
|
||||
* @param planet
|
||||
* the planet to obtain information about
|
||||
*
|
||||
* @return the list of planetary resource records
|
||||
*/
|
||||
public List< PlanetResourceRecord > getPlanetInformation( int planet );
|
||||
|
||||
|
||||
/**
|
||||
* Obtain resources information for an empire
|
||||
*
|
||||
* @param empire
|
||||
* the empire to obtain information about
|
||||
*
|
||||
* @return the list of empire economic records
|
||||
*/
|
||||
public List< EmpireResourceRecord > getEmpireInformation( int empire );
|
||||
}
|
Reference in a new issue