#include <Formations.h>
Collaboration diagram for FormationTypeInfo:
Public Methods | |
FormationTypeInfo () | |
void | show (ostream &os=cout) |
bool | setFormationType (FormationT type) |
FormationT | getFormationType () const |
bool | setPosHome (VecPosition pos, int atIndex) |
bool | setXPosHome (double x, int atIndex) |
bool | setYPosHome (double y, int atIndex) |
VecPosition | getPosHome (int atIndex) const |
bool | setPlayerType (PlayerT type, int atIndex) |
PlayerT | getPlayerType (int atIndex) const |
bool | setPlayerTypeInfo (PlayerTypeInfo info, int atIndex) |
PlayerTypeInfo * | getPlayerTypeInfo (int atIndex) |
PlayerTypeInfo * | getPlayerTypeInfoOfPlayer (int iPlayerInFormation) |
Private Attributes | |
FormationT | formationType |
VecPosition | posHome [MAX_TEAMMATES] |
PlayerT | playerType [MAX_TEAMMATES] |
PlayerTypeInfo | playerTypeInfo [MAX_PLAYER_TYPES] |
Definition at line 130 of file Formations.h.
|
This is the default constructor and does nothing. Definition at line 251 of file Formations.C. |
|
This method return the current formation type for this class.
Definition at line 266 of file Formations.C. References FormationT, and formationType. |
|
This method returns the player type for the player with role number 'atIndex' in this formation.
Definition at line 396 of file Formations.C. References PlayerT, and playerType. |
|
This method returns (a pointer to) the player type information for the player type at position 'atIndex'
Definition at line 416 of file Formations.C. References playerTypeInfo. Referenced by Formations::readFormations(). |
|
This method returns (a pointer to) the player type information for the player with role number 'iPlayerInFormation'.
Definition at line 426 of file Formations.C. References playerType, and playerTypeInfo. |
|
This method returns the home position for the player with role number atIndex in this formation. The home position is the position from which the strategic position is calculated and could be interpreted as the position a player is located when the ball is at the position (0,0).
Definition at line 377 of file Formations.C. References posHome. |
|
This method sets the current formation type for this class.
Definition at line 258 of file Formations.C. References FormationT, and formationType. |
|
This method sets the player type for the player with role number 'atIndex' in this formation.
Definition at line 387 of file Formations.C. References PlayerT, and playerType. Referenced by Formations::readFormations(). |
|
This method sets the information for a player type in this formation. Note that information is for a player TYPE and not for a player ROLE.
Definition at line 406 of file Formations.C. References playerTypeInfo. |
|
This method sets the home position of the role indicated by the number 'atIndex' in this formation. The home position is the position from which the strategic position is calculated and could be interpreted as the position a player is located when the ball is at the position (0,0).
Definition at line 344 of file Formations.C. References posHome. |
|
This method sets the x coordinate of the home position for the player with role number 'atIndex'.
Definition at line 355 of file Formations.C. References posHome, and VecPosition::setX(). Referenced by Formations::readFormations(). |
|
This method sets the y coordinate of the home position for the player with role number 'atIndex'.
Definition at line 366 of file Formations.C. References posHome, and VecPosition::setY(). Referenced by Formations::readFormations(). |
|
This method prints all the information about this formation to the specified output stream. The format is the following:
Definition at line 282 of file Formations.C. References MAX_PLAYER_TYPES, MAX_TEAMMATES, playerType, playerTypeInfo, and posHome. Referenced by Formations::show(). |
|
type of this formation Definition at line 132 of file Formations.h. Referenced by getFormationType(), and setFormationType(). |
|
player_types for roles Definition at line 134 of file Formations.h. Referenced by getPlayerType(), getPlayerTypeInfoOfPlayer(), setPlayerType(), and show(). |
|
info for roles Definition at line 135 of file Formations.h. Referenced by getPlayerTypeInfo(), getPlayerTypeInfoOfPlayer(), setPlayerTypeInfo(), and show(). |
|
home position for roles Definition at line 133 of file Formations.h. Referenced by getPosHome(), setPosHome(), setXPosHome(), setYPosHome(), and show(). |