ManaPlus
Public Member Functions
PIS_blinkname Class Reference
Inheritance diagram for PIS_blinkname:
PlayerIgnoreStrategy

Public Member Functions

 PIS_blinkname ()
 
void ignore (Being *const being, const unsigned int flags) const
 
- Public Member Functions inherited from PlayerIgnoreStrategy
virtual ~PlayerIgnoreStrategy ()
 

Additional Inherited Members

- Data Fields inherited from PlayerIgnoreStrategy
std::string mDescription
 
std::string mShortName
 
- Protected Member Functions inherited from PlayerIgnoreStrategy
 PlayerIgnoreStrategy ()
 

Detailed Description

Definition at line 526 of file playerrelations.cpp.

Constructor & Destructor Documentation

◆ PIS_blinkname()

PIS_blinkname::PIS_blinkname ( )
inline

Definition at line 529 of file playerrelations.cpp.

529  :
531  {
532  // TRANSLATORS: ignore/unignore action
533  mDescription = _("Blink name");
534  mShortName = "blinkname";
535  }
#define _(s)
Definition: gettext.h:35

References _, PlayerIgnoreStrategy::mDescription, and PlayerIgnoreStrategy::mShortName.

Member Function Documentation

◆ ignore()

void PIS_blinkname::ignore ( Being *const  being,
const unsigned int  flags 
) const
inlinevirtual

Handle the ignoring of the indicated action by the indicated player.

Implements PlayerIgnoreStrategy.

Definition at line 539 of file playerrelations.cpp.

541  {
542  if (being == nullptr)
543  return;
544 
545  logger->log("ignoring: " + being->getName());
546  being->flashName(200);
547  }
void flashName(const int time)
Definition: being.cpp:2532
const std::string & getName() const
Definition: being.h:232
void log(const char *const log_text,...)
Definition: logger.cpp:269
Logger * logger
Definition: logger.cpp:89

References Logger::log(), and logger.


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