クラス rcsc::ViewArea

player's view area. [詳細]

#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 Vector2Dorigin () const
 get player's global position when see message is received.
const AngleDegangle () const
 get player's head angle when see message is received.
const GameTimetime () 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


説明

player's view area.


コンストラクタとデストラクタ

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

戻り値:
the width of view area (degree)

const Vector2D& rcsc::ViewArea::origin (  )  const [inline]

get player's global position when see message is received.

戻り値:
origin point (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.

戻り値:
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

戻り値:
game time

bool rcsc::ViewArea::isValid (  )  const [inline]

check if this object is valid or not

戻り値:
the validity of the object


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:28 2008に生成されました。  doxygen 1.5.0