#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 92 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 63 of file Formations.C. 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 78 of file Formations.C. 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 155 of file Formations.C. 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 181 of file Formations.C. 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 245 of file Formations.C. 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 221 of file Formations.C. 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 201 of file Formations.C. References dMinX. Referenced by Formations::getStrategicPosition(). |
|
This method returns the player type associated with this class.
Definition at line 129 of file Formations.C. 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 142 of file Formations.C. 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 168 of file Formations.C. 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 233 of file Formations.C. 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 211 of file Formations.C. 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 191 of file Formations.C. References dMinX. Referenced by Formations::readFormations(). |
|
This method sets the player type associated with this class.
Definition at line 121 of file Formations.C. References PlayerT, and playerType. |
|
This method receives the values for all the member variables as arguments and sets these member variables.
Definition at line 94 of file Formations.C. 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 110 of file Formations.C. References bBehindBall, dAttrX, dAttrY, dMaxX, dMinX, and playerType. |
|
should player always stay behind the ball Definition at line 99 of file Formations.h. Referenced by getBehindBall(), PlayerTypeInfo(), setBehindBall(), setValues(), and show(). |
|
x attraction to the ball Definition at line 95 of file Formations.h. Referenced by getAttrX(), PlayerTypeInfo(), setAttrX(), setValues(), and show(). |
|
y attraction to the ball Definition at line 96 of file Formations.h. Referenced by getAttrY(), PlayerTypeInfo(), setAttrY(), setValues(), and show(). |
|
maximal x coordinate for this player type Definition at line 98 of file Formations.h. Referenced by getMaxX(), PlayerTypeInfo(), setMaxX(), setValues(), and show(). |
|
minimal x coordinate for this player type Definition at line 97 of file Formations.h. Referenced by getMinX(), PlayerTypeInfo(), setMinX(), setValues(), and show(). |
|
This class gives information about this PlayerType Definition at line 94 of file Formations.h. Referenced by getPlayerType(), setPlayerType(), setValues(), and show(). |