ManaPlus
Public Member Functions | Data Fields
FindBeingEqualFunctor Class Reference

Public Member Functions

bool operator() (const Being *const being) const
 

Data Fields

BeingfindBeing
 

Detailed Description

Definition at line 114 of file actormanager.cpp.

Member Function Documentation

◆ operator()()

bool FindBeingEqualFunctor::operator() ( const Being *const  being) const
inline

Definition at line 119 of file actormanager.cpp.

120  {
121  if ((being == nullptr) || (findBeing == nullptr))
122  return false;
123  return being->getId() == findBeing->getId();
124  }
BeingId getId() const
Definition: actorsprite.h:64

References findBeing, and ActorSprite::getId().

Field Documentation

◆ findBeing

Being* FindBeingEqualFunctor::findBeing

Definition at line 126 of file actormanager.cpp.

Referenced by ActorManager::findNearestLivingBeing(), and operator()().


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