#include <PlayersPercept.h>
Collaboration diagram for PlayersPercept:
Public Types | |
enum | { maxNumberOfRedPlayerPercepts = 13, maxNumberOfBluePlayerPercepts = 17, maxNumberOfOneRobotsPercepts = 17, maxNumberOfPercepts = 34 } |
Constants. More... | |
Public Member Functions | |
PlayersPercept () | |
Constructor. | |
~PlayersPercept () | |
Destructor. | |
void | reset (unsigned long frameNumber) |
Initializes the percept. | |
void | addRedPlayer (const SinglePlayerPercept &percept) |
The function adds a red player percept. | |
void | addBluePlayer (const SinglePlayerPercept &percept) |
The function adds a blue player percept. | |
Public Attributes | |
SinglePlayerPercept | redPlayers [maxNumberOfRedPlayerPercepts] |
List of perceived red robots. | |
SinglePlayerPercept | bluePlayers [maxNumberOfBluePlayerPercepts] |
List of perceived blue robots. | |
int | numberOfRedPlayers |
Number of perceived red robots. | |
int | numberOfBluePlayers |
Number of perceived blue robots. | |
unsigned long | frameNumber |
The frame number when perceived. |
Definition at line 42 of file PlayersPercept.h.
|
Constants.
Definition at line 46 of file PlayersPercept.h. |
|
Constructor.
Definition at line 10 of file PlayersPercept.cpp. References reset(). |
Here is the call graph for this function:
|
Destructor.
Definition at line 16 of file PlayersPercept.cpp. |
|
Initializes the percept.
Definition at line 21 of file PlayersPercept.cpp. References numberOfBluePlayers, and numberOfRedPlayers. Referenced by GT2004ImageProcessor::execute(), RasterImageProcessor::init(), and PlayersPercept(). |
|
The function adds a red player percept.
Definition at line 29 of file PlayersPercept.cpp. References maxNumberOfRedPlayerPercepts, numberOfRedPlayers, and redPlayers. Referenced by GT2004ImageProcessor::clusterRobots(), and REnemySpecialist::executePostProcessing(). |
|
The function adds a blue player percept.
Definition at line 36 of file PlayersPercept.cpp. References bluePlayers, maxNumberOfBluePlayerPercepts, numberOfBluePlayers, and numberOfRedPlayers. Referenced by GT2004ImageProcessor::clusterRobots(), and REnemySpecialist::executePostProcessing(). |
|
List of perceived red robots.
Definition at line 75 of file PlayersPercept.h. Referenced by addRedPlayer(), GT2004PlayersLocator::execute(), GT2004ImageProcessor::filterPercepts(), operator<<(), and operator>>(). |
|
List of perceived blue robots.
Definition at line 78 of file PlayersPercept.h. Referenced by addBluePlayer(), GT2004PlayersLocator::execute(), GT2004ImageProcessor::filterPercepts(), operator<<(), and operator>>(). |
|
Number of perceived red robots.
Definition at line 81 of file PlayersPercept.h. Referenced by addBluePlayer(), addRedPlayer(), GT2004PlayersLocator::execute(), GT2004ImageProcessor::filterPercepts(), operator<<(), operator>>(), and reset(). |
|
Number of perceived blue robots.
Definition at line 84 of file PlayersPercept.h. Referenced by addBluePlayer(), GT2004PlayersLocator::execute(), GT2004ImageProcessor::filterPercepts(), operator<<(), operator>>(), and reset(). |
|
The frame number when perceived.
Definition at line 87 of file PlayersPercept.h. Referenced by operator<<(), and operator>>(). |