Empire technology views

* Added new research-related constants

* Added set of views and functions to list empires' technologies. This
includes a view which determines the visibility of an in-progress
research's details, and a main list view.
This commit is contained in:
Emmanuel BENOîT 2012-03-01 09:50:20 +01:00
parent e01eab9c09
commit b15acadc1b
8 changed files with 476 additions and 0 deletions
legacyworlds-server-beans-system/src/main/java/com/deepclone/lw/beans/sys

View file

@ -125,6 +125,21 @@ public class ConstantsRegistrarBean
defs.add( new ConstantDefinition( wcNames[ 6 ] , cat , cDesc , 0.50 , 0.01 , true ) );
cDesc = "Proportion of queue investments that is recovered when flushing the queue.";
defs.add( new ConstantDefinition( wcNames[ 7 ] , cat , cDesc , 0.1 , 0.01 , 1.0 ) );
// Research
String[] rcNames = {
"basePoints" , "visibility.points" , "visibility.ratio"
};
for ( int i = 0 ; i < wcNames.length ; i++ ) {
rcNames[ i ] = "game.research." + rcNames[ i ];
}
cat = "Research & technologies";
cDesc = "Research points per population unit.";
defs.add( new ConstantDefinition( rcNames[ 0 ] , cat , cDesc , 0.50 , 0.01 , true ) );
cDesc = "Points above which a technology becomes visible.";
defs.add( new ConstantDefinition( rcNames[ 1 ] , cat , cDesc , 2500.0 , 0.01 , true ) );
cDesc = "Completion ratio above which a technology becomes visible.";
defs.add( new ConstantDefinition( rcNames[ 2 ] , cat , cDesc , 0.10 , 0.01 , 0.99 ) );
// Vacation mode
cDesc = "Initial vacation credits.";