de.hattrickorganizer.logik.matchengine.engine.core
Class CounterAttackGenerator

java.lang.Object
  extended by de.hattrickorganizer.logik.matchengine.engine.core.BaseActionGenerator
      extended by de.hattrickorganizer.logik.matchengine.engine.core.CounterAttackGenerator

public class CounterAttackGenerator
extends BaseActionGenerator

TODO Missing Class Documentation

Author:
TODO Author Name

Constructor Summary
CounterAttackGenerator(TeamData homeTeamData, TeamData awayTeamData)
           
 
Method Summary
protected  Action calculateCounterAttack(int minute, TeamGameData team)
          Generates the CA action, if any
 
Methods inherited from class de.hattrickorganizer.logik.matchengine.engine.core.BaseActionGenerator
compare, getArea, getEffectiveness, getRandom, getRandomInt, hasChance, isScore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterAttackGenerator

public CounterAttackGenerator(TeamData homeTeamData,
                              TeamData awayTeamData)
Method Detail

calculateCounterAttack

protected final Action calculateCounterAttack(int minute,
                                              TeamGameData team)
Generates the CA action, if any

Parameters:
minute - The minute to simulate
team - The TeamGameData for the team having the opportunity for a CA
Returns:
the CA Action generated or null if team had no CA