|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversum.bi.Constants
public final class Constants
Class containing basic constants affecting game rules.
Field Summary | |
---|---|
static boolean |
ALLOW_HTTP_WATCHING
|
static float |
BORN_BONUS
|
static float |
BORN_BONUS_GROWTH
|
static float |
GROW_GOLDEN
|
static float |
GROW_REGULAR
|
static float |
K_bite
how much energy (% mass) can be consumed per turn |
static float |
K_borncost
how expensive giving birth is (% mass) |
static float |
K_emin
minimal amout of energy being can have, if lower - it dies, and leaves remaining amount on the map |
static float |
K_fight
how much damage, in % of mass creature can do |
static float |
K_fightcost
how expensive attack is (% mass) |
static float |
K_fightmovepenalty
penalty to attack, if combined with move |
static float |
K_markcost
how expensive is marking (in absolute units) |
static int |
K_markttl
how long mark lives (in turns) |
static float |
K_masscost
how much energy (% of effective mass) being spends per turn. |
static float |
K_maxbornvariation
how different baby could be from parent (both speed and mass) |
static float |
K_maxmass
maximal mass allowed |
static float |
K_maxmassperpoint
maximal biomass at the point, -1f - unlimited |
static float |
K_maxspeed
maximal speed allowed |
static float |
K_minbornvariation
how different baby could be from parent (both speed and mass) |
static float |
K_minmass
minimal mass allowed |
static float |
K_minspeed
minimal speed allowed |
static float |
K_movecost
how much energy (% speed) spent during move |
static float |
K_retaliate
how much damage attacker recieves, % mass of attacked |
static float |
K_toborn
how much energy (% mass) being should have to give birth to others |
static int |
K_turnduration
maximal allowed duration of the turn in milliseconds (typical turn must be much shorter, although) |
static float |
MAX_GOLDEN
|
static float |
MAX_REGULAR
|
static int |
NUM_GOLDEN
number of golden resource sources |
static int |
NUM_REGULAR
number of regular resource sources |
static float |
TOTAL_CAPACITY_GOLDEN
|
static float |
TOTAL_CAPACITY_REGULAR
|
static float |
TOTAL_GROWTH_GOLDEN
|
static float |
TOTAL_GROWTH_REGULAR
|
static float |
TOTAL_STARTED_GOLDEN
|
static float |
TOTAL_STARTED_REGULAR
|
static java.lang.String |
VERSION
engine version |
Constructor Summary | |
---|---|
Constants()
|
Method Summary | |
---|---|
static void |
checkPerms()
|
static boolean |
getDebug()
|
static boolean |
getDrawGrid()
|
static boolean |
getDrawNumber()
|
static int |
getHeight()
|
static int |
getMaxTurns()
|
static java.lang.String |
getRecordFile()
|
static int |
getRefreshTurns()
|
static int |
getTurnDelay()
|
static int |
getWidth()
|
static void |
setDebug(boolean param)
|
static void |
setDrawGrid(boolean param)
|
static void |
setDrawNumber(boolean param)
|
static void |
setHeight(int val)
|
static void |
setMaxTurns(int val)
|
static void |
setRecordFile(java.lang.String path)
|
static void |
setRefreshTurns(int val)
|
static void |
setTurnDelay(int val)
|
static void |
setWidth(int val)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float K_emin
public static final float K_bite
public static final float K_masscost
public static final float K_movecost
public static final float K_minbornvariation
public static final float K_maxbornvariation
public static final float K_toborn
public static final float K_fight
public static final float K_fightmovepenalty
public static final float K_fightcost
public static final float K_borncost
public static final float K_markcost
public static final int K_markttl
public static final float K_retaliate
public static final float K_minmass
public static final float K_maxmass
public static final float K_maxmassperpoint
public static final float K_minspeed
public static final float K_maxspeed
public static final int K_turnduration
public static final int NUM_REGULAR
public static final int NUM_GOLDEN
public static final float MAX_REGULAR
public static final float GROW_REGULAR
public static final float MAX_GOLDEN
public static final float GROW_GOLDEN
public static final float TOTAL_CAPACITY_REGULAR
public static final float TOTAL_STARTED_REGULAR
public static final float TOTAL_GROWTH_REGULAR
public static final float TOTAL_CAPACITY_GOLDEN
public static final float TOTAL_STARTED_GOLDEN
public static final float TOTAL_GROWTH_GOLDEN
public static final float BORN_BONUS
public static final float BORN_BONUS_GROWTH
public static final boolean ALLOW_HTTP_WATCHING
public static java.lang.String VERSION
Constructor Detail |
---|
public Constants()
Method Detail |
---|
public static int getMaxTurns()
public static void setMaxTurns(int val)
public static int getWidth()
public static int getHeight()
public static void setWidth(int val)
public static void setHeight(int val)
public static int getTurnDelay()
public static void setTurnDelay(int val)
public static int getRefreshTurns()
public static void setRefreshTurns(int val)
public static void setDrawNumber(boolean param)
public static boolean getDrawNumber()
public static void setDrawGrid(boolean param)
public static boolean getDrawGrid()
public static void setDebug(boolean param)
public static boolean getDebug()
public static void setRecordFile(java.lang.String path)
public static java.lang.String getRecordFile()
public static void checkPerms()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |