#include <view_area.h>
Public メソッド | |
ViewArea () | |
construct invalid object | |
ViewArea (const GameTime &t) | |
construct invalid object | |
ViewArea (const double &view_width, const Vector2D &origin, const AngleDeg &angle, const GameTime &t) | |
construct with all variables | |
const double & | viewWidth () const |
get the width of view area | |
const Vector2D & | origin () const |
get player's global position when see message is received. | |
const AngleDeg & | angle () const |
get player's head angle when see message is received. | |
const GameTime & | time () const |
get the game time when this information is generated | |
bool | isValid () const |
check if this object is valid or not | |
bool | contains (const Vector2D &point, const double &dir_thr, const double &visible_dist2) const |
rcsc::ViewArea::ViewArea | ( | const GameTime & | t | ) | [inline, explicit] |
construct invalid object
t | game time |
rcsc::ViewArea::ViewArea | ( | const double & | view_width, | |
const Vector2D & | origin, | |||
const AngleDeg & | angle, | |||
const GameTime & | t | |||
) | [inline] |
construct with all variables
view_width | the width of player's view area | |
origin | the origin point of this view area | |
angle | the angle from origin point of this view area | |
t | time of this view area |
const double& rcsc::ViewArea::viewWidth | ( | ) | const [inline] |
get the width of view area
const Vector2D& rcsc::ViewArea::origin | ( | ) | const [inline] |
get player's global position when see message is received.
const AngleDeg& rcsc::ViewArea::angle | ( | ) | const [inline] |
get player's head angle when see message is received.
const GameTime& rcsc::ViewArea::time | ( | ) | const [inline] |
get the game time when this information is generated
bool rcsc::ViewArea::isValid | ( | ) | const [inline] |
check if this object is valid or not