uk.ac.ed.inf.sdp2012.group7.strategy.planning
Class TargetDecision

java.lang.Object
  extended by uk.ac.ed.inf.sdp2012.group7.strategy.planning.TargetDecision

public class TargetDecision
extends java.lang.Object

Author:
s0955088 EVERYTHING IN HERE SHOULD BE IN THE NODE SYSTEM

Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
TargetDecision(AllMovingObjects aMO, AllStaticObjects aSO)
           
 
Method Summary
 Node ballPrediction(double time)
           
static Node ballPredictionCalculation(Node ball, double angle, double velocity, double time, double pitchWidthInNodes, double pitchHeightInNodes)
           
 int getAction()
           
 double getAngleWanted()
           
 boolean getBallOnThePitch()
           
 boolean getClearShot()
           
 Node getNavPoint()
           
 int getPlanType()
           
 Node getTarget()
           
 double getTargetCM()
           
 boolean getTheyHaveTheBall()
           
 boolean getWeHaveTheBall()
           
 void setTargets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger
Constructor Detail

TargetDecision

public TargetDecision(AllMovingObjects aMO,
                      AllStaticObjects aSO)
Method Detail

setTargets

public void setTargets()

ballPrediction

public Node ballPrediction(double time)

ballPredictionCalculation

public static Node ballPredictionCalculation(Node ball,
                                             double angle,
                                             double velocity,
                                             double time,
                                             double pitchWidthInNodes,
                                             double pitchHeightInNodes)

getClearShot

public boolean getClearShot()

getAction

public int getAction()

getPlanType

public int getPlanType()

getAngleWanted

public double getAngleWanted()

getTarget

public Node getTarget()

getNavPoint

public Node getNavPoint()

getWeHaveTheBall

public boolean getWeHaveTheBall()

getTheyHaveTheBall

public boolean getTheyHaveTheBall()

getBallOnThePitch

public boolean getBallOnThePitch()

getTargetCM

public double getTargetCM()