LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
check if target player is opponent (include unknown player) or not More...
#include <player_predicate.h>
Public Member Functions | |
OpponentOrUnknownPlayerPredicate (const WorldModel &wm) | |
construct with the WorldModel instance More... | |
OpponentOrUnknownPlayerPredicate (const SideID our_side) | |
construct with side and uniform number of self More... | |
bool | operator() (const AbstractPlayerObject &p) const |
predicate function More... | |
Ptr | clone () const |
create clone object. More... | |
![]() | |
virtual | ~PlayerPredicate () |
virtual destructor | |
virtual bool | operator() (const AbstractPlayerObject &p) const =0 |
predicate function More... | |
virtual Ptr | clone () const =0 |
create clone object. More... | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< PlayerPredicate > | Ptr |
smart pointer type | |
typedef std::shared_ptr< const PlayerPredicate > | ConstPtr |
const smart pointer type | |
![]() | |
PlayerPredicate () | |
protected constructor | |
check if target player is opponent (include unknown player) or not
|
inlineexplicit |
construct with the WorldModel instance
wm | const reference to the WorldModel instance |
|
inlineexplicit |
construct with side and uniform number of self
our_side | side self player belonging |
|
inlinevirtual |
|
inlinevirtual |
predicate function
p | const reference to the target player object |
Implements rcsc::PlayerPredicate.