ManaPlus
Data Structures | Namespaces | Typedefs | Variables
playerrelations.cpp File Reference

(986a3bf)

#include "being/playerrelations.h"
#include "actormanager.h"
#include "configuration.h"
#include "logger.h"
#include "being/localplayer.h"
#include "being/playerignorestrategy.h"
#include "being/playerrelation.h"
#include "utils/dtor.h"
#include "utils/foreach.h"
#include "utils/gettext.h"
#include "listeners/playerrelationslistener.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

class  anonymous_namespace{playerrelations.cpp}::SortPlayersFunctor
 
class  anonymous_namespace{playerrelations.cpp}::PlayerConfSerialiser
 
class  PIS_nothing
 
class  PIS_dotdotdot
 
class  PIS_blinkname
 
class  PIS_emote
 

Namespaces

 anonymous_namespace{playerrelations.cpp}
 

Typedefs

typedef std::map< std::string, PlayerRelation * > PlayerRelations
 
typedef PlayerRelations::const_iterator PlayerRelationsCIter
 
typedef std::list< PlayerRelationsListener * > PlayerRelationListeners
 
typedef PlayerRelationListeners::const_iterator PlayerRelationListenersCIter
 

Variables

static const unsigned int FIRST_IGNORE_EMOTE = 14
 
static const char *const PLAYER_IGNORE_STRATEGY_NOP = "nop"
 
static const char *const PLAYER_IGNORE_STRATEGY_EMOTE0 = "emote0"
 
static const char *const DEFAULT_IGNORE_STRATEGY
 
static const char *const NAME = "name"
 
static const char *const RELATION = "relation"
 
static const unsigned int IGNORE_EMOTE_TIME = 100
 
class anonymous_namespace{playerrelations.cpp}::SortPlayersFunctor anonymous_namespace{playerrelations.cpp}::playersRelSorter
 
static PlayerConfSerialiser player_conf_serialiser
 
static const char *const PERSIST_IGNORE_LIST = "persistent-player-list"
 
static const char *const PLAYER_IGNORE_STRATEGY = "player-ignore-strategy"
 
static const char *const DEFAULT_PERMISSIONS = "default-player-permissions"
 
PlayerRelationsManager playerRelations
 

Typedef Documentation

◆ PlayerRelationListeners

Definition at line 46 of file playerrelations.cpp.

◆ PlayerRelationListenersCIter

typedef PlayerRelationListeners::const_iterator PlayerRelationListenersCIter

Definition at line 47 of file playerrelations.cpp.

◆ PlayerRelations

typedef std::map<std::string, PlayerRelation *> PlayerRelations

Definition at line 44 of file playerrelations.cpp.

◆ PlayerRelationsCIter

typedef PlayerRelations::const_iterator PlayerRelationsCIter

Definition at line 45 of file playerrelations.cpp.

Variable Documentation

◆ DEFAULT_IGNORE_STRATEGY

const char* const DEFAULT_IGNORE_STRATEGY
static
Initial value:
=
static const char *const PLAYER_IGNORE_STRATEGY_EMOTE0

Definition at line 51 of file playerrelations.cpp.

Referenced by PlayerRelationsManager::load(), and PlayerRelationsManager::store().

◆ DEFAULT_PERMISSIONS

const char* const DEFAULT_PERMISSIONS = "default-player-permissions"
static

◆ FIRST_IGNORE_EMOTE

const unsigned int FIRST_IGNORE_EMOTE = 14
static

◆ IGNORE_EMOTE_TIME

const unsigned int IGNORE_EMOTE_TIME = 100
static

Definition at line 57 of file playerrelations.cpp.

Referenced by PIS_emote::ignore().

◆ NAME

const char* const NAME = "name"
static

◆ PERSIST_IGNORE_LIST

const char* const PERSIST_IGNORE_LIST = "persistent-player-list"
static

◆ player_conf_serialiser

PlayerConfSerialiser player_conf_serialiser
static

◆ PLAYER_IGNORE_STRATEGY

const char* const PLAYER_IGNORE_STRATEGY = "player-ignore-strategy"
static

◆ PLAYER_IGNORE_STRATEGY_EMOTE0

const char* const PLAYER_IGNORE_STRATEGY_EMOTE0 = "emote0"
static

◆ PLAYER_IGNORE_STRATEGY_NOP

const char* const PLAYER_IGNORE_STRATEGY_NOP = "nop"
static

Definition at line 49 of file playerrelations.cpp.

Referenced by PIS_nothing::PIS_nothing().

◆ playerRelations

PlayerRelationsManager playerRelations

◆ RELATION

const char* const RELATION = "relation"
static