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::XCoordinateForwardPlayerPredicate Class Reference

check if target player's x coordinate is greater(forwarder) than threshold value More...

#include <player_predicate.h>

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

Public Member Functions

 XCoordinateForwardPlayerPredicate (const double &threshold)
 construct with threshold value 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's x coordinate is greater(forwarder) than threshold value

Constructor & Destructor Documentation

◆ XCoordinateForwardPlayerPredicate()

rcsc::XCoordinateForwardPlayerPredicate::XCoordinateForwardPlayerPredicate ( const double &  threshold)
inlineexplicit

construct with threshold value

Parameters
thresholdx-coordinate threshold value

Member Function Documentation

◆ clone()

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

create clone object.

Returns
cloned object.

Implements rcsc::PlayerPredicate.

◆ operator()()

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

predicate function

Parameters
pconst reference to the target player object
Returns
true if target player's pos(.x) is greater(forwarder) than equal threshold

Implements rcsc::PlayerPredicate.


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