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

Public Member Functions

 PIS_dotdotdot ()
 
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 501 of file playerrelations.cpp.

Constructor & Destructor Documentation

◆ PIS_dotdotdot()

PIS_dotdotdot::PIS_dotdotdot ( )
inline

Definition at line 504 of file playerrelations.cpp.

504  :
506  {
507  // TRANSLATORS: ignore/unignore action
508  mDescription = _("Print '...'");
509  mShortName = "dotdotdot";
510  }
#define _(s)
Definition: gettext.h:35

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

Member Function Documentation

◆ ignore()

void PIS_dotdotdot::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 514 of file playerrelations.cpp.

516  {
517  if (being == nullptr)
518  return;
519 
520  logger->log("ignoring: " + being->getName());
521  being->setSpeech("...");
522  }
const std::string & getName() const
Definition: being.h:232
void setSpeech(const std::string &text)
Definition: being.cpp:572
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: