#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 138 of file Formations.h.
|
This is the default constructor and does nothing. Definition at line 256 of file Formations.cpp. |
|
This method return the current formation type for this class.
Definition at line 271 of file Formations.cpp. References FormationT, and formationType. |
|
This method returns the player type for the player with role number 'atIndex' in this formation.
Definition at line 401 of file Formations.cpp. References PlayerT, and playerType. Referenced by Formations::getPlayerType(). |
|
This method returns (a pointer to) the player type information for the player type at position 'atIndex'
Definition at line 421 of file Formations.cpp. 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 431 of file Formations.cpp. 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 382 of file Formations.cpp. References posHome. |
|
This method sets the current formation type for this class.
Definition at line 263 of file Formations.cpp. References FormationT, and formationType. |
|
This method sets the player type for the player with role number 'atIndex' in this formation.
Definition at line 392 of file Formations.cpp. 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 411 of file Formations.cpp. 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 349 of file Formations.cpp. References posHome. |
|
This method sets the x coordinate of the home position for the player with role number 'atIndex'.
Definition at line 360 of file Formations.cpp. 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 371 of file Formations.cpp. 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 287 of file Formations.cpp. References MAX_PLAYER_TYPES, MAX_TEAMMATES, playerType, playerTypeInfo, and posHome. Referenced by Formations::show(). |
|
type of this formation Definition at line 140 of file Formations.h. Referenced by getFormationType(), and setFormationType(). |
|
player_types for roles Definition at line 142 of file Formations.h. Referenced by getPlayerType(), getPlayerTypeInfoOfPlayer(), setPlayerType(), and show(). |
|
info for roles Definition at line 143 of file Formations.h. Referenced by getPlayerTypeInfo(), getPlayerTypeInfoOfPlayer(), setPlayerTypeInfo(), and show(). |
|
home position for roles Definition at line 141 of file Formations.h. Referenced by getPosHome(), setPosHome(), setXPosHome(), setYPosHome(), and show(). |