LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::OpponentOrUnknownPlayerPredicate Class Reference

check if target player is opponent (include unknown player) or not More...

#include <player_predicate.h>

Inheritance diagram for rcsc::OpponentOrUnknownPlayerPredicate:
Inheritance graph
[legend]
Collaboration diagram for rcsc::OpponentOrUnknownPlayerPredicate:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from rcsc::PlayerPredicate
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

- Public Types inherited from rcsc::PlayerPredicate
typedef std::shared_ptr< PlayerPredicatePtr
 smart pointer type
 
typedef std::shared_ptr< const PlayerPredicateConstPtr
 const smart pointer type
 
- Protected Member Functions inherited from rcsc::PlayerPredicate
 PlayerPredicate ()
 protected constructor
 

Detailed Description

check if target player is opponent (include unknown player) or not

Constructor & Destructor Documentation

◆ OpponentOrUnknownPlayerPredicate() [1/2]

rcsc::OpponentOrUnknownPlayerPredicate::OpponentOrUnknownPlayerPredicate ( const WorldModel wm)
inlineexplicit

construct with the WorldModel instance

Parameters
wmconst reference to the WorldModel instance

◆ OpponentOrUnknownPlayerPredicate() [2/2]

rcsc::OpponentOrUnknownPlayerPredicate::OpponentOrUnknownPlayerPredicate ( const SideID  our_side)
inlineexplicit

construct with side and uniform number of self

Parameters
our_sideside self player belonging

Member Function Documentation

◆ clone()

Ptr rcsc::OpponentOrUnknownPlayerPredicate::clone ( ) const
inlinevirtual

create clone object.

Returns
cloned object.

Implements rcsc::PlayerPredicate.

◆ operator()()

bool rcsc::OpponentOrUnknownPlayerPredicate::operator() ( const AbstractPlayerObject p) const
inlinevirtual

predicate function

Parameters
pconst reference to the target player object
Returns
true if target player is opponent (include unknown player)

Implements rcsc::PlayerPredicate.


The documentation for this class was generated from the following file: