Empire mining settings
* Modified mining settings stored procedures to use text identifiers instead of numeric identifiers * Added DAO for mining settings and controller for resource operations * Added UpdateEmpireMiningSettingsCommand and associated command delegate. The command always returns NullResponse. * Overview page templates split into multiple files for clarity, added priority update form to the empire economy view and associated web server handler
This commit is contained in:
parent
92dd01ffce
commit
d38576a5cf
24 changed files with 1024 additions and 160 deletions
legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player
|
@ -0,0 +1,50 @@
|
|||
package com.deepclone.lw.cmd.player;
|
||||
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.deepclone.lw.session.Command;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Command that updates empire mining settings
|
||||
*
|
||||
* @author <a href="mailto:tseeker@legacyworlds.com">E. Benoît</a>
|
||||
*/
|
||||
public class UpdateEmpireMiningSettingsCommand
|
||||
extends Command
|
||||
{
|
||||
|
||||
/**
|
||||
* Serialisation version identifier
|
||||
*
|
||||
* <ul>
|
||||
* <li>Introduced in B6M2
|
||||
* </ul>
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** The new empire mining settings */
|
||||
private final Map< String , Integer > settings;
|
||||
|
||||
|
||||
/**
|
||||
* Initialise the command using mining settings
|
||||
*
|
||||
* @param settings
|
||||
* a map that associates resource identifiers to priorities
|
||||
*/
|
||||
public UpdateEmpireMiningSettingsCommand( Map< String , Integer > settings )
|
||||
{
|
||||
this.settings = settings;
|
||||
}
|
||||
|
||||
|
||||
/** @return the mining settings to apply */
|
||||
public Map< String , Integer > getSettings( )
|
||||
{
|
||||
return this.settings;
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue