|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.farafin.snEADy.GameParameter
public final class GameParameter
Field Summary | |
---|---|
private int |
analyse_ms
at the beginning of the game (gameTime == 0), the player gets additinal time to analyse the board |
private int |
auto_grow_delay
each auto_grow_delay number of world cycles, the snake grows by one segment |
private int |
auto_slowdown_delay
each auto_slowdown_delay number of world cycles, the snakes waitCycles increase by one. |
private float |
damage_length_grow
The amount of segments (part of a segment) that a snake grows if an other snake runns into it. |
private int |
damage_points_radius
The Distance in which snakes gain points if an other snake looses a segment. |
private int |
easy_points
if a snake bites it self, this number of points are given all snakes, that touches the biting snake at at least one segments. |
private long |
exit_time
the game cycle the exit opens |
private long |
gameTime
the internal counter of the game cycles |
private int |
goody_length_occ
estimation that a new goody is a length goody. propability: goody_length_occ/Sum(goody_... |
private int |
goody_length_value
the number of segments a snake gets longer, if it eats a length goody |
private int |
goody_points_occ
estimation that a new goody is a points goody. propability: goody_points_occ/Sum(goody_... |
private int |
goody_points_value
the number of points a snake gets, if it eats a points goody |
private int |
goody_shorter_occ
estimation that a new goody is a shorter goody. propability: goody_points_occ/Sum(goody_... |
private int |
goody_shorter_value
the number of segments a snake looses, if it eats a shorter goody |
private int |
goody_slowdown_occ
estimation that a new goody is a slowdown goody. propability: goody_slowdown_occ/Sum(goody_... |
private int |
goody_speed_occ
estimation that a new goody is a speed goody. propability: goody_speed_occ/Sum(goody_... |
private int |
init_length
the initial length of the snakes |
private long |
init_move_delay
The initial delay for snakes to move |
private int |
kill_point_goodies
The number of goodies which spread out when a snake dies. |
private int |
kill_points_radius
The Distance in which snakes gain points if an other snake dies. |
private int |
logging
should the game be logged? |
private int |
max_goody_occ_delay
the maximal time between two goody occurances. |
private int |
max_mem_check_delay
the maximal delay of game cycles until the next players size is controlled |
private long |
max_move_delay
The maximum delay for snakes to move |
private long |
max_player_mem
maximal memory a player can allocate. if he needs more, he will be kicked. |
private int |
max_thinking_ms
the maximal number of millisecondas a player should think |
private int |
min_cycle_ms
the minimum time in milliseconds one game cycle should take. |
private long |
min_move_delay
The minimum delay for snakes to move |
private int |
no_thread_calc
make the gamecalculation in the gameThread. no controll of anything, no waiting time, the full power that is possible will go into the game. |
private int |
print_calc_ms
if 1 the time a player needed is printed into the console |
private int |
print_player_mem
if 1 the memory usage a player needed is printed into the console |
private int |
show_subcycles
if the graphical interface should actuialize the screan after each calculation of the game board |
private long |
suddend_time
the game cycle the sudden death starts |
private int |
survival_points
the number of points a player gets if he reaches the exit. |
private int |
timeout_ms
after this milliseconds, the player is kicked if he still thinks |
Constructor Summary | |
---|---|
GameParameter()
|
Method Summary | |
---|---|
int |
getAnalyse_ms()
|
int |
getAuto_grow_delay()
|
int |
getAuto_slowdown_delay()
|
float |
getDamage_length_grow()
|
int |
getDamage_points_radius()
|
int |
getEasy_points()
|
long |
getExit_time()
|
long |
getGameTime()
|
int |
getGoody_length_occ()
|
int |
getGoody_length_value()
|
int |
getGoody_points_occ()
|
int |
getGoody_points_value()
|
int |
getGoody_shorter_occ()
|
int |
getGoody_shorter_value()
|
int |
getGoody_slowdown_occ()
|
int |
getGoody_speed_occ()
|
int |
getInit_length()
|
long |
getInit_move_delay()
|
int |
getKill_point_goodies()
|
int |
getKill_points_radius()
|
int |
getLogging()
|
int |
getMax_goody_occ_delay()
|
int |
getMax_mem_check_delay()
|
long |
getMax_move_delay()
|
long |
getMax_player_mem()
|
int |
getMax_thinking_ms()
|
int |
getMin_cycle_ms()
|
long |
getMin_move_delay()
|
int |
getNo_thread_calc()
|
int |
getPrint_calc_ms()
|
int |
getPrint_player_mem()
|
int |
getShow_subcycles()
|
long |
getSuddend_time()
|
int |
getSurvival_points()
|
int |
getTimeout_ms()
|
protected void |
setAnalyse_ms(int analyse_ms)
|
protected void |
setAuto_grow_delay(int auto_grow_delay)
|
protected void |
setAuto_slowdown_delay(int auto_slowdown_delay)
|
protected void |
setDamage_length_grow(float damage_length_grow)
|
protected void |
setDamage_points_radius(int damage_points_radius)
|
protected void |
setEasy_points(int easy_points)
|
protected void |
setExit_time(long exit_time)
|
protected void |
setGameTime(long gameTime)
|
protected void |
setGoody_length_occ(int goody_length_occ)
|
protected void |
setGoody_length_value(int goody_length_value)
|
protected void |
setGoody_points_occ(int goody_points_occ)
|
protected void |
setGoody_points_value(int goody_points_value)
|
protected void |
setGoody_shorter_occ(int goody_shorter_occ)
|
protected void |
setGoody_shorter_value(int goody_shorter_value)
|
protected void |
setGoody_slowdown_occ(int goody_slowdown_occ)
|
protected void |
setGoody_speed_occ(int goody_speed_occ)
|
protected void |
setInit_length(int init_length)
|
protected void |
setInit_move_delay(long init_move_delay)
|
protected void |
setKill_point_goodies(int kill_point_goodies)
|
protected void |
setKill_points_radius(int kill_points_radius)
|
protected void |
setLogging(int logging)
|
protected void |
setMax_goody_occ_delay(int max_goody_occ_delay)
|
protected void |
setMax_mem_check_delay(int max_mem_check_delay)
|
protected void |
setMax_move_delay(long max_move_delay)
|
protected void |
setMax_player_mem(long max_player_mem)
|
protected void |
setMax_thinking_ms(int max_thinking_ms)
|
protected void |
setMin_cycle_ms(int min_cycle_ms)
|
protected void |
setMin_move_delay(long min_move_delay)
|
protected void |
setNo_thread_calc(int bruteForceCalc)
|
protected void |
setPrint_calc_ms(int print_calc_ms)
|
protected void |
setPrint_player_mem(int print_player_mem)
|
protected void |
setShow_subcycles(int show_subcycles)
|
protected void |
setSuddend_time(long suddend_time)
|
protected void |
setSurvival_points(int survival_points)
|
protected void |
setTimeout_ms(int timeout_ms)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long gameTime
private int damage_points_radius
private int kill_points_radius
private int kill_point_goodies
private int easy_points
private float damage_length_grow
private long min_move_delay
private long init_move_delay
private long max_move_delay
private int init_length
private int auto_grow_delay
private int auto_slowdown_delay
private int max_goody_occ_delay
private int goody_speed_occ
private int goody_slowdown_occ
private int goody_length_occ
private int goody_points_occ
private int goody_shorter_occ
private int goody_length_value
private int goody_points_value
private int goody_shorter_value
private int min_cycle_ms
private int max_thinking_ms
private int timeout_ms
private int analyse_ms
private long max_player_mem
private int max_mem_check_delay
private long exit_time
private long suddend_time
private int survival_points
private int show_subcycles
private int logging
private int print_calc_ms
private int print_player_mem
private int no_thread_calc
Constructor Detail |
---|
public GameParameter()
Method Detail |
---|
public int getAnalyse_ms()
public int getAuto_grow_delay()
public int getAuto_slowdown_delay()
public float getDamage_length_grow()
public int getDamage_points_radius()
public long getExit_time()
public long getGameTime()
public int getGoody_length_occ()
public int getGoody_length_value()
public int getGoody_points_occ()
public int getGoody_points_value()
public int getGoody_slowdown_occ()
public int getGoody_speed_occ()
public int getGoody_shorter_occ()
public int getGoody_shorter_value()
public int getInit_length()
public long getInit_move_delay()
public int getKill_point_goodies()
public int getKill_points_radius()
public int getLogging()
public int getMax_goody_occ_delay()
public int getMax_mem_check_delay()
public long getMax_move_delay()
public long getMax_player_mem()
public long getMin_move_delay()
public int getPrint_calc_ms()
public int getPrint_player_mem()
public int getShow_subcycles()
public long getSuddend_time()
public int getSurvival_points()
public int getMin_cycle_ms()
public int getMax_thinking_ms()
public int getTimeout_ms()
public int getEasy_points()
public int getNo_thread_calc()
protected void setAnalyse_ms(int analyse_ms)
analyse_ms
- The analyse_ms to set.protected void setAuto_grow_delay(int auto_grow_delay)
auto_grow_delay
- The auto_grow_delay to set.protected void setAuto_slowdown_delay(int auto_slowdown_delay)
auto_slowdown_delay
- The auto_slowdown_delay to set.protected void setDamage_length_grow(float damage_length_grow)
damage_length_grow
- The damage_length_grow to set.protected void setDamage_points_radius(int damage_points_radius)
damage_points_radius
- The damage_points_radius to set.protected void setExit_time(long exit_time)
exit_time
- The exit_time to set.protected void setGameTime(long gameTime)
gameTime
- The gameTime to set.protected void setGoody_length_occ(int goody_length_occ)
goody_length_occ
- The goody_length_occ to set.protected void setGoody_length_value(int goody_length_value)
goody_length_value
- The goody_length_value to set.protected void setGoody_points_occ(int goody_points_occ)
goody_points_occ
- The goody_points_occ to set.protected void setGoody_points_value(int goody_points_value)
goody_points_value
- The goody_points_value to set.protected void setGoody_shorter_occ(int goody_shorter_occ)
goody_shorter_occ
- The goody_shorter_occ to set.protected void setGoody_shorter_value(int goody_shorter_value)
goody_shorter_value
- The goody_shorter_value to set.protected void setGoody_slowdown_occ(int goody_slowdown_occ)
goody_slowdown_occ
- The goody_slowdown_occ to set.protected void setGoody_speed_occ(int goody_speed_occ)
goody_speed_occ
- The goody_speed_occ to set.protected void setInit_length(int init_length)
init_length
- The init_length to set.protected void setInit_move_delay(long init_move_delay)
init_move_delay
- The init_move_delay to set.protected void setKill_point_goodies(int kill_point_goodies)
kill_point_goodies
- The kill_point_goodies to set.protected void setKill_points_radius(int kill_points_radius)
kill_points_radius
- The kill_points_radius to set.protected void setLogging(int logging)
logging
- The logging to set.protected void setMax_goody_occ_delay(int max_goody_occ_delay)
max_goody_occ_delay
- The max_goody_occ_delay to set.protected void setMax_mem_check_delay(int max_mem_check_delay)
max_mem_check_delay
- The max_mem_check_delay to set.protected void setMax_move_delay(long max_move_delay)
max_move_delay
- The max_move_delay to set.protected void setMax_player_mem(long max_player_mem)
max_player_mem
- The max_player_mem to set.protected void setMin_move_delay(long min_move_delay)
min_move_delay
- The min_move_delay to set.protected void setPrint_calc_ms(int print_calc_ms)
print_calc_ms
- The print_calc_ms to set.protected void setPrint_player_mem(int print_player_mem)
print_player_mem
- The print_player_mem to set.protected void setShow_subcycles(int show_subcycles)
show_subcycles
- The show_subcycles to set.protected void setSuddend_time(long suddend_time)
suddend_time
- The suddend_time to set.protected void setSurvival_points(int survival_points)
survival_points
- The survival_points to set.protected void setMin_cycle_ms(int min_cycle_ms)
min_cycle_ms
- The min_cycle_ms to set.protected void setMax_thinking_ms(int max_thinking_ms)
max_thinking_ms
- The max_thinking_ms to set.protected void setTimeout_ms(int timeout_ms)
timeout_ms
- The timeout_ms to set.protected void setEasy_points(int easy_points)
easy_points
- The easy_points to set.protected void setNo_thread_calc(int bruteForceCalc)
no_thread_calc
- The no_thread_calc to set.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |