universum.bi
Class Constants

java.lang.Object
  extended by universum.bi.Constants

public final class Constants
extends java.lang.Object

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

K_emin

public static final float K_emin
minimal amout of energy being can have, if lower - it dies, and leaves remaining amount on the map

See Also:
Constant Field Values

K_bite

public static final float K_bite
how much energy (% mass) can be consumed per turn

See Also:
Constant Field Values

K_masscost

public static final float K_masscost
how much energy (% of effective mass) being spends per turn. Effective mass is square root of mass.

See Also:
Constant Field Values

K_movecost

public static final float K_movecost
how much energy (% speed) spent during move

See Also:
Constant Field Values

K_minbornvariation

public static final float K_minbornvariation
how different baby could be from parent (both speed and mass)

See Also:
Constant Field Values

K_maxbornvariation

public static final float K_maxbornvariation
how different baby could be from parent (both speed and mass)

See Also:
Constant Field Values

K_toborn

public static final float K_toborn
how much energy (% mass) being should have to give birth to others

See Also:
Constant Field Values

K_fight

public static final float K_fight
how much damage, in % of mass creature can do

See Also:
Constant Field Values

K_fightmovepenalty

public static final float K_fightmovepenalty
penalty to attack, if combined with move

See Also:
Constant Field Values

K_fightcost

public static final float K_fightcost
how expensive attack is (% mass)

See Also:
Constant Field Values

K_borncost

public static final float K_borncost
how expensive giving birth is (% mass)

See Also:
Constant Field Values

K_markcost

public static final float K_markcost
how expensive is marking (in absolute units)

See Also:
Constant Field Values

K_markttl

public static final int K_markttl
how long mark lives (in turns)

See Also:
Constant Field Values

K_retaliate

public static final float K_retaliate
how much damage attacker recieves, % mass of attacked

See Also:
Constant Field Values

K_minmass

public static final float K_minmass
minimal mass allowed

See Also:
Constant Field Values

K_maxmass

public static final float K_maxmass
maximal mass allowed

See Also:
Constant Field Values

K_maxmassperpoint

public static final float K_maxmassperpoint
maximal biomass at the point, -1f - unlimited

See Also:
Constant Field Values

K_minspeed

public static final float K_minspeed
minimal speed allowed

See Also:
Constant Field Values

K_maxspeed

public static final float K_maxspeed
maximal speed allowed

See Also:
Constant Field Values

K_turnduration

public static final int K_turnduration
maximal allowed duration of the turn in milliseconds (typical turn must be much shorter, although)

See Also:
Constant Field Values

NUM_REGULAR

public static final int NUM_REGULAR
number of regular resource sources

See Also:
Constant Field Values

NUM_GOLDEN

public static final int NUM_GOLDEN
number of golden resource sources

See Also:
Constant Field Values

MAX_REGULAR

public static final float MAX_REGULAR
See Also:
Constant Field Values

GROW_REGULAR

public static final float GROW_REGULAR
See Also:
Constant Field Values

MAX_GOLDEN

public static final float MAX_GOLDEN
See Also:
Constant Field Values

GROW_GOLDEN

public static final float GROW_GOLDEN
See Also:
Constant Field Values

TOTAL_CAPACITY_REGULAR

public static final float TOTAL_CAPACITY_REGULAR
See Also:
Constant Field Values

TOTAL_STARTED_REGULAR

public static final float TOTAL_STARTED_REGULAR
See Also:
Constant Field Values

TOTAL_GROWTH_REGULAR

public static final float TOTAL_GROWTH_REGULAR
See Also:
Constant Field Values

TOTAL_CAPACITY_GOLDEN

public static final float TOTAL_CAPACITY_GOLDEN
See Also:
Constant Field Values

TOTAL_STARTED_GOLDEN

public static final float TOTAL_STARTED_GOLDEN
See Also:
Constant Field Values

TOTAL_GROWTH_GOLDEN

public static final float TOTAL_GROWTH_GOLDEN
See Also:
Constant Field Values

BORN_BONUS

public static final float BORN_BONUS
See Also:
Constant Field Values

BORN_BONUS_GROWTH

public static final float BORN_BONUS_GROWTH
See Also:
Constant Field Values

ALLOW_HTTP_WATCHING

public static final boolean ALLOW_HTTP_WATCHING
See Also:
Constant Field Values

VERSION

public static java.lang.String VERSION
engine version

Constructor Detail

Constants

public Constants()
Method Detail

getMaxTurns

public static int getMaxTurns()

setMaxTurns

public static void setMaxTurns(int val)

getWidth

public static int getWidth()

getHeight

public static int getHeight()

setWidth

public static void setWidth(int val)

setHeight

public static void setHeight(int val)

getTurnDelay

public static int getTurnDelay()

setTurnDelay

public static void setTurnDelay(int val)

getRefreshTurns

public static int getRefreshTurns()

setRefreshTurns

public static void setRefreshTurns(int val)

setDrawNumber

public static void setDrawNumber(boolean param)

getDrawNumber

public static boolean getDrawNumber()

setDrawGrid

public static void setDrawGrid(boolean param)

getDrawGrid

public static boolean getDrawGrid()

setDebug

public static void setDebug(boolean param)

getDebug

public static boolean getDebug()

setRecordFile

public static void setRecordFile(java.lang.String path)

getRecordFile

public static java.lang.String getRecordFile()

checkPerms

public static void checkPerms()