|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hattrickorganizer.logik.SpielLogik
public class SpielLogik
DOCUMENT ME!
Field Summary | |
---|---|
static float |
ABWEHR_MANIPULATOR
Faktor durch den die Anzahl der Abwehr Spieler dividiert wird um endgültige Offensiv/Defensiv Kraft zu bestimmen |
static byte |
ANGRIFF_ABWEHR_KLAERT
TODO Missing Parameter Documentation |
static byte |
ANGRIFF_ERFOLGREICH
TODO Missing Parameter Documentation |
static byte |
ANGRIFF_MITTELFELD_KLAERT
TODO Missing Parameter Documentation |
static byte |
ANGRIFF_TORWART_HAELT
TODO Missing Parameter Documentation |
static byte |
AVG_TORCHANCEN
TODO Missing Parameter Documentation |
static int |
CHANCEN_ZUFALLS_RAUM
gibt den Zahlenraum für die Chancenberechung an |
static byte |
ESB_FAKTOR_ABWEHR
TODO Missing Parameter Documentation |
static byte |
ESB_FAKTOR_STURM
TODO Missing Parameter Documentation |
static float |
ESB_OBERGRENZE
TODO Missing Parameter Documentation |
static byte |
ESB_OFFENSIVANPASSUNG
TODO Missing Parameter Documentation |
static byte |
ESB_OFFENSIVGRENZE
TODO Missing Parameter Documentation |
static byte |
ESB_STEUERUNG
TODO Missing Parameter Documentation |
static float |
ESB_UNTERGRENZE
TODO Missing Parameter Documentation |
static byte |
FG_ANFEUERUNG
TODO Missing Parameter Documentation |
static byte |
FG_GEGNER
TODO Missing Parameter Documentation |
static byte |
FG_SCHIRI
TODO Missing Parameter Documentation |
static byte |
FG_SONSTIGES
TODO Missing Parameter Documentation |
static byte |
GFK_ABSICHTLICHES_HANDSPIEL
TODO Missing Parameter Documentation |
static byte |
GFK_FOUL
TODO Missing Parameter Documentation |
static byte |
GFK_MECKERN
TODO Missing Parameter Documentation |
static byte |
GFK_UNSPORTLICHES_VERHALTEN
TODO Missing Parameter Documentation |
static byte |
KEY_AUSWECHSLUNG
TODO Missing Parameter Documentation |
static byte |
KEY_ELFMETERSCHIESSEN
TODO Missing Parameter Documentation |
static byte |
KEY_FANGESANG
TODO Missing Parameter Documentation |
static byte |
KEY_GELBEKARTE
TODO Missing Parameter Documentation |
static byte |
KEY_GELBROTEKARTE
TODO Missing Parameter Documentation |
static byte |
KEY_HALBZEIT
TODO Missing Parameter Documentation |
static byte |
KEY_NACHSPIELZEIT
TODO Missing Parameter Documentation |
static byte |
KEY_ROTEKARTE
TODO Missing Parameter Documentation |
static byte |
KEY_SPIELENDE
TODO Missing Parameter Documentation |
static byte |
KEY_VERLAENGERUNG
TODO Missing Parameter Documentation |
static byte |
KEY_VERLETZUNG
TODO Missing Parameter Documentation |
static byte |
KEY_VORTEXT
TODO Missing Parameter Documentation |
protected Server |
m_clServer
TODO Missing Parameter Documentation |
protected int |
m_iSpielgeschwindigkeit
gibt die Spielgeschwindigkeit an von 1 - 60000 |
static byte |
MT_ABWEHR
TODO Missing Parameter Documentation |
static byte |
MT_MITTELFELD
TODO Missing Parameter Documentation |
static byte |
MT_STURM
TODO Missing Parameter Documentation |
static byte |
MT_TORWART
TODO Missing Parameter Documentation |
static byte |
OB_BONUS
TODO Missing Parameter Documentation |
static java.util.Random |
random
TODO Missing Parameter Documentation |
static float |
STURM_MANIPULATOR
Faktor durch den die Anzahl der Stürmer Spieler dividiert wird um endgültige Offensiv/Defensiv Kraft zu bestimmen |
static byte |
TA_DIREKTER_FREISTOSS
TODO Missing Parameter Documentation |
static byte |
TA_EIGENTOR
TODO Missing Parameter Documentation |
static byte |
TA_FELDTOR_PER_KOPF
TODO Missing Parameter Documentation |
static byte |
TA_FELDTOR_SCHWACHER_FUSS
TODO Missing Parameter Documentation |
static byte |
TA_FELDTOR_STARKER_FUSS
TODO Missing Parameter Documentation |
static byte |
TA_FOULELFMETER
TODO Missing Parameter Documentation |
static byte |
TA_HANDELFMETER
TODO Missing Parameter Documentation |
static byte |
TA_NORMAL
Normale Häufigkeit |
static byte |
TA_SELTEN
Kommt selten Vor |
static byte |
TA_TOR_NACH_ECKE
TODO Missing Parameter Documentation |
static byte |
TA_TOR_NACH_FREISTOSS
TODO Missing Parameter Documentation |
static byte |
VA_BAENDERVERLETZUNG
TODO Missing Parameter Documentation |
static byte |
VA_BLUTENDEWUNDE
TODO Missing Parameter Documentation |
static byte |
VA_GELENKSCHADEN
TODO Missing Parameter Documentation |
static byte |
VA_KNOCHENBUCH
TODO Missing Parameter Documentation |
static byte |
VA_MUSKELVERLETZUNG
TODO Missing Parameter Documentation |
static byte |
VA_PRELLUNG
TODO Missing Parameter Documentation |
Constructor Summary | |
---|---|
SpielLogik()
Creates a new SpielLogik object. |
Method Summary | |
---|---|
protected void |
berechneZweikampfwerte(Spielbericht sb)
faked die Zeweikampfwerte |
protected void |
doAbseitsfalleBerechnen(Spielbericht sb)
TODO Missing Method Documentation |
protected void |
doAuswechslung(ServerTeam verein,
int spielerId,
Spielbericht sb,
boolean heim,
int spielminute)
TODO Missing Method Documentation |
protected void |
doEckenBerechnen(Spielbericht sb)
TODO Missing Method Documentation |
void |
doEinfacheSpielberechnung(Spielbericht spielbericht,
Server server)
TODO Missing Method Documentation |
protected void |
doFangesang(Spielbericht sb)
TODO Missing Method Documentation |
protected boolean |
doGelbeKarten(ServerTeam verein,
Spielbericht sb,
byte minute,
boolean heim)
liefert True wenn's gelb/rot gab |
protected int |
doNachspielzeitBerechnen(Spielbericht sb)
berechnet die Nachspielzeit |
protected boolean |
doRoteKartenBerechnen(ServerTeam verein,
Spielbericht sb,
byte minute,
boolean heim)
TODO Missing Method Documentation |
void |
doSpielbeginnInfo(Spielbericht sb)
TODO Missing Method Documentation |
protected void |
doText(byte key)
TODO Missing Method Documentation |
protected int |
doVerletzungBerechnen(byte minute,
ServerTeam verein,
boolean heim)
prüft auf Verletzung |
protected byte |
getGrundFuerGelbeKarte(byte mt)
TODO Missing Method Documentation |
int |
getSpielgeschwindigkeit()
Getter for property m_iSpielgeschwindigkeit. |
protected ServerSpieler |
getVerteidiger(ServerTeam team,
int ignoreID)
liefert einen Spieler der Mannschaft in der Defensive für eine Spielsituation |
static int |
getZufallsZahl(int bis)
Erzeugt eine Zufallszahl von 0 bis einschließlich |
protected void |
sendFangesang(int key,
int art,
int variante,
ServerTeam fanTeam,
java.lang.String fanManager,
ServerTeam gegnerTeam,
java.lang.String gegnerManager,
boolean heim)
TODO Missing Method Documentation |
protected void |
sendInfoMsg(byte msgType,
int variante)
|
protected void |
sendSpielEnde(Spielbericht sb)
TODO Missing Method Documentation |
protected void |
sendSpielminuteRum(Spielbericht sb,
int spielminute)
TODO Missing Method Documentation |
protected void |
sendTorchance(boolean heimTeam,
ServerSpieler schuetze,
ServerSpieler vorbereiter1,
ServerSpieler verteidiger1,
ServerSpieler verteidiger2,
ServerSpieler torwart,
byte torart,
byte torchance,
int spielminute)
TODO Missing Method Documentation |
void |
seSpielgeschwindigkeit(int m_iSpielgeschwindigkeit)
Setter for property m_iSpielgeschwindigkeit. |
ServerSpieler |
TorschuetzeBerechnen(byte torart,
ServerTeam verein)
TODO Missing Method Documentation |
ServerSpieler |
VorbereiterBerechnen(byte torart,
ServerTeam verein)
TODO Missing Method Documentation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CHANCEN_ZUFALLS_RAUM
public static final float ABWEHR_MANIPULATOR
public static final float STURM_MANIPULATOR
public static final byte AVG_TORCHANCEN
public static final byte OB_BONUS
public static final float ESB_OBERGRENZE
public static final float ESB_UNTERGRENZE
public static final byte ESB_STEUERUNG
public static final byte ESB_FAKTOR_STURM
public static final byte ESB_FAKTOR_ABWEHR
public static final byte ESB_OFFENSIVGRENZE
public static final byte ESB_OFFENSIVANPASSUNG
public static final byte TA_FELDTOR_STARKER_FUSS
public static final byte TA_EIGENTOR
public static final byte TA_FELDTOR_SCHWACHER_FUSS
public static final byte TA_FELDTOR_PER_KOPF
public static final byte TA_TOR_NACH_FREISTOSS
public static final byte TA_DIREKTER_FREISTOSS
public static final byte TA_TOR_NACH_ECKE
public static final byte TA_HANDELFMETER
public static final byte TA_FOULELFMETER
public static final byte TA_NORMAL
public static final byte TA_SELTEN
public static final byte KEY_AUSWECHSLUNG
public static final byte KEY_VORTEXT
public static final byte KEY_HALBZEIT
public static final byte KEY_SPIELENDE
public static final byte KEY_NACHSPIELZEIT
public static final byte KEY_VERLAENGERUNG
public static final byte KEY_ELFMETERSCHIESSEN
public static final byte KEY_FANGESANG
public static final byte FG_ANFEUERUNG
public static final byte FG_GEGNER
public static final byte FG_SONSTIGES
public static final byte FG_SCHIRI
public static final byte KEY_ROTEKARTE
public static final byte KEY_GELBEKARTE
public static final byte KEY_GELBROTEKARTE
public static final byte GFK_MECKERN
public static final byte GFK_UNSPORTLICHES_VERHALTEN
public static final byte GFK_FOUL
public static final byte GFK_ABSICHTLICHES_HANDSPIEL
public static final byte KEY_VERLETZUNG
public static final byte VA_BAENDERVERLETZUNG
public static final byte VA_MUSKELVERLETZUNG
public static final byte VA_PRELLUNG
public static final byte VA_KNOCHENBUCH
public static final byte VA_GELENKSCHADEN
public static final byte VA_BLUTENDEWUNDE
public static final byte MT_TORWART
public static final byte MT_ABWEHR
public static final byte MT_MITTELFELD
public static final byte MT_STURM
public static final byte ANGRIFF_ERFOLGREICH
public static final byte ANGRIFF_TORWART_HAELT
public static final byte ANGRIFF_ABWEHR_KLAERT
public static final byte ANGRIFF_MITTELFELD_KLAERT
public static java.util.Random random
protected Server m_clServer
protected int m_iSpielgeschwindigkeit
Constructor Detail |
---|
public SpielLogik()
Method Detail |
---|
public static int getZufallsZahl(int bis)
bis
- ( exklusiv )
public final int getSpielgeschwindigkeit()
public final ServerSpieler TorschuetzeBerechnen(byte torart, ServerTeam verein)
torart
- TODO Missing Method Parameter Documentationverein
- TODO Missing Method Parameter Documentation
public final ServerSpieler VorbereiterBerechnen(byte torart, ServerTeam verein)
torart
- TODO Missing Method Parameter Documentationverein
- TODO Missing Method Parameter Documentation
public final void doEinfacheSpielberechnung(Spielbericht spielbericht, Server server)
spielbericht
- TODO Missing Method Parameter Documentationserver
- TODO Missing Method Parameter Documentationpublic final void doSpielbeginnInfo(Spielbericht sb)
sb
- TODO Missing Method Parameter Documentationpublic final void seSpielgeschwindigkeit(int m_iSpielgeschwindigkeit)
m_iSpielgeschwindigkeit
- New value of property m_iSpielgeschwindigkeit.protected final byte getGrundFuerGelbeKarte(byte mt)
mt
- TODO Missing Method Parameter Documentation
protected final ServerSpieler getVerteidiger(ServerTeam team, int ignoreID)
team
- welches TeamignoreID
- SpielerId die nicht zurückgeliefert werden soll!
protected final void berechneZweikampfwerte(Spielbericht sb)
sb
- TODO Missing Constructuor Parameter Documentationprotected final void doAbseitsfalleBerechnen(Spielbericht sb)
sb
- TODO Missing Method Parameter Documentationprotected final void doAuswechslung(ServerTeam verein, int spielerId, Spielbericht sb, boolean heim, int spielminute)
verein
- TODO Missing Method Parameter DocumentationspielerId
- TODO Missing Method Parameter Documentationsb
- TODO Missing Method Parameter Documentationheim
- TODO Missing Method Parameter Documentationspielminute
- TODO Missing Method Parameter Documentationprotected final void doEckenBerechnen(Spielbericht sb)
sb
- TODO Missing Method Parameter Documentationprotected final void doFangesang(Spielbericht sb)
sb
- TODO Missing Method Parameter Documentationprotected final boolean doGelbeKarten(ServerTeam verein, Spielbericht sb, byte minute, boolean heim)
verein
- TODO Missing Constructuor Parameter Documentationsb
- TODO Missing Constructuor Parameter Documentationminute
- TODO Missing Constructuor Parameter Documentationheim
- TODO Missing Constructuor Parameter Documentation
protected final int doNachspielzeitBerechnen(Spielbericht sb)
sb
- TODO Missing Constructuor Parameter Documentation
protected final boolean doRoteKartenBerechnen(ServerTeam verein, Spielbericht sb, byte minute, boolean heim)
verein
- TODO Missing Method Parameter Documentationsb
- TODO Missing Method Parameter Documentationminute
- TODO Missing Method Parameter Documentationheim
- TODO Missing Method Parameter Documentation
protected final void doText(byte key)
key
- TODO Missing Method Parameter Documentationprotected final int doVerletzungBerechnen(byte minute, ServerTeam verein, boolean heim)
minute
- TODO Missing Constructuor Parameter Documentationverein
- TODO Missing Constructuor Parameter Documentationheim
- TODO Missing Constructuor Parameter Documentation
protected final void sendFangesang(int key, int art, int variante, ServerTeam fanTeam, java.lang.String fanManager, ServerTeam gegnerTeam, java.lang.String gegnerManager, boolean heim)
key
- TODO Missing Method Parameter Documentationart
- TODO Missing Method Parameter Documentationvariante
- TODO Missing Method Parameter DocumentationfanTeam
- TODO Missing Method Parameter DocumentationfanManager
- TODO Missing Method Parameter DocumentationgegnerTeam
- TODO Missing Method Parameter DocumentationgegnerManager
- TODO Missing Method Parameter Documentationheim
- TODO Missing Method Parameter Documentationprotected final void sendInfoMsg(byte msgType, int variante)
protected final void sendSpielEnde(Spielbericht sb)
sb
- TODO Missing Method Parameter Documentationprotected final void sendSpielminuteRum(Spielbericht sb, int spielminute)
sb
- TODO Missing Method Parameter Documentationspielminute
- TODO Missing Method Parameter Documentationprotected final void sendTorchance(boolean heimTeam, ServerSpieler schuetze, ServerSpieler vorbereiter1, ServerSpieler verteidiger1, ServerSpieler verteidiger2, ServerSpieler torwart, byte torart, byte torchance, int spielminute)
heimTeam
- TODO Missing Method Parameter Documentationschuetze
- TODO Missing Method Parameter Documentationvorbereiter1
- TODO Missing Method Parameter Documentationverteidiger1
- TODO Missing Method Parameter Documentationverteidiger2
- TODO Missing Method Parameter Documentationtorwart
- TODO Missing Method Parameter Documentationtorart
- TODO Missing Method Parameter Documentationtorchance
- TODO Missing Method Parameter Documentationspielminute
- TODO Missing Method Parameter Documentation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |