ManaPlus
Public Member Functions | Data Fields | Static Public Attributes
PlayerRelation Struct Reference

#include <playerrelation.h>

Public Member Functions

 PlayerRelation (const RelationT relation)
 

Data Fields

RelationT mRelation
 

Static Public Attributes

static const unsigned int EMOTE = (1U << 0)
 
static const unsigned int SPEECH_FLOAT = (1U << 1)
 
static const unsigned int SPEECH_LOG = (1U << 2)
 
static const unsigned int WHISPER = (1U << 3)
 
static const unsigned int TRADE = (1U << 4)
 
static const unsigned int INVISIBLE = (1U << 5)
 
static const unsigned int BLACKLIST = (1U << 6)
 
static const unsigned int ENEMY = (1U << 7)
 
static const unsigned int RELATIONS_NR = 7
 
static const unsigned int RELATION_PERMISSIONS [RELATIONS_NR]
 
static const unsigned int DEFAULT
 

Detailed Description

Definition at line 31 of file playerrelation.h.

Constructor & Destructor Documentation

◆ PlayerRelation()

PlayerRelation::PlayerRelation ( const RelationT  relation)
explicit

Definition at line 28 of file playerrelation.cpp.

28  :
29  mRelation(relation)
30 {
31 }
RelationT mRelation

Field Documentation

◆ BLACKLIST

const unsigned int PlayerRelation::BLACKLIST = (1U << 6)
static

Definition at line 39 of file playerrelation.h.

◆ DEFAULT

const unsigned int PlayerRelation::DEFAULT
static
Initial value:
static const unsigned int EMOTE
static const unsigned int SPEECH_FLOAT
static const unsigned int SPEECH_LOG
static const unsigned int WHISPER
static const unsigned int TRADE

Definition at line 45 of file playerrelation.h.

◆ EMOTE

const unsigned int PlayerRelation::EMOTE = (1U << 0)
static

Definition at line 33 of file playerrelation.h.

Referenced by Ea::BeingRecv::processBeingEmotion().

◆ ENEMY

const unsigned int PlayerRelation::ENEMY = (1U << 7)
static

Definition at line 40 of file playerrelation.h.

◆ INVISIBLE

const unsigned int PlayerRelation::INVISIBLE = (1U << 5)
static

Definition at line 38 of file playerrelation.h.

◆ mRelation

RelationT PlayerRelation::mRelation

◆ RELATION_PERMISSIONS

const unsigned int PlayerRelation::RELATION_PERMISSIONS
static
Initial value:

Definition at line 43 of file playerrelation.h.

Referenced by PlayerRelationsManager::checkPermissionSilently().

◆ RELATIONS_NR

const unsigned int PlayerRelation::RELATIONS_NR = 7
static

Definition at line 42 of file playerrelation.h.

Referenced by PlayerRelationListModel::getNumberOfElements().

◆ SPEECH_FLOAT

const unsigned int PlayerRelation::SPEECH_FLOAT = (1U << 1)
static

◆ SPEECH_LOG

const unsigned int PlayerRelation::SPEECH_LOG = (1U << 2)
static

◆ TRADE

const unsigned int PlayerRelation::TRADE = (1U << 4)
static

◆ WHISPER

const unsigned int PlayerRelation::WHISPER = (1U << 3)
static

The documentation for this struct was generated from the following files: