クラス rcsc::PointNearPlayerPredicate

check if target player's distance from tha base point is less than threshold distance [詳細]

#include <player_predicate.h>

rcsc::PointNearPlayerPredicateに対する継承グラフ

rcsc::PlayerPredicate すべてのメンバ一覧

Public メソッド

 PointNearPlayerPredicate (const Vector2D &base_point, const double &threshold)
 construct with base point and threshold distance
bool operator() (const AbstractPlayerObject &p) const
 predicate function

説明

check if target player's distance from tha base point is less than threshold distance


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

rcsc::PointNearPlayerPredicate::PointNearPlayerPredicate ( const Vector2D base_point,
const double &  threshold 
) [inline]

construct with base point and threshold distance

引数:
base_point base point
threshold distance threshold value


関数

bool rcsc::PointNearPlayerPredicate::operator() ( const AbstractPlayerObject p  )  const [inline, virtual]

predicate function

引数:
p const reference to the target player object
戻り値:
true if target player's distance from base_point is less than equal threshold

rcsc::PlayerPredicateを実装しています。


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