Class GrowFunction

java.lang.Object
  |
  +--GrowFunction
All Implemented Interfaces:
java.io.Serializable

public class GrowFunction
extends java.lang.Object
implements java.io.Serializable

Stellt die fürs Pflanzenwachstum benötigte Funktionalität.

See Also:
Serialized Form

Field Summary
private static float inc
          Der Zuwachs an Nahrung pro Runde (falls min <= food <= max-inc).
private static float max
          Das maximum an Nahrung, das sich auf einem Feld befinden kann.
private static float min
          Wird dieser Wert unterschritten, findet kein Wachstum statt.
 
Constructor Summary
GrowFunction()
           
 
Method Summary
static float foodInc(float food)
          Liefert den Nahrungszuwachs bei gegebenem aktuellen Bestand.
static float getInc()
           
static float getMax()
           
static float getMin()
           
static void init()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

min

private static float min
Wird dieser Wert unterschritten, findet kein Wachstum statt.

max

private static float max
Das maximum an Nahrung, das sich auf einem Feld befinden kann.

inc

private static float inc
Der Zuwachs an Nahrung pro Runde (falls min <= food <= max-inc).
Constructor Detail

GrowFunction

public GrowFunction()
Method Detail

init

public static void init()

foodInc

public static float foodInc(float food)
Liefert den Nahrungszuwachs bei gegebenem aktuellen Bestand. Falls dieser (durch Samenflug) den Wert max überschreitet, kann der Returnwert auch negativ sein.

getMin

public static float getMin()

getMax

public static float getMax()

getInc

public static float getInc()