ManaPlus
Data Structures | Namespaces | Typedefs | Functions
playerinfo.h File Reference

(986a3bf)

#include "equipment.h"
#include "enums/guildpositionflags.h"
#include "enums/state.h"
#include "enums/being/attributes.h"
#include "enums/simpletypes/beingid.h"
#include "enums/simpletypes/keep.h"
#include "enums/simpletypes/notify.h"
#include "enums/simpletypes/sfx.h"
#include "enums/simpletypes/trading.h"
#include "utils/intmap.h"
#include <string>

Go to the source code of this file.

Data Structures

struct  Stat
 
struct  PlayerInfoBackend
 

Namespaces

 PlayerInfo
 

Typedefs

typedef std::map< AttributesT, int64_t > AtrIntMap
 
typedef std::map< AttributesT, StatStatMap
 

Functions

int64_t PlayerInfo::getAttribute64 (const AttributesT id)
 
int32_t PlayerInfo::getAttribute (const AttributesT id)
 
void PlayerInfo::setAttribute (const AttributesT id, const int64_t value, const Notify notify)
 
int PlayerInfo::getSkillLevel (const int id)
 
void PlayerInfo::setSkillLevel (const int id, const int value)
 
int PlayerInfo::getStatBase (const AttributesT id)
 
void PlayerInfo::setStatBase (const AttributesT id, const int value, const Notify notify)
 
int PlayerInfo::getStatMod (const AttributesT id)
 
void PlayerInfo::setStatMod (const AttributesT id, const int value, const Notify notify)
 
int PlayerInfo::getStatEffective (const AttributesT id)
 
const std::pair< int, int > PlayerInfo::getStatExperience (const AttributesT id)
 
InventoryPlayerInfo::getInventory ()
 
InventoryPlayerInfo::getStorageInventory ()
 
InventoryPlayerInfo::getCartInventory ()
 
void PlayerInfo::clearInventory ()
 
void PlayerInfo::clear ()
 
EquipmentPlayerInfo::getEquipment ()
 
const ItemPlayerInfo::getEquipment (const unsigned int slot)
 
void PlayerInfo::setBackend (const PlayerInfoBackend &backend)
 
void PlayerInfo::setCharId (const int charId)
 
int PlayerInfo::getCharId ()
 
Trading PlayerInfo::isTrading ()
 
void PlayerInfo::setTrading (const Trading trading)
 
void PlayerInfo::updateAttrs ()
 
void PlayerInfo::init ()
 
void PlayerInfo::deinit ()
 
void PlayerInfo::loadData ()
 
bool PlayerInfo::isTalking ()
 
void PlayerInfo::gameDestroyed ()
 
void PlayerInfo::stateChange (const StateT state)
 
void PlayerInfo::triggerAttr (const AttributesT id, const int64_t old)
 
void PlayerInfo::triggerStat (const AttributesT id, const int old1, const int old2)
 
void PlayerInfo::setEquipmentBackend (Equipment::Backend *const backend)
 
void PlayerInfo::equipItem (const Item *const item, const Sfx sfx)
 
void PlayerInfo::unequipItem (const Item *const item, const Sfx sfx)
 
void PlayerInfo::useItem (const Item *const item, const Sfx sfx)
 
void PlayerInfo::useEquipItem (const Item *const item, const int16_t useType, const Sfx sfx)
 
void PlayerInfo::useEquipItem2 (const Item *const item, const int16_t useType, const Sfx sfx)
 
void PlayerInfo::dropItem (const Item *const item, const int amount, const Sfx sfx)
 
void PlayerInfo::pickUpItem (const FloorItem *const item, const Sfx sfx)
 
void PlayerInfo::protectItem (const int id)
 
void PlayerInfo::unprotectItem (const int id)
 
bool PlayerInfo::isItemProtected (const int id)
 
MercenaryInfoPlayerInfo::getMercenary ()
 
void PlayerInfo::setMercenary (MercenaryInfo *const info)
 
void PlayerInfo::setMercenaryBeing (Being *const being)
 
PetInfoPlayerInfo::getPet ()
 
void PlayerInfo::setPet (PetInfo *const info)
 
void PlayerInfo::setPetBeing (Being *const being)
 
BeingId PlayerInfo::getPetBeingId ()
 
HomunculusInfoPlayerInfo::getHomunculus ()
 
void PlayerInfo::setHomunculus (HomunculusInfo *const info)
 
void PlayerInfo::setHomunculusBeing (Being *const being)
 
void PlayerInfo::setElemental (const BeingId id)
 
BeingId PlayerInfo::getHomunculusId ()
 
BeingId PlayerInfo::getMercenaryId ()
 
BeingId PlayerInfo::getElementalId ()
 
void PlayerInfo::updateAttackAi (const BeingId targetId, const Keep keep)
 
std::string PlayerInfo::getRoomName ()
 
void PlayerInfo::setRoomName (const std::string &name)
 
bool PlayerInfo::isInRoom ()
 
void PlayerInfo::setGuildPositionFlags (const GuildPositionFlags::Type pos)
 
GuildPositionFlags::Type PlayerInfo::getGuildPositionFlags ()
 
void PlayerInfo::enableVending (const bool b)
 
bool PlayerInfo::isVending ()
 
void PlayerInfo::setServerLanguage (const int lang)
 
int PlayerInfo::getServerLanguage ()
 

Typedef Documentation

◆ AtrIntMap

typedef std::map<AttributesT, int64_t> AtrIntMap

Definition at line 56 of file playerinfo.h.

◆ StatMap

typedef std::map<AttributesT, Stat> StatMap

Definition at line 57 of file playerinfo.h.