#include <GoalLinesPercept.h>
Public Types | |
maxNumberOfPoints = 1000 | |
enum | { maxNumberOfPoints = 1000 } |
Public Member Functions | |
GoalLinesPercept () | |
void | reset () |
void | shakeOut (int numberFrames) |
void | upCount () |
void | filterPoints (int diff) |
void | add (const Vector2< int > &point) |
Public Attributes | |
Vector2< int > | points [maxNumberOfPoints] |
int | count [maxNumberOfPoints] |
int | numberOfPoints |
Definition at line 25 of file GoalLinesPercept.h.
anonymous enum |
GoalLinesPercept::GoalLinesPercept | ( | ) | [inline] |
void GoalLinesPercept::add | ( | const Vector2< int > & | point | ) |
The function adds a new point to the lines percept.
type | The line type of the point. | |
point | The point. |
Definition at line 23 of file GoalLinesPercept.cpp.
References count, maxNumberOfPoints, numberOfPoints, and points.
void GoalLinesPercept::filterPoints | ( | int | diff | ) |
Definition at line 33 of file GoalLinesPercept.cpp.
References count, numberOfPoints, points, and Vector2< V >::y.
void GoalLinesPercept::reset | ( | ) |
The function empties the line percept.
Definition at line 18 of file GoalLinesPercept.cpp.
References numberOfPoints.
Referenced by GoalLinesPercept().
void GoalLinesPercept::shakeOut | ( | int | numberFrames | ) |
Definition at line 47 of file GoalLinesPercept.cpp.
References count, maxNumberOfPoints, numberOfPoints, and points.
void GoalLinesPercept::upCount | ( | ) |
int GoalLinesPercept::count[maxNumberOfPoints] |
Definition at line 32 of file GoalLinesPercept.h.
Referenced by add(), filterPoints(), shakeOut(), and upCount().
The number of points per line type.
Definition at line 33 of file GoalLinesPercept.h.
Referenced by add(), filterPoints(), operator<<(), operator>>(), reset(), shakeOut(), and upCount().
Vector2<int> GoalLinesPercept::points[maxNumberOfPoints] |
The points on lines.
Definition at line 31 of file GoalLinesPercept.h.
Referenced by add(), filterPoints(), operator<<(), operator>>(), and shakeOut().