ManaPlus
Macros | Typedefs | Variables
being.cpp File Reference

(986a3bf)

#include "being/being.h"
#include "actormanager.h"
#include "beingequipbackend.h"
#include "configuration.h"
#include "effectmanager.h"
#include "guild.h"
#include "itemcolormanager.h"
#include "party.h"
#include "settings.h"
#include "soundmanager.h"
#include "text.h"
#include "being/beingcacheentry.h"
#include "being/beingflag.h"
#include "being/beingspeech.h"
#include "being/castingeffect.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
#include "being/playerrelations.h"
#include "being/homunculusinfo.h"
#include "being/mercenaryinfo.h"
#include "const/utils/timer.h"
#include "const/resources/spriteaction.h"
#include "enums/being/beingdirection.h"
#include "enums/resources/map/blockmask.h"
#include "fs/files.h"
#include "gui/gui.h"
#include "gui/userpalette.h"
#include "gui/fonts/font.h"
#include "gui/popups/speechbubble.h"
#include "gui/windows/chatwindow.h"
#include "gui/windows/equipmentwindow.h"
#include "gui/windows/skilldialog.h"
#include "gui/windows/socialwindow.h"
#include "net/charserverhandler.h"
#include "net/gamehandler.h"
#include "net/homunculushandler.h"
#include "net/mercenaryhandler.h"
#include "net/net.h"
#include "net/npchandler.h"
#include "net/packetlimiter.h"
#include "net/playerhandler.h"
#include "net/serverfeatures.h"
#include "particle/particleinfo.h"
#include "resources/attack.h"
#include "resources/chatobject.h"
#include "resources/emoteinfo.h"
#include "resources/emotesprite.h"
#include "resources/horseinfo.h"
#include "resources/iteminfo.h"
#include "resources/db/avatardb.h"
#include "resources/db/badgesdb.h"
#include "resources/db/groupdb.h"
#include "resources/db/elementaldb.h"
#include "resources/db/emotedb.h"
#include "resources/db/homunculusdb.h"
#include "resources/db/horsedb.h"
#include "resources/db/languagedb.h"
#include "resources/db/mercenarydb.h"
#include "resources/db/monsterdb.h"
#include "resources/db/npcdb.h"
#include "resources/db/petdb.h"
#include "resources/db/skillunitdb.h"
#include "resources/image/image.h"
#include "resources/item/item.h"
#include "resources/map/map.h"
#include "resources/skill/skilldata.h"
#include "resources/skill/skillinfo.h"
#include "resources/sprite/animatedsprite.h"
#include "gui/widgets/createwidget.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
#include "utils/gettext.h"
#include "utils/likely.h"
#include "utils/stdmove.h"
#include "utils/timer.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define for_each_badges()    for (int f = 0; f < BadgeIndex::BadgeIndexSize; f++)
 
#define for_each_horses(name)    FOR_EACH (STD_VECTOR<AnimatedSprite*>::const_iterator, it, name)
 
#define getSpriteAction(func, action)
 

Typedefs

typedef std::map< int, Guild * >::const_iterator GuildsMapCIter
 
typedef std::map< int, int >::const_iterator IntMapCIter
 

Variables

const unsigned int CACHE_SIZE = 50
 
std::list< BeingCacheEntry * > beingInfoCache
 
static const unsigned int SPEECH_TIME = 500
 
static const unsigned int SPEECH_MIN_TIME = 200
 
static const unsigned int SPEECH_MAX_TIME = 800
 

Macro Definition Documentation

◆ for_each_badges

#define for_each_badges ( )     for (int f = 0; f < BadgeIndex::BadgeIndexSize; f++)

Definition at line 156 of file being.cpp.

◆ for_each_horses

#define for_each_horses (   name)     FOR_EACH (STD_VECTOR<AnimatedSprite*>::const_iterator, it, name)

Definition at line 159 of file being.cpp.

◆ getSpriteAction

#define getSpriteAction (   func,
  action 
)
Value:
std::string Being::get##func##Action() const restrict2\
{ \
if (mHorseId != 0) \
return SpriteAction::action##RIDE; \
if (mMap) \
{ \
const unsigned char mask = mMap->getBlockMask(mX, mY); \
if (mask & BlockMask::AIR) \
return SpriteAction::action##SKY; \
else if (mask & BlockMask::WATER) \
return SpriteAction::action##WATER; \
} \
return SpriteAction::action; \
}
Definition: action.h:41
#define restrict2
Definition: localconsts.h:166
AttributesT get(const std::string &key)
std::string mMap
Definition: gamerecv.cpp:46
static const std::string RIDE("ride")

Definition at line 1509 of file being.cpp.

Typedef Documentation

◆ GuildsMapCIter

typedef std::map<int, Guild*>::const_iterator GuildsMapCIter

Definition at line 149 of file being.cpp.

◆ IntMapCIter

typedef std::map<int, int>::const_iterator IntMapCIter

Definition at line 150 of file being.cpp.

Variable Documentation

◆ beingInfoCache

std::list<BeingCacheEntry*> beingInfoCache

Definition at line 148 of file being.cpp.

Referenced by Being::addToCache(), Being::clearCache(), and Being::getCacheEntry().

◆ CACHE_SIZE

const unsigned int CACHE_SIZE = 50

Definition at line 125 of file being.cpp.

Referenced by Being::addToCache().

◆ SPEECH_MAX_TIME

const unsigned int SPEECH_MAX_TIME = 800
static

Definition at line 154 of file being.cpp.

Referenced by Being::setSpeech().

◆ SPEECH_MIN_TIME

const unsigned int SPEECH_MIN_TIME = 200
static

Definition at line 153 of file being.cpp.

Referenced by Being::setSpeech().

◆ SPEECH_TIME

const unsigned int SPEECH_TIME = 500
static

Definition at line 152 of file being.cpp.

Referenced by Being::setSpeech().