#include <Formations.h>
Public Methods | |
PlayerTypeInfo () | |
PlayerTypeInfo (PlayerT, double, double, double, double, bool) | |
bool | setValues (PlayerT, double, double, double, double, bool) |
void | show (ostream &os=cout) |
bool | setPlayerType (PlayerT type) |
PlayerT | getPlayerType () const |
bool | setAttrX (double attrX) |
double | getAttrX () const |
bool | setAttrY (double attrY) |
double | getAttrY () const |
bool | setMinX (double minX) |
double | getMinX () const |
bool | setMaxX (double maxX) |
double | getMaxX () const |
bool | setBehindBall (bool b) |
bool | getBehindBall () const |
Private Attributes | |
PlayerT | playerType |
double | dAttrX |
double | dAttrY |
double | dMinX |
double | dMaxX |
bool | bBehindBall |
Definition at line 94 of file Formations.h.
|
This method is the default constructor and sets all the values of this class to "illegal" values. This method is needed when an array of this class is initialized, since then the default constructor (without arguments) is called. Afterwards the actual values should be set using the method setValues. Definition at line 64 of file Formations.cpp. References PT_ILLEGAL, setValues(), and UnknownDoubleValue. |
|
This Constructor receives the values for all the member variables as arguments and initializes the member variables using the method setValues.
Definition at line 79 of file Formations.cpp. References bBehindBall, dAttrX, dAttrY, dMaxX, dMinX, PlayerT, and setValues(). |
|
This method returns the x attraction to the ball for this player type. The x attraction to the ball is a double in the range (0,1). This value is used to determine the x coordinate of the strategic position for this player type. The x attraction of the ball is multiplied with the x coordinate of the ball and added to the home position of the agent to determine the x coordinate of the strategic position.
Definition at line 156 of file Formations.cpp. References dAttrX. Referenced by Formations::getStrategicPosition(). |
|
This method returns the y attraction to the ball for this player type. The y attraction to the ball is a double in the range (0,1). This value is used to determine the y coordinate of the strategic position for this player type. The y attraction of the ball is multiplied with the y coordinate of the ball and added to the home position of the agent to determine the y coordinate of the strategic position.
Definition at line 182 of file Formations.cpp. References dAttrY. Referenced by Formations::getStrategicPosition(). |
|
This method returns the value that indicates whether this player type should stay behind the ball or not. When set to true and the strategic position for this player type is calculated to be in front of the ball. The x coordinate of the strategic position is set to the x coordinate of the ball.
Definition at line 246 of file Formations.cpp. References bBehindBall. Referenced by Formations::getStrategicPosition(). |
|
This method returns the maximal x coordinate for this player type. When the calculated x coordinate for the strategic position is larger than this value, the x coordinate is set to this maximal x coordinate.
Definition at line 222 of file Formations.cpp. References dMaxX. Referenced by Formations::getStrategicPosition(). |
|
This method returns the minimal x coordinate for this player type. When the calculated x coordinate for the strategic position is lower than this value, the x coordinate is set to this minimal x coordinate.
Definition at line 202 of file Formations.cpp. References dMinX. Referenced by Formations::getStrategicPosition(). |
|
This method returns the player type associated with this class.
Definition at line 130 of file Formations.cpp. References PlayerT, and playerType. |
|
This method sets the x attraction to the ball for this player type. The x attraction to the ball is a double in the range (0,1). This value is used to determine the x coordinate of the strategic position for this player type. The x attraction of the ball is multiplied with the x coordinate of the ball and added to the home position of the agent to determine the x coordinate of the strategic position.
Definition at line 143 of file Formations.cpp. References dAttrX. Referenced by Formations::readFormations(). |
|
This method sets the y attraction to the ball for this player type. The y attraction to the ball is a double in the range (0,1). This value is used to determine the y coordinate of the strategic position for this player type. The y attraction of the ball is multiplied with the y coordinate of the ball and added to the home position of the agent to determine the y coordinate of the strategic position.
Definition at line 169 of file Formations.cpp. References dAttrY. Referenced by Formations::readFormations(). |
|
This method sets the value that indicates whether this player type should stay behind the ball or not. When set to true and the strategic position for this player type is calculated to be in front of the ball. The x coordinate of the strategic position is set to the x coordinate of the ball.
Definition at line 234 of file Formations.cpp. References bBehindBall. Referenced by Formations::readFormations(). |
|
This method sets the maximal x coordinate for this player type. When the calculated x coordinate for the strategic position is larger than this value, the x coordinate is set to this maximal x coordinate.
Definition at line 212 of file Formations.cpp. References dMaxX. Referenced by Formations::readFormations(). |
|
This method sets the minimal x coordinate for this player type. When the calculated x coordinate for the strategic position is lower than this value, the x coordinate is set to this minimal x coordinate.
Definition at line 192 of file Formations.cpp. References dMinX. Referenced by Formations::readFormations(). |
|
This method sets the player type associated with this class.
Definition at line 122 of file Formations.cpp. References PlayerT, and playerType. |
|
This method receives the values for all the member variables as arguments and sets these member variables.
Definition at line 95 of file Formations.cpp. References bBehindBall, dAttrX, dAttrY, dMaxX, dMinX, PlayerT, and playerType. Referenced by PlayerTypeInfo(). |
|
This method print the different member values separated by comma's to the specified output stream.
Definition at line 111 of file Formations.cpp. References bBehindBall, dAttrX, dAttrY, dMaxX, dMinX, and playerType. |
|
should player always stay behind the ball Definition at line 101 of file Formations.h. Referenced by getBehindBall(), PlayerTypeInfo(), setBehindBall(), setValues(), and show(). |
|
x attraction to the ball Definition at line 97 of file Formations.h. Referenced by getAttrX(), PlayerTypeInfo(), setAttrX(), setValues(), and show(). |
|
y attraction to the ball Definition at line 98 of file Formations.h. Referenced by getAttrY(), PlayerTypeInfo(), setAttrY(), setValues(), and show(). |
|
maximal x coordinate for this player type Definition at line 100 of file Formations.h. Referenced by getMaxX(), PlayerTypeInfo(), setMaxX(), setValues(), and show(). |
|
minimal x coordinate for this player type Definition at line 99 of file Formations.h. Referenced by getMinX(), PlayerTypeInfo(), setMinX(), setValues(), and show(). |
|
This class gives information about this PlayerType Definition at line 96 of file Formations.h. Referenced by getPlayerType(), setPlayerType(), setValues(), and show(). |