Public Member Functions | Data Fields
PIS_emote Class Reference
Inheritance diagram for PIS_emote:

Public Member Functions

 PIS_emote (const uint8_t emote_nr, const std::string &description, const std::string &shortname)
void ignore (Being *const being, const unsigned int flags) const
- Public Member Functions inherited from PlayerIgnoreStrategy
virtual ~PlayerIgnoreStrategy ()

Data Fields

uint8_t mEmotion
- Data Fields inherited from PlayerIgnoreStrategy
std::string mDescription
std::string mShortName

Additional Inherited Members

- Protected Member Functions inherited from PlayerIgnoreStrategy
 PlayerIgnoreStrategy ()

Detailed Description

Definition at line 550 of file playerrelations.cpp.

Constructor & Destructor Documentation

◆ PIS_emote()

PIS_emote::PIS_emote ( const uint8_t  emote_nr,
const std::string &  description,
const std::string &  shortname 

Definition at line 553 of file playerrelations.cpp.

555  :
557  mEmotion(emote_nr)
558  {
559  mDescription = description;
560  mShortName = shortname;
561  }
uint8_t mEmotion

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

Member Function Documentation

◆ ignore()

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

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

Implements PlayerIgnoreStrategy.

Definition at line 565 of file playerrelations.cpp.

567  {
568  if (being == nullptr)
569  return;
572  }
void setEmote(const uint8_t emotion, const int emote_time)
Definition: being.cpp:4829
static const unsigned int IGNORE_EMOTE_TIME

References IGNORE_EMOTE_TIME, and mEmotion.

Field Documentation

◆ mEmotion

uint8_t PIS_emote::mEmotion

Definition at line 573 of file playerrelations.cpp.

Referenced by ignore().

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