Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PlayerSettings Class Reference

#include <PlayerSettings.h>

Inheritance diagram for PlayerSettings:

Inheritance graph
[legend]
Collaboration diagram for PlayerSettings:

Collaboration graph
[legend]
List of all members.

Public Methods

 PlayerSettings ()
double getPlayerConfThr () const
bool setPlayerConfThr (double d)
double getPlayerHighConfThr () const
bool setPlayerHighConfThr (double d)
double getBallConfThr () const
bool setBallConfThr (double d)
double getPlayerDistTolerance () const
bool setPlayerDistTolerance (double d)
double getPlayerWhenToTurnAngle () const
bool setPlayerWhenToTurnAngle (double d)
double getPlayerWhenToKick () const
bool setPlayerWhenToKick (double d)
int getPlayerWhenToIntercept () const
bool setPlayerWhenToIntercept (int i)
double getClearBallDist () const
bool setClearBallDist (double d)
double getClearBallOppMaxDist () const
bool setClearBallOppMaxDist (double d)
double getClearBallToSideAngle () const
bool setClearBallToSideAngle (double d)
double getConeWidth () const
bool setConeWidth (double d)
double getPassEndSpeed () const
bool setPassEndSpeed (double d)
double getFastPassEndSpeed () const
bool setFastPassEndSpeed (double d)
double getPassExtraX () const
bool setPassExtraX (double d)
double getFractionWaitNoSee () const
bool setFractionWaitNoSee (double d)
double getFractionWaitSeeBegin () const
bool setFractionWaitSeeBegin (double d)
double getFractionWaitSeeEnd () const
bool setFractionWaitSeeEnd (double d)
double getMarkDistance () const
bool setMarkDistance (double d)
double getStratAreaRadius () const
bool setStratAreaRadius (double d)
double getShootRiskProbability () const
bool setShootRiskProbability (double d)
int getCyclesCatchWait () const
bool setCyclesCatchWait (int i)
int getServerTimeOut () const
bool setServerTimeOut (int i)
double getDribbleAngThr () const
bool setDribbleAngThr (double d)
double getTurnWithBallAngThr () const
bool setTurnWithBallAngThr (double d)
double getTurnWithBallFreezeThr () const
bool setTurnWithBallFreezeThr (double d)
int getInitialFormation () const
bool setInitialFormation (int i)
double getMaxYPercentage () const
bool setMaxYPercentage (double d)

Private Attributes

double dPlayerConfThr
double dPlayerHighConfThr
double dBallConfThr
double dPlayerDistTolerance
double dPlayerWhenToTurnAngle
double dPlayerWhenToKick
int iPlayerWhenToIntercept
double dClearBallDist
double dClearBallOppMaxDist
double dClearBallToSideAngle
double dConeWidth
double dPassEndSpeed
double dFastPassEndSpeed
double dPassExtraX
double dFractionWaitNoSee
double dFractionWaitSeeBegin
double dFractionWaitSeeEnd
double dMarkDistance
double dStratAreaRadius
double dShootRiskProbability
int iCyclesCatchWait
int iServerTimeOut
double dDribbleAngThr
double dTurnWithBallAngThr
double dTurnWithBallFreezeThr
int iInitialFormation
double dMaxYPercentage

Detailed Description

This class contains all the settings that are important for the client (agent) to determine its actions. It contains mostly threshold values to determine whether a certain kind of actions should be taken or not. Furthermore this class contains all the standard set- and get methods for manipulating these values. Although it is normally not the case that these values are changed at runtime. The PlayerSettings class is a subclass of the GenericValues class and therefore each value in this class can be reached through the string name of the corresponding parameter. This may be helpful when the parameters are taken from a configuration file.

Definition at line 67 of file PlayerSettings.h.


Constructor & Destructor Documentation

PlayerSettings::PlayerSettings  
 

This method initializes all client settings and adds these to the generic values class with the effect that they can referenced by their textual name.

Definition at line 58 of file PlayerSettings.cpp.

References GenericValues::addSetting(), dBallConfThr, dClearBallDist, dClearBallOppMaxDist, dClearBallToSideAngle, dConeWidth, dDribbleAngThr, dFastPassEndSpeed, dFractionWaitNoSee, dFractionWaitSeeBegin, dFractionWaitSeeEnd, dMarkDistance, dMaxYPercentage, dPassEndSpeed, dPassExtraX, dPlayerConfThr, dPlayerDistTolerance, dPlayerHighConfThr, dPlayerWhenToKick, dPlayerWhenToTurnAngle, dShootRiskProbability, dStratAreaRadius, dTurnWithBallAngThr, dTurnWithBallFreezeThr, GENERIC_VALUE_DOUBLE, GENERIC_VALUE_INTEGER, iCyclesCatchWait, iInitialFormation, iPlayerWhenToIntercept, and iServerTimeOut.


Member Function Documentation

double PlayerSettings::getBallConfThr   const
 

This method returns the confidence threshold below which ball information is assumed illegal.

Returns:
ball confidence threshold

Definition at line 166 of file PlayerSettings.cpp.

References dBallConfThr.

Referenced by Player::deMeer5(), Player::deMeer5_goalie(), and WorldModel::getStrategicPosition().

double PlayerSettings::getClearBallDist   const
 

This method returns the clear ball distance. When a clear ball is performed, the ball is aimed to a point just in front of the penalty area of the opponent. This method returns the distance before the penalty area to which the ball is aimed.

Returns:
clear ball distance before opponent penalty area

Definition at line 265 of file PlayerSettings.cpp.

References dClearBallDist.

Referenced by BasicPlayer::clearBall().

double PlayerSettings::getClearBallOppMaxDist   const
 

This method returns the distance in which opponents are taken into account when a clear ball is issued.

Returns:
maximum opponent distance for clear ball.

Definition at line 283 of file PlayerSettings.cpp.

References dClearBallOppMaxDist.

Referenced by BasicPlayer::clearBall(), and BasicPlayer::getShootPositionOnLine().

double PlayerSettings::getClearBallToSideAngle   const
 

This method returns the minimum needed angle for a clear ball to the side.

Returns:
minimum needed angle for clear ball to side

Definition at line 300 of file PlayerSettings.cpp.

References dClearBallToSideAngle.

double PlayerSettings::getConeWidth   const
 

This method returns the cone width that is used to check for opponents when passing to a player. A pass is only performed when no opponents are in the cone. The cone is specified as the width to one side after distance 1. So for a value of 0.5 the cone angle equals 45 (22.5 to both sides).

Returns:
cone width in which no opponents are allowed when passing

Definition at line 320 of file PlayerSettings.cpp.

References dConeWidth.

Referenced by BasicPlayer::outplayOpponent().

int PlayerSettings::getCyclesCatchWait   const
 

This method returns the number of cycles waited by the goalkeeper after he has catched the ball.

Returns:
number of cycles goalkeeper waits after catch

Definition at line 523 of file PlayerSettings.cpp.

References iCyclesCatchWait.

Referenced by WorldModel::getStrategicPosition().

double PlayerSettings::getDribbleAngThr   const
 

This method returns the threshold to determine when the agent turns towards the dribble direction when dribbling. When the global angle difference is larger than this value, the agent performs a turnWithBallTo.

Returns:
threshold value for angle

Definition at line 563 of file PlayerSettings.cpp.

References dDribbleAngThr.

Referenced by BasicPlayer::dribble(), and BasicPlayer::outplayOpponent().

double PlayerSettings::getFastPassEndSpeed   const
 

This method returns the desired end speed for the ball when a fast pass is performed.

Returns:
desired end speed for ball when it is passed fast

Definition at line 358 of file PlayerSettings.cpp.

References dFastPassEndSpeed.

Referenced by BasicPlayer::directPass().

double PlayerSettings::getFractionWaitNoSee   const
 

This method returns the fraction of the simulation step that is waited before an action is sent to the server in case no see message will arrive in this cycle.

Returns:
fraction of simulation step that is waited when no see arrives

Definition at line 396 of file PlayerSettings.cpp.

References dFractionWaitNoSee.

Referenced by SenseHandler::setTimeSignal().

double PlayerSettings::getFractionWaitSeeBegin   const
 

This method returns the fraction of the simulation step that is waited before an action is sent to the server in case the see message will arrive in the first half of the cycle.

Returns:
fraction of simulation step that is waited when see arrives in first half of the cycle

Definition at line 418 of file PlayerSettings.cpp.

References dFractionWaitSeeBegin.

Referenced by SenseHandler::setTimeSignal().

double PlayerSettings::getFractionWaitSeeEnd   const
 

This method returns the fraction of the simulation step that is waited before an action is sent to the server in case the see message will arrive in the second half of the cycle.

Returns:
fraction of simulation step that is waited when see arrives in second half of the cycle

Definition at line 440 of file PlayerSettings.cpp.

References dFractionWaitSeeEnd.

Referenced by SenseHandler::setTimeSignal(), and WorldModel::updateAll().

int PlayerSettings::getInitialFormation   const
 

This method returns the initial formation of the team.

Returns:
number of cycles goalkeeper waits after catch

Definition at line 624 of file PlayerSettings.cpp.

References iInitialFormation.

Referenced by main().

double PlayerSettings::getMarkDistance   const
 

This method returns the desired distance to an opponent which should be marked.

Returns:
desired marking distance to an opponent

Definition at line 460 of file PlayerSettings.cpp.

References dMarkDistance.

double PlayerSettings::getMaxYPercentage   const
 

This method returns the percentage of the field width. The corresponding y position is the maximum allowed y position for a player's strategic position.

Returns:
maximum y percentage on the field.

Definition at line 642 of file PlayerSettings.cpp.

References dMaxYPercentage.

Referenced by WorldModel::getStrategicPosition().

double PlayerSettings::getPassEndSpeed   const
 

This method returns the desired end speed for the ball when a normal pass is performed.

Returns:
desired end speed for ball

Definition at line 340 of file PlayerSettings.cpp.

References dPassEndSpeed.

Referenced by BasicPlayer::directPass(), BasicPlayer::getEndSpeedForPass(), and BasicPlayer::leadingPass().

double PlayerSettings::getPassExtraX   const
 

This method returns the x value that can be added to the position of a teammate when a leading pass to this teammate is performed.

Returns:
x value added to teammate to which is passed

Definition at line 377 of file PlayerSettings.cpp.

References dPassExtraX.

double PlayerSettings::getPlayerConfThr   const
 

This method returns the confidence threshold below which player information is assumed illegal

Returns:
player confidence threshold

Definition at line 130 of file PlayerSettings.cpp.

References dPlayerConfThr.

Referenced by WorldModel::getClosestInSetTo(), WorldModel::getDirectionOfWidestAngle(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), WorldModel::getSecondClosestInSetTo(), BasicPlayer::interceptClose(), WorldModel::isConfidenceGood(), WorldModel::iterateObjectNext(), WorldModel::logCoordInfo(), WorldModel::logDrawInfo(), WorldModel::logObjectInformation(), WorldModel::updateAfterSeeMessage(), WorldModel::updateAfterSenseMessage(), and WorldModel::updateRelativeFromGlobal().

double PlayerSettings::getPlayerDistTolerance   const
 

This method returns the radius in which a player has to be to be mapped from unknown to known player

Returns:
radius in which player is assumed same player.

Definition at line 184 of file PlayerSettings.cpp.

References dPlayerDistTolerance.

Referenced by WorldModel::mapUnknownPlayers(), WorldModel::processNewObjectInfo(), and WorldModel::processUnsureHearInfo().

double PlayerSettings::getPlayerHighConfThr   const
 

This method returns the confidence threshold above which player information is assumed very good.

Returns:
player high confidence threshold

Definition at line 148 of file PlayerSettings.cpp.

References dPlayerHighConfThr.

Referenced by WorldModel::isConfidenceVeryGood().

int PlayerSettings::getPlayerWhenToIntercept   const
 

This method returns the maximal allowed number of cycles to intercept the ball. If it takes more cycles to intercept the ball, the ball is not intercepted.

Returns:
number of intercept cycles

Definition at line 245 of file PlayerSettings.cpp.

References iPlayerWhenToIntercept.

Referenced by WorldModel::createInterceptFeatures(), BasicPlayer::getActiveInterceptionPointBall(), BasicPlayer::getInterceptionPointBall(), WorldModel::predictCommandToInterceptBall(), and WorldModel::predictNrCyclesToObject().

double PlayerSettings::getPlayerWhenToKick   const
 

This method returns the percentage of the maximal acceleration in which case a kick should still be performed. This value is needed to determine whether the ball should be better positioned or should be kicked when the ball should be kicked hard. If it is possible to accelerate the ball with a higher percentage than the returned percentage the kick is performed, in all other cases the ball is positioned better.

Returns:
percentage of ball acceleration when kick should be performed

Definition at line 225 of file PlayerSettings.cpp.

References dPlayerWhenToKick.

Referenced by BasicPlayer::kickTo().

double PlayerSettings::getPlayerWhenToTurnAngle   const
 

This method returns the angle when a player determines to turn to a point first before moving towards it.

Returns:
global angle when player first moves before moving towards point

Definition at line 202 of file PlayerSettings.cpp.

References dPlayerWhenToTurnAngle.

Referenced by Player::deMeer5(), Player::deMeer5_goalie(), BasicPlayer::getActiveInterceptionPointBall(), BasicPlayer::getInterceptionPointBall(), BasicPlayer::interceptCloseGoalie(), and WorldModel::predictCommandTurnTowards().

int PlayerSettings::getServerTimeOut   const
 

This method returns the number of seconds before the server is assumed dead. When no message is received from the server for this amount of seconds, it is assumed that the server program has been closed and the agent will exits.

Returns:
number of seconds before server is assumed dead

Definition at line 543 of file PlayerSettings.cpp.

References iServerTimeOut.

Referenced by WorldModel::waitForNewInformation().

double PlayerSettings::getShootRiskProbability   const
 

This method returns the minimum needed probability for the ball to enter the goal when a "risky" scoring attempt is performed. That is when an agent tries to score although the success rate is not very high, he will always shoot to a point in the goal where the probability that the ball will enter the goal is higher than the value returned by this method.

Returns:
minimum needed probability that the ball will enter the goal

Definition at line 501 of file PlayerSettings.cpp.

References dShootRiskProbability.

double PlayerSettings::getStratAreaRadius   const
 

This method returns the radius around the strategic position in which an optimal position is considered.

Returns:
radius around strategic position in which an optimal position is considered

Definition at line 479 of file PlayerSettings.cpp.

References dStratAreaRadius.

double PlayerSettings::getTurnWithBallAngThr   const
 

This method returns the threshold to determine when the ball is kicked to another position in the turnWithBallTo skill. When the global angle difference is larger than this value, the ball is repositioned otherwise it is not.

Returns:
threshold value for angle

Definition at line 585 of file PlayerSettings.cpp.

References dTurnWithBallAngThr.

Referenced by BasicPlayer::dribble(), and BasicPlayer::outplayOpponent().

double PlayerSettings::getTurnWithBallFreezeThr   const
 

This method returns the threshold to determine when the ball is frozen in the turnWithBallTo skill. When the ball speed is larger than this value, the ball is frozen otherwise not

Returns:
threshold value for freezing the ball

Definition at line 606 of file PlayerSettings.cpp.

References dTurnWithBallFreezeThr.

Referenced by BasicPlayer::dribble(), and BasicPlayer::outplayOpponent().

bool PlayerSettings::setBallConfThr double    d
 

This method sets the confidence threshold below which ball information is assumed illegal

Parameters:
d  ball confidence threshold in range [0..1]
Returns:
boolean indicating whether update was successful

Definition at line 175 of file PlayerSettings.cpp.

References dBallConfThr.

bool PlayerSettings::setClearBallDist double    d
 

This method sets the clear ball distance.

Parameters:
d  new clear ball distance before opponent penalty area (>0).
Returns:
boolean indicating whether update was successful

Definition at line 274 of file PlayerSettings.cpp.

References dClearBallDist.

bool PlayerSettings::setClearBallOppMaxDist double    d
 

This method sets the distance in which opponents are taken into account when a clear ball is issued.

Parameters:
d  maximum opponent distance for clear ball (>0).
Returns:
boolean indicating whether update was successful

Definition at line 292 of file PlayerSettings.cpp.

References dClearBallOppMaxDist.

bool PlayerSettings::setClearBallToSideAngle double    d
 

This method sets the minimum needed angle for a clear ball to the side.

Parameters:
d  minimum needed angle (>0) for clear ball to side
Returns:
boolean indicating whether update was successful

Definition at line 308 of file PlayerSettings.cpp.

References dClearBallToSideAngle.

bool PlayerSettings::setConeWidth double    d
 

This method sets the cone width in which no opponents are allowed when the ball is passed to a teammate. The cone width is specified as the width to one side after distance 1. So for a value of 0.5 the cone angle equals 45 (22.5 to both sides).

Parameters:
d  cone width in which no opponents are allowed when passing (>0)
Returns:
boolean indicating whether update was successful

Definition at line 331 of file PlayerSettings.cpp.

References dConeWidth.

bool PlayerSettings::setCyclesCatchWait int    i
 

This method sets the number of cycles waited by the goalkeeper after he has catched the ball.

Parameters:
i  number of cycles goalkeeper waits after catch
Returns:
boolean indicating whether update was successful

Definition at line 532 of file PlayerSettings.cpp.

References iCyclesCatchWait.

bool PlayerSettings::setDribbleAngThr double    d
 

This method sets the threshold to determine when the agent turns towards the dribble direction when dribbling. When the global angle difference is larger than this value, the agent performs a turnWithBallTo.

Parameters:
d  threshold value for angle
Returns:
bool indicating whether update was succesfull.

Definition at line 573 of file PlayerSettings.cpp.

References dDribbleAngThr.

bool PlayerSettings::setFastPassEndSpeed double    d
 

This method sets the desired end speed for the ball when a fast pass is performed.

Parameters:
d  desired end speed for passing ball fast (>0)
Returns:
boolean indicating whether update was successful

Definition at line 368 of file PlayerSettings.cpp.

References dFastPassEndSpeed.

bool PlayerSettings::setFractionWaitNoSee double    d
 

This method sets the fraction of the simulation step that is waited before an action is sent to the server in case no see message will arrive in this cycle.

Parameters:
d  fraction of simulation step that is waited when no see arrives (in range [0..1])
Returns:
boolean indicating whether update was successful

Definition at line 407 of file PlayerSettings.cpp.

References dFractionWaitNoSee.

bool PlayerSettings::setFractionWaitSeeBegin double    d
 

This method sets the fraction of the simulation step that is waited before an action is sent to the server in case the see message will arrive in the first part of the cycle.

Parameters:
d  fraction of simulation step that is waited when see arrives in the first half of the cycle (in range [0..1])
Returns:
boolean indicating whether update was successful

Definition at line 429 of file PlayerSettings.cpp.

References dFractionWaitSeeBegin.

bool PlayerSettings::setFractionWaitSeeEnd double    d
 

This method sets the fraction of the simulation step that is waited before an action is sent to the server in case the see message will arrive in the second part of the cycle.

Parameters:
d  fraction of simulation step that is waited when see arrives in the second half of the cycle (in range [0..1])
Returns:
boolean indicating whether update was successful

Definition at line 451 of file PlayerSettings.cpp.

References dFractionWaitSeeEnd.

Referenced by WorldModel::updateAll().

bool PlayerSettings::setInitialFormation int    i
 

This method sets the initial formation of the team.

Parameters:
i  initital formation of the team
Returns:
boolean indicating whether update was successful

Definition at line 632 of file PlayerSettings.cpp.

References iInitialFormation.

bool PlayerSettings::setMarkDistance double    d
 

This method sets the desired distance to an opponent which should be marked.

Parameters:
d  desired marking distance to an opponent
Returns:
boolean indicating whether update was successful

Definition at line 469 of file PlayerSettings.cpp.

References dMarkDistance.

bool PlayerSettings::setMaxYPercentage double    d
 

This method sets the percentage of the field width. The corresponding y position is the maximum allowed y position for a player's strategic position.

Parameters:
d  percentage of the field width
Returns:
bool indicating whether update was succesfull.

Definition at line 652 of file PlayerSettings.cpp.

References dMaxYPercentage.

bool PlayerSettings::setPassEndSpeed double    d
 

This method sets the desired end speed for the ball when a normal pass is performed.

Parameters:
d  desired end speed for ball (>0)
Returns:
boolean indicating whether update was successful

Definition at line 349 of file PlayerSettings.cpp.

References dPassEndSpeed.

bool PlayerSettings::setPassExtraX double    d
 

This method sets the x value that is added to the position of a teammate when a leading pass is performed.

Parameters:
d  x value added to teammate to which is passed
Returns:
boolean indicating whether update was successful

Definition at line 386 of file PlayerSettings.cpp.

References dPassExtraX.

bool PlayerSettings::setPlayerConfThr double    d
 

This method sets the confidence threshold below which player information is assumed illegal

Parameters:
d  player confidence threshold in range [0..1]
Returns:
boolean indicating whether update was successful

Definition at line 139 of file PlayerSettings.cpp.

References dPlayerConfThr.

bool PlayerSettings::setPlayerDistTolerance double    d
 

This method sets the radius in which a player has to be to be mapped from unknown to known player

Parameters:
d  radius (>0) in which player is assumed same player
Returns:
boolean indicating whether update was successful

Definition at line 193 of file PlayerSettings.cpp.

References dPlayerDistTolerance.

bool PlayerSettings::setPlayerHighConfThr double    d
 

This method sets the confidence threshold above which player information is assumed very good

Parameters:
d  player high confidence threshold in range [0..1]
Returns:
boolean indicating whether update was successful

Definition at line 157 of file PlayerSettings.cpp.

References dPlayerHighConfThr.

bool PlayerSettings::setPlayerWhenToIntercept int    i
 

This methods sets the maximal allowed number of cycles to intercept the ball.

Parameters:
i  new maximal allowed number of cycles (>0)
Returns:
boolean indicating whether update was successful

Definition at line 254 of file PlayerSettings.cpp.

References iPlayerWhenToIntercept.

bool PlayerSettings::setPlayerWhenToKick double    d
 

This method sets the percentage of the maximal acceleration that defines in which cases the ball is actually kicked or in which case it is positioned better when the ball should be given a very high velocity.

Parameters:
d  percentage in range [0..1]
Returns:
boolean indicating whether update was successful

Definition at line 235 of file PlayerSettings.cpp.

References dPlayerWhenToKick.

bool PlayerSettings::setPlayerWhenToTurnAngle double    d
 

This method sets the angle when a player determines to turn to a point first before moving towards it.

Parameters:
d  global angle when player turns in move (interval [0..360]).
Returns:
boolean indicating whether update was successful

Definition at line 211 of file PlayerSettings.cpp.

References dPlayerWhenToTurnAngle.

bool PlayerSettings::setServerTimeOut int    i
 

This method sets the number of seconds before the server is assumed dead. When no message is received from the server for this amount of seconds, it is assumed that the server is stopped and the agent exits.

Parameters:
i  number of seconds before server is assumed dead
Returns:
bool indicating whether update was succesfull.

Definition at line 553 of file PlayerSettings.cpp.

References iServerTimeOut.

bool PlayerSettings::setShootRiskProbability double    d
 

This method sets the minimum needed probability for the ball to enter the goal when a "risky" scoring attempt is performed. That is when an agent tries to score although the success rate is not very high, he will always shoot to a point in the goal where the probability that the ball will enter the goal is higher than this value.

Parameters:
d  minimum needed probability that the ball enters the goal [0..1]
Returns:
boolean indicating whether update was successful

Definition at line 514 of file PlayerSettings.cpp.

References dShootRiskProbability.

bool PlayerSettings::setStratAreaRadius double    d
 

This method sets the radius around the strategic position in which an optimal position is considered.

Parameters:
d  radius around strategic position in which an optimal position is considered (>0)
Returns:
boolean indicating whether update was successful

Definition at line 489 of file PlayerSettings.cpp.

References dStratAreaRadius.

bool PlayerSettings::setTurnWithBallAngThr double    d
 

This method sets the threshold to determine when the ball is kicked to another position in the turnWithBallTo skill. When the global angle difference is larger than this value, the ball is repositioned otherwise it is not.

Parameters:
d  threshold value for angle
Returns:
bool indicating whether update was succesfull.

Definition at line 596 of file PlayerSettings.cpp.

References dTurnWithBallAngThr.

bool PlayerSettings::setTurnWithBallFreezeThr double    d
 

This method sets the threshold to determine when the ball is frozen in the turnWithBallTo skill. When the ball speed is larger than this value, the ball is frozen otherwise not

Parameters:
d  threshold value for freezing the ball
Returns:
bool indicating whether update was succesfull.

Definition at line 616 of file PlayerSettings.cpp.

References dTurnWithBallFreezeThr.


Member Data Documentation

double PlayerSettings::dBallConfThr [private]
 

confidence threshold below which ball information is assumed illegal

Definition at line 73 of file PlayerSettings.h.

Referenced by getBallConfThr(), PlayerSettings(), and setBallConfThr().

double PlayerSettings::dClearBallDist [private]
 

distance before the penalty area to clear the ball to

Definition at line 81 of file PlayerSettings.h.

Referenced by getClearBallDist(), PlayerSettings(), and setClearBallDist().

double PlayerSettings::dClearBallOppMaxDist [private]
 

radius in which opponent has to be to be taken into account for clear ball

Definition at line 83 of file PlayerSettings.h.

Referenced by getClearBallOppMaxDist(), PlayerSettings(), and setClearBallOppMaxDist().

double PlayerSettings::dClearBallToSideAngle [private]
 

minimum angle between opponents before clear ball is taken into account

Definition at line 85 of file PlayerSettings.h.

Referenced by getClearBallToSideAngle(), PlayerSettings(), and setClearBallToSideAngle().

double PlayerSettings::dConeWidth [private]
 

Cone width (at distance 1) to check for opponents when passing to player.

Definition at line 87 of file PlayerSettings.h.

Referenced by getConeWidth(), PlayerSettings(), and setConeWidth().

double PlayerSettings::dDribbleAngThr [private]
 

Threshold value for angle difference that indicates when the agent turns towards the dribble direction.

Definition at line 114 of file PlayerSettings.h.

Referenced by getDribbleAngThr(), PlayerSettings(), and setDribbleAngThr().

double PlayerSettings::dFastPassEndSpeed [private]
 

end speed ball when passed fast

Definition at line 90 of file PlayerSettings.h.

Referenced by getFastPassEndSpeed(), PlayerSettings(), and setFastPassEndSpeed().

double PlayerSettings::dFractionWaitNoSee [private]
 

% of simulation step that is waited before action is sent in case no see message arrives

Definition at line 93 of file PlayerSettings.h.

Referenced by getFractionWaitNoSee(), PlayerSettings(), and setFractionWaitNoSee().

double PlayerSettings::dFractionWaitSeeBegin [private]
 

% of simulation step that is waited before action is sent in case see message arrives in first half cycle

Definition at line 96 of file PlayerSettings.h.

Referenced by getFractionWaitSeeBegin(), PlayerSettings(), and setFractionWaitSeeBegin().

double PlayerSettings::dFractionWaitSeeEnd [private]
 

% of simulation step that is waited before action is sent in case see message arrives in second half cycle

Definition at line 99 of file PlayerSettings.h.

Referenced by getFractionWaitSeeEnd(), PlayerSettings(), and setFractionWaitSeeEnd().

double PlayerSettings::dMarkDistance [private]
 

This is the distance the agent marks an opponent.

Definition at line 102 of file PlayerSettings.h.

Referenced by getMarkDistance(), PlayerSettings(), and setMarkDistance().

double PlayerSettings::dMaxYPercentage [private]
 

Maximum y percentage of the field width for the y position in a strategic position.

Definition at line 124 of file PlayerSettings.h.

Referenced by getMaxYPercentage(), PlayerSettings(), and setMaxYPercentage().

double PlayerSettings::dPassEndSpeed [private]
 

end speed ball when passed to teammate

Definition at line 89 of file PlayerSettings.h.

Referenced by getPassEndSpeed(), PlayerSettings(), and setPassEndSpeed().

double PlayerSettings::dPassExtraX [private]
 

extra x value added to x coordinate of player pos to which is passed

Definition at line 91 of file PlayerSettings.h.

Referenced by getPassExtraX(), PlayerSettings(), and setPassExtraX().

double PlayerSettings::dPlayerConfThr [private]
 

confidence threshold below which player information is assumed illegal

Definition at line 69 of file PlayerSettings.h.

Referenced by getPlayerConfThr(), PlayerSettings(), and setPlayerConfThr().

double PlayerSettings::dPlayerDistTolerance [private]
 

radius in which player has to be to be mapped from unknown to known player

Definition at line 75 of file PlayerSettings.h.

Referenced by getPlayerDistTolerance(), PlayerSettings(), and setPlayerDistTolerance().

double PlayerSettings::dPlayerHighConfThr [private]
 

confidence threshold above which player information is assumed very good

Definition at line 71 of file PlayerSettings.h.

Referenced by getPlayerHighConfThr(), PlayerSettings(), and setPlayerHighConfThr().

double PlayerSettings::dPlayerWhenToKick [private]
 

percentage of kick power rate when kick is performed

Definition at line 78 of file PlayerSettings.h.

Referenced by getPlayerWhenToKick(), PlayerSettings(), and setPlayerWhenToKick().

double PlayerSettings::dPlayerWhenToTurnAngle [private]
 

angle when to turn to ball when moving

Definition at line 77 of file PlayerSettings.h.

Referenced by getPlayerWhenToTurnAngle(), PlayerSettings(), and setPlayerWhenToTurnAngle().

double PlayerSettings::dShootRiskProbability [private]
 

This is the probability for the ball to enter the goal that is used when scoring with risk

Definition at line 107 of file PlayerSettings.h.

Referenced by getShootRiskProbability(), PlayerSettings(), and setShootRiskProbability().

double PlayerSettings::dStratAreaRadius [private]
 

This is the radius around the strategic position in which an optimal position is determined.

Definition at line 104 of file PlayerSettings.h.

Referenced by getStratAreaRadius(), PlayerSettings(), and setStratAreaRadius().

double PlayerSettings::dTurnWithBallAngThr [private]
 

Threshold value for angle difference that indicates when the ball is kicked in turnWithBallTo skill.

Definition at line 117 of file PlayerSettings.h.

Referenced by getTurnWithBallAngThr(), PlayerSettings(), and setTurnWithBallAngThr().

double PlayerSettings::dTurnWithBallFreezeThr [private]
 

Threshold value for ball speed that indicates when the ball is frozen in turnWithBallTo skill.

Definition at line 120 of file PlayerSettings.h.

Referenced by getTurnWithBallFreezeThr(), PlayerSettings(), and setTurnWithBallFreezeThr().

int PlayerSettings::iCyclesCatchWait [private]
 

Cycles the coach waits after a catch has been performed before he shoots.

Definition at line 110 of file PlayerSettings.h.

Referenced by getCyclesCatchWait(), PlayerSettings(), and setCyclesCatchWait().

int PlayerSettings::iInitialFormation [private]
 

Initial formation for the team.

Definition at line 123 of file PlayerSettings.h.

Referenced by getInitialFormation(), PlayerSettings(), and setInitialFormation().

int PlayerSettings::iPlayerWhenToIntercept [private]
 

how many cycles to ball when intercept

Definition at line 80 of file PlayerSettings.h.

Referenced by getPlayerWhenToIntercept(), PlayerSettings(), and setPlayerWhenToIntercept().

int PlayerSettings::iServerTimeOut [private]
 

Number of seconds before the soccer server is assumed dead.

Definition at line 112 of file PlayerSettings.h.

Referenced by getServerTimeOut(), PlayerSettings(), and setServerTimeOut().


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 11:46:06 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001