de.hattrickorganizer.logik
Class ArenaSizer

java.lang.Object
  extended by de.hattrickorganizer.logik.ArenaSizer

public class ArenaSizer
extends java.lang.Object

DOCUMENT ME!

Author:
thomas.werth

Field Summary
static float ABRISS
          TODO Missing Parameter Documentation
static float DACH_AUSBAU
          TODO Missing Parameter Documentation
static float DACH_EINTRITT
          TODO Missing Parameter Documentation
static float DACH_PROZENT
          TODO Missing Parameter Documentation
static float DACH_UNTERHALT
          TODO Missing Parameter Documentation
static int FANS_GUT
          TODO Missing Parameter Documentation
static int FANS_NORMAL
          TODO Missing Parameter Documentation
static int FANS_SCHLECHT
          TODO Missing Parameter Documentation
static float FIXKOSTEN
          TODO Missing Parameter Documentation
static float LOGEN_AUSBAU
          TODO Missing Parameter Documentation
static float LOGEN_EINTRITT
          TODO Missing Parameter Documentation
static float LOGEN_PROZENT
          TODO Missing Parameter Documentation
static float LOGEN_UNTERHALT
          TODO Missing Parameter Documentation
static float SITZ_AUSBAU
          TODO Missing Parameter Documentation
static float SITZ_EINTRITT
          TODO Missing Parameter Documentation
static float SITZ_PROZENT
          TODO Missing Parameter Documentation
static float SITZ_UNTERHALT
          TODO Missing Parameter Documentation
static float STEH_AUSBAU
          TODO Missing Parameter Documentation
static float STEH_EINTRITT
          TODO Missing Parameter Documentation
static float STEH_PROZENT
          TODO Missing Parameter Documentation
static float STEH_UNTERHALT
          TODO Missing Parameter Documentation
 
Constructor Summary
ArenaSizer()
          Creates a new instance of ArenaSizer
 
Method Summary
 Stadium[] berechneAusbaustufen(Stadium aktuell, int anzFans)
          berechnet die möglichen Ausbaustufen
 float calcBauKosten(float steh, float sitz, float dach, float logen)
          berehnet die Baukosten
 int calcDachVerteilung(float stadionGr)
          berechnet die Platzverteilung
 int calcLogenVerteilung(float stadionGr)
          berechnet die Platzverteilung
 int calcOptimalSize(int fanFaktor, int anzahlFans)
          berechnet die optimale stadion grösse
 int calcSitzVerteilung(float stadionGr)
          berechnet die Platzverteilung
 int calcStehVerteilung(float stadionGr)
          berechnet die Platzverteilung
 float calcUnterhalt(Stadium arena)
          berechnet den Unterhalt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEH_EINTRITT

public static final float STEH_EINTRITT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

SITZ_EINTRITT

public static final float SITZ_EINTRITT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

DACH_EINTRITT

public static final float DACH_EINTRITT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

LOGEN_EINTRITT

public static final float LOGEN_EINTRITT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

STEH_UNTERHALT

public static final float STEH_UNTERHALT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

SITZ_UNTERHALT

public static final float SITZ_UNTERHALT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

DACH_UNTERHALT

public static final float DACH_UNTERHALT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

LOGEN_UNTERHALT

public static final float LOGEN_UNTERHALT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

STEH_AUSBAU

public static float STEH_AUSBAU
TODO Missing Parameter Documentation


SITZ_AUSBAU

public static float SITZ_AUSBAU
TODO Missing Parameter Documentation


DACH_AUSBAU

public static float DACH_AUSBAU
TODO Missing Parameter Documentation


LOGEN_AUSBAU

public static float LOGEN_AUSBAU
TODO Missing Parameter Documentation


ABRISS

public static float ABRISS
TODO Missing Parameter Documentation


FIXKOSTEN

public static float FIXKOSTEN
TODO Missing Parameter Documentation


STEH_PROZENT

public static final float STEH_PROZENT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

SITZ_PROZENT

public static final float SITZ_PROZENT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

DACH_PROZENT

public static final float DACH_PROZENT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

LOGEN_PROZENT

public static final float LOGEN_PROZENT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

FANS_GUT

public static final int FANS_GUT
TODO Missing Parameter Documentation

See Also:
Constant Field Values

FANS_NORMAL

public static final int FANS_NORMAL
TODO Missing Parameter Documentation

See Also:
Constant Field Values

FANS_SCHLECHT

public static final int FANS_SCHLECHT
TODO Missing Parameter Documentation

See Also:
Constant Field Values
Constructor Detail

ArenaSizer

public ArenaSizer()
Creates a new instance of ArenaSizer

Method Detail

berechneAusbaustufen

public final Stadium[] berechneAusbaustufen(Stadium aktuell,
                                            int anzFans)
berechnet die möglichen Ausbaustufen

Parameters:
aktuell - TODO Missing Constructuor Parameter Documentation
anzFans - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcBauKosten

public final float calcBauKosten(float steh,
                                 float sitz,
                                 float dach,
                                 float logen)
berehnet die Baukosten

Parameters:
steh - TODO Missing Constructuor Parameter Documentation
sitz - TODO Missing Constructuor Parameter Documentation
dach - TODO Missing Constructuor Parameter Documentation
logen - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcDachVerteilung

public final int calcDachVerteilung(float stadionGr)
berechnet die Platzverteilung

Parameters:
stadionGr - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcLogenVerteilung

public final int calcLogenVerteilung(float stadionGr)
berechnet die Platzverteilung

Parameters:
stadionGr - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcOptimalSize

public final int calcOptimalSize(int fanFaktor,
                                 int anzahlFans)
berechnet die optimale stadion grösse

Parameters:
fanFaktor - TODO Missing Constructuor Parameter Documentation
anzahlFans - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcSitzVerteilung

public final int calcSitzVerteilung(float stadionGr)
berechnet die Platzverteilung

Parameters:
stadionGr - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcStehVerteilung

public final int calcStehVerteilung(float stadionGr)
berechnet die Platzverteilung

Parameters:
stadionGr - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcUnterhalt

public final float calcUnterhalt(Stadium arena)
berechnet den Unterhalt

Parameters:
arena - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation