EvEmu
0.8.4
11 September 2021
|
#include "Character.h"
Public Member Functions | |
virtual void | Delete () |
bool | AlterBalance (float amount, uint8 type) |
void | SetLocation (uint32 stationID, SystemData &data) |
void | JoinCorporation (const CorpData &data) |
void | SetDescription (const char *newDescription) |
void | SetAccountKey (int32 accountKey) |
void | SetBaseID (uint32 baseID) |
void | SetFleetData (CharFleetData &fleet) |
uint32 | PickAlternateShip (uint32 locationID) |
void | SetClient (Client *pClient) |
Client * | GetClient () |
void | AddItem (InventoryItemRef item) |
bool | HasSkill (uint16 skillTypeID) const |
bool | HasSkillTrainedToLevel (uint16 skillTypeID, uint8 skillLevel) const |
SkillRef | GetSkill (uint16 skillTypeID) const |
int8 | GetSkillLevel (uint16 skillTypeID, bool zeroForNotInjected=true) const |
PyRep * | GetRAMSkills () |
Skill * | GetSkillInTraining () const |
void | GetSkillsList (std::vector< InventoryItemRef > &skills) const |
void | VerifySP () |
uint32 | GetTotalSPTrained () |
uint8 | GetSPPerMin (Skill *skill) |
int64 | GetEndOfTraining () |
uint8 | InjectSkillIntoBrain (SkillRef skill) |
void | AddToSkillQueue (uint16 typeID, uint8 level) |
void | ClearSkillQueue (bool update=false) |
void | PauseSkillQueue () |
void | CancelSkillInTraining (bool update=false) |
void | LoadPausedSkillQueue (uint16 typeID) |
void | SkillQueueLoop (bool update=true) |
void | UpdateSkillQueue () |
void | UpdateSkillQueueEndTime () |
void | RemoveFromQueue (SkillRef sRef) |
void | ClearSkillFlags () |
PyRep * | GetSkillHistory () |
uint32 | GetTotalSP () |
void | GrantCertificate (uint32 certificateID) |
void | UpdateCertificate (uint32 certificateID, bool pub) |
bool | HasCertificate (uint32 certificateID) const |
void | GetCertificates (CertMap &crt) |
PyDict * | GetCharInfo () |
PyObject * | GetDescription () const |
PyTuple * | SendSkillQueue () |
const CharacterType & | type () const |
uint32 | bloodlineID () const |
uint8 | race () const |
uint32 | accountID () const |
const std::string & | title () const |
const std::string & | description () const |
bool | gender () const |
float | bounty () const |
float | balance (uint8 type) |
float | GetSecurityRating () const |
uint32 | loginTime () const |
uint32 | logonMinutes () const |
uint16 | OnlineTime () |
void | secStatusChange (float amount) |
void | UpdateCorpData (CorpData &data) |
CorpData | GetCorpData () |
std::string | corpTicker () const |
uint32 | corporationID () const |
uint32 | corporationHQ () const |
int32 | allianceID () const |
int32 | warFactionID () const |
int32 | corpAccountKey () const |
float | corpTaxRate () const |
float | corpSecRating () const |
void | SetCorpHQ (uint32 stationID) |
int64 | corpRole () const |
int64 | rolesAtAll () const |
int64 | rolesAtBase () const |
int64 | rolesAtHQ () const |
int64 | rolesAtOther () const |
int64 | fleetJoinTime () |
int32 | fleetID () const |
int32 | wingID () const |
int32 | squadID () const |
int8 | fleetRole () const |
int8 | fleetBooster () const |
int8 | fleetJob () const |
uint32 | stationID () const |
uint32 | solarSystemID () const |
uint32 | constellationID () const |
uint32 | regionID () const |
uint32 | ancestryID () const |
uint32 | careerID () const |
uint32 | schoolID () const |
uint32 | careerSpecialityID () const |
int64 | startDateTime () const |
int64 | createDateTime () const |
uint32 | shipID () const |
uint32 | capsuleID () const |
void | SetActiveShip (uint32 shipID) |
void | SetActivePod (uint32 podID) |
void | ResetClone () |
void | PayBounty (CharacterRef cRef) |
void | LogKill (CharKillData data) |
void | LogOut () |
void | SaveBookMarks () |
void | SaveCharacter () |
void | SaveFullCharacter () |
void | SaveSkillQueue () |
void | SaveCertificates () |
void | SaveSkillHistory (uint16 eventID, double logDate, uint32 characterID, uint16 skillTypeID, uint8 skillLevel, uint32 absolutePoints) |
void | SetLoaded (bool set=false) |
void | SetLoginTime () |
void | SetLogonMinutes () |
float | GetStandingModified (uint32 fromID, uint32 toID=0) |
float | GetNPCCorpStanding (uint32 fromID, uint32 toID=0) |
void | SetStanding (uint32 fromID, uint32 toID, float standing) |
void | FleetShareMissionRewards () |
void | FleetShareMissionStandings (float newStanding) |
void | VisitSystem (uint32 solarSystemID) |
void | ProcessEffects (ShipItem *pShip) |
void | ResetModifiers () |
virtual bool | _Load () |
![]() | |
InventoryItem (uint32 _itemID, const ItemType &_type, const ItemData &_data) | |
InventoryItem (const InventoryItem &oth) | |
InventoryItem (InventoryItem &&oth) noexcept | |
InventoryItem & | operator= (const InventoryItem &oth)=delete |
InventoryItem & | operator= (InventoryItem &&oth)=delete |
virtual | ~InventoryItem () noexcept |
virtual ShipItem * | GetShipItem () |
virtual ModuleItem * | GetModuleItem () |
virtual bool | IsShipItem () |
virtual bool | IsModuleItem () |
virtual void | Rename (std::string name) |
Inventory * | GetMyInventory () |
bool | contraband () const |
bool | isSingleton () const |
int32 | quantity () const |
uint32 | itemID () const |
uint32 | ownerID () const |
uint32 | locationID () const |
EVEItemFlags | flag () const |
const GPoint & | position () const |
const ItemType & | type () const |
const std::string & | itemName () const |
const std::string & | customInfo () const |
const char * | name () |
uint16 | typeID () const |
uint16 | groupID () const |
double | radius () const |
uint8 | categoryID () const |
bool | isGlobal () const |
bool | IsOnline () |
void | SetPosition (const GPoint &pos) |
void | SetCustomInfo (const char *ci) |
void | ChangeOwner (uint32 new_owner, bool notify=false) |
void | Move (uint32 new_location=locTemp, EVEItemFlags flag=flagNone, bool notify=false) |
void | Donate (uint32 new_owner=ownerSystem, uint32 new_location=locTemp, EVEItemFlags new_flag=flagNone, bool notify=true) |
void | SendItemChange (uint32 toID, std::map< int32, PyRep * > &changes) |
void | MergeTypesInCargo (ShipItem *pShip, EVEItemFlags flag=flagNone) |
bool | ChangeSingleton (bool singleton, bool notify=false) |
bool | AlterQuantity (int32 qty, bool notify=false) |
bool | SetQuantity (int32 qty, bool notify=false, bool deleteOnZero=true) |
bool | SetFlag (EVEItemFlags flag, bool notify=false) |
void | SetOwner (uint32 ownerID) |
void | SaveItem () |
void | UpdateLocation () |
void | UpdateLocation (uint32 locID) |
virtual InventoryItemRef | Split (int32 qty=0, bool notify=true, bool silent=false) |
virtual bool | Merge (InventoryItemRef to_merge, int32 qty=0, bool notify=true) |
virtual void | Relocate (uint32 locID=0, EVEItemFlags flag=flagNone) |
virtual void | RemoveItem (InventoryItemRef iRef) |
double | GetPackagedVolume () |
virtual void | SetPlayer (Client *pClient) |
virtual bool | HasPilot () |
virtual Client * | GetPilot () |
void | ToVirtual (uint32 locationID) |
PyRep * | GetItem () const |
void | GetItemRow (PyPackedRow *into) const |
void | GetItemStatusRow (PyPackedRow *into) const |
void | GetChargeStatusRow (uint32 shipID, PyPackedRow *into) const |
bool | Populate (Rsp_CommonGetInfo_Entry &into) |
PyList * | GetItemInfo () const |
PyObject * | ItemGetInfo () |
PyPackedRow * | GetItemRow () const |
PyPackedRow * | GetItemStatusRow () const |
PyPackedRow * | GetChargeStatusRow (uint32 shipID) const |
bool | SkillCheck (InventoryItemRef refItem) |
void | ClearModifiers () |
void | AddModifier (fxData &data) |
void | RemoveModifier (fxData &data) |
void | ResetAttributes () |
bool | HasReqSkill (const uint16 skillID) |
AttributeMap * | GetAttributeMap () |
int64 | GetTimeStamp () |
void | SetAttribute (uint16 attrID, int num, bool notify=true) |
void | SetAttribute (uint16 attrID, uint32 num, bool notify=true) |
void | SetAttribute (uint16 attrID, int64 num, bool notify=true) |
void | SetAttribute (uint16 attrID, float num, bool notify=true) |
void | SetAttribute (uint16 attrID, double num, bool notify=true) |
void | SetAttribute (uint16 attrID, EvilNumber num, bool notify=true) |
void | MultiplyAttribute (uint16 attrID, EvilNumber num, bool notify=false) |
bool | HasAttribute (const uint16 attrID) const |
bool | HasAttribute (const uint16 attrID, EvilNumber &value) const |
bool | SaveAttributes () |
void | ResetAttribute (uint16 attrID, bool notify=false) |
void | DeleteAttribute (uint16 attrID) |
EvilNumber | GetAttribute (const uint16 attrID) const |
EvilNumber | GetDefaultAttribute (const uint16 attrID) const |
![]() | |
RefObject (size_t initRefCount) | |
Initializes reference count. More... | |
virtual | ~RefObject () |
Destructor; must be virtual. More... | |
size_t | GetCount () |
Static Public Member Functions | |
static CharacterRef | Load (uint32 characterID) |
static CharacterRef | Spawn (CharacterData &charData, CorpData &corpData) |
![]() | |
static uint32 | CreateItemID (ItemData &data) |
static uint32 | CreateTempItemID (ItemData &data) |
static InventoryItemRef | Load (uint32 itemID) |
static InventoryItemRef | SpawnItem (uint32 itemID, const ItemData &data) |
static InventoryItemRef | Spawn (ItemData &data) |
static InventoryItemRef | SpawnTemp (ItemData &data) |
Protected Member Functions | |
Character (uint32 _characterID, const CharacterType &_charType, const ItemData &_data, const CharacterData &_charData, const CorpData &_corpData) | |
virtual | ~Character () |
void | LoadBookmarks () |
![]() | |
void | IncRef () const |
Increments reference count of object by one. More... | |
void | DecRef () const |
Decrements reference count of object by one. More... | |
Static Protected Member Functions | |
template<class _Ty > | |
static RefPtr< _Ty > | _LoadItem (uint32 charID, const ItemType &type, const ItemData &data) |
![]() | |
template<class _Ty > | |
static RefPtr< _Ty > | Load (uint32 itemID) |
template<class _Ty > | |
static RefPtr< _Ty > | _Load (uint32 itemID) |
template<class _Ty > | |
static RefPtr< _Ty > | _LoadItem (uint32 itemID, const ItemType &type, const ItemData &data) |
Private Attributes | |
CertificateMgrDB | m_cdb |
CharacterDB | m_db |
StandingDB | s_db |
Client * | m_pClient |
CorpData | m_corpData |
CharacterData | m_charData |
CharFleetData | m_fleetData |
Skill * | m_inTraining |
SkillQueue | m_skillQueue |
uint32 | m_freePoints |
CertMap | m_certificates |
bool | m_loaded:1 |
uint32 | m_loginTime |
std::map< uint8, InventoryItemRef > | m_implantMap |
Friends | |
class | InventoryItem |
Additional Inherited Members | |
![]() | |
std::multimap< int8, fxData > | m_modifiers |
![]() | |
Inventory * | pInventory |
uint32 | m_itemID |
AttributeMap * | pAttributeMap |
![]() | |
size_t | mRefCount |
Reference count of instance. More... | |
bool | mDeleted |
Class representing character.
Definition at line 211 of file Character.h.
|
protected |
Definition at line 230 of file Character.cpp.
References IsAgent, InventoryItem::isSingleton(), InventoryItem::m_itemID, m_loginTime, InventoryItem::pInventory, and sEntityList.
Referenced by _LoadItem().
|
protectedvirtual |
Definition at line 257 of file Character.cpp.
References InventoryItem::pInventory, SafeDelete(), SaveBookMarks(), SaveCertificates(), and SaveFullCharacter().
|
virtual |
Reimplemented from InventoryItem.
Definition at line 269 of file Character.cpp.
References InventoryItem::_Load(), ClearSkillFlags(), flagSkillInTraining, RefPtr< X >::get(), GetFileTimeNow(), GetSkill(), IsAgent, LoadBookmarks(), CertificateMgrDB::LoadCertificates(), Inventory::LoadContents(), CharacterDB::LoadSkillQueue(), CharacterData::loginTime, m_cdb, m_certificates, m_charData, m_db, m_inTraining, InventoryItem::m_itemID, m_loaded, m_skillQueue, InventoryItem::pInventory, and sLog.
|
inlinestaticprotected |
Definition at line 409 of file Character.h.
References _log, ItemType::categoryID(), EVEDB::invGroups::Character, Character(), ItemType::groupID(), sConfig, sDataMgr, sItemFactory, EvE::traceStack(), and type().
|
inline |
|
virtual |
Reimplemented from InventoryItem.
Definition at line 1230 of file Character.cpp.
References _log, InventoryItem::AddItem(), RefPtr< X >::get(), and InventoryItem::name().
Definition at line 907 of file Character.cpp.
References _log, AttrSkillLevel, EvEMath::Skill::EndTime(), QueuedSkill::endTime, flagSkill, flagSkillInTraining, EvE::FormatTime(), EvilNumber::get_uint32(), InventoryItem::GetAttribute(), Skill::GetCurrentSP(), GetFileTimeNow(), GetSkill(), Skill::GetSPForLevel(), GetSPPerMin(), InventoryItem::itemID(), QueuedSkill::level, m_inTraining, InventoryItem::m_itemID, m_pClient, m_skillQueue, EvESkill::MAXSKILLLEVEL, InventoryItem::name(), Client::QueueDestinyEvent(), InventoryItem::SaveItem(), SaveSkillHistory(), EvE::Time::Second, Client::SendErrorMsg(), InventoryItem::SetFlag(), QueuedSkill::startTime, EvESkill::Event::TaskMaster, EvESkill::Event::TrainingStarted, QueuedSkill::typeID, and InventoryItem::typeID().
|
inline |
Definition at line 302 of file Character.h.
References CorpData::allianceID, and m_corpData.
Referenced by ShipSE::LaunchDrone().
bool Character::AlterBalance | ( | float | amount, |
uint8 | type | ||
) |
Primary public interface:
Definition at line 375 of file Character.cpp.
References UserError::AddISK(), args, CharacterData::aurBalance, Account::CreditType::AURUM, CharacterData::balance, balance(), Account::CreditType::ISK, m_charData, InventoryItem::m_itemID, m_pClient, SaveCharacter(), and Client::SendNotification().
Referenced by Client::AddBalance().
|
inline |
float Character::balance | ( | uint8 | type | ) |
Definition at line 363 of file Character.cpp.
References _log, CharacterData::aurBalance, Account::CreditType::AURUM, CharacterData::balance, Account::CreditType::ISK, and m_charData.
Referenced by AlterBalance(), and Client::GetBalance().
|
inline |
Definition at line 277 of file Character.h.
References CharacterType::bloodlineID(), and type().
|
inline |
Definition at line 287 of file Character.h.
References CharacterData::bounty, and m_charData.
Referenced by DroneSE::GetBounty(), Client::GetBounty(), and PayBounty().
void Character::CancelSkillInTraining | ( | bool | update = false | ) |
Definition at line 816 of file Character.cpp.
References _log, AttrSkillLevel, AttrSkillPoints, QueuedSkill::endTime, flagSkill, EvilNumber::get_uint32(), InventoryItem::GetAttribute(), Skill::GetCurrentSP(), GetFileTimeNow(), Skill::GetSPForLevel(), is_log_enabled, InventoryItem::itemID(), m_inTraining, InventoryItem::m_itemID, m_pClient, m_skillQueue, EvESkill::MAXSKILLLEVEL, InventoryItem::name(), Client::QueueDestinyEvent(), InventoryItem::SaveItem(), SaveSkillHistory(), InventoryItem::SetAttribute(), InventoryItem::SetFlag(), QueuedSkill::startTime, EvESkill::Event::TrainingCanceled, EvESkill::Event::TrainingComplete, QueuedSkill::typeID, and InventoryItem::typeID().
Referenced by ClearSkillQueue(), PauseSkillQueue(), and SkillQueueLoop().
|
inline |
Definition at line 342 of file Character.h.
References CharacterData::capsuleID, and m_charData.
Referenced by Client::SetPodItem().
|
inline |
|
inline |
Definition at line 335 of file Character.h.
References CharacterData::careerSpecialityID, and m_charData.
void Character::ClearSkillFlags | ( | ) |
Definition at line 551 of file Character.cpp.
References flagSkill, Inventory::GetItemsByFlag(), and InventoryItem::pInventory.
Referenced by _Load().
void Character::ClearSkillQueue | ( | bool | update = false | ) |
Definition at line 653 of file Character.cpp.
References _log, CancelSkillInTraining(), InventoryItem::m_itemID, m_skillQueue, and InventoryItem::name().
|
inline |
Definition at line 328 of file Character.h.
References CharacterData::constellationID, and m_charData.
Referenced by Client::UpdateSession().
|
inline |
|
inline |
|
inline |
Definition at line 300 of file Character.h.
References CorpData::corporationID, and m_corpData.
Referenced by FactoryDB::GetAssemblyLineProperties(), and ShipSE::LaunchDrone().
|
inline |
|
inline |
Definition at line 306 of file Character.h.
References m_corpData, and CorpData::secRating.
Referenced by RamMethods::LinePermissionCheck().
|
inline |
Definition at line 305 of file Character.h.
References m_corpData, and CorpData::taxRate.
Referenced by Client::GetCorpTaxRate().
|
inline |
|
inline |
Definition at line 339 of file Character.h.
References CharacterData::createDateTime, and m_charData.
|
virtual |
Reimplemented from InventoryItem.
Definition at line 354 of file Character.cpp.
References InventoryItem::Delete(), CharacterDB::DeleteCharacter(), Inventory::DeleteContents(), m_db, InventoryItem::m_itemID, and InventoryItem::pInventory.
|
inline |
Definition at line 284 of file Character.h.
References CharacterData::description, and m_charData.
Referenced by GetDescription().
|
inline |
Definition at line 322 of file Character.h.
References CharFleetData::booster, and m_fleetData.
Referenced by FleetService::AddMember(), Command_showsession(), FleetService::RemoveMember(), and FleetService::UpdateMember().
|
inline |
Definition at line 318 of file Character.h.
References CharFleetData::fleetID, and m_fleetData.
Referenced by Command_fleetboost(), Command_showsession(), FleetService::FleetBroadcast(), FleetService::LeaveFleet(), and FleetService::RemoveMember().
|
inline |
Definition at line 323 of file Character.h.
References CharFleetData::job, and m_fleetData.
Referenced by FleetService::AddMember(), Command_showsession(), and FleetService::UpdateMember().
|
inline |
Definition at line 317 of file Character.h.
References CharFleetData::joinTime, and m_fleetData.
Referenced by FleetService::AddMember(), Command_showsession(), and FleetService::UpdateMember().
|
inline |
Definition at line 321 of file Character.h.
References m_fleetData, and CharFleetData::role.
Referenced by FleetService::AddMember(), Command_showsession(), and FleetService::UpdateMember().
void Character::FleetShareMissionRewards | ( | ) |
Definition at line 471 of file Character.cpp.
void Character::FleetShareMissionStandings | ( | float | newStanding | ) |
|
inline |
void Character::GetCertificates | ( | CertMap & | crt | ) |
PyDict * Character::GetCharInfo | ( | ) |
Definition at line 1183 of file Character.cpp.
References codelog, Inventory::ContentsLoaded(), flagSkill, flagSkillInTraining, Inventory::GetItemsByFlag(), Inventory::LoadContents(), InventoryItem::m_itemID, InventoryItem::name(), InventoryItem::pInventory, InventoryItem::Populate(), and PyDict::SetItem().
|
inline |
|
inline |
PyObject * Character::GetDescription | ( | ) | const |
Definition at line 1222 of file Character.cpp.
References description().
int64 Character::GetEndOfTraining | ( | ) |
Definition at line 624 of file Character.cpp.
References flagSkill, InventoryItem::itemID(), m_inTraining, m_pClient, m_skillQueue, InventoryItem::name(), InventoryItem::SetFlag(), Client::SetTrainingEndTime(), and sLog.
Referenced by Skill::GetRemainingSP().
Definition at line 1376 of file Character.cpp.
References EvESkill::Connections, EvESkill::Diplomacy, GetSkillLevel(), StandingDB::GetStanding(), and InventoryItem::m_itemID.
PyRep * Character::GetRAMSkills | ( | ) |
Definition at line 595 of file Character.cpp.
References EvESkill::AdvancedLaboratoryOperation, EvESkill::AdvancedMassProduction, AttrManufactureSlotLimit, AttrMaxLaborotorySlots, GetSkillLevel(), EvESkill::LaboratoryOperation, EvESkill::MassProduction, EVEDB::invTypes::ScientificNetworking, EvESkill::ScientificNetworking, PyTuple::SetItem(), PyDict::SetItem(), EvESkill::SupplyChainManagement, and EVEDB::invTypes::SupplyChainManagement.
|
inline |
Definition at line 289 of file Character.h.
References m_charData, and CharacterData::securityRating.
Referenced by SystemEntity::AwardSecurityStatus(), DroneSE::GetSecurityRating(), and Client::GetSecurityRating().
Definition at line 566 of file Character.cpp.
References flagSkill, flagSkillInTraining, RefPtr< X >::get(), Inventory::GetByTypeFlag(), InventoryItem::pInventory, and RefPtr< X >::StaticCast().
Referenced by _Load(), AddToSkillQueue(), Command_giveallskills(), Command_giveskill(), GetSkillLevel(), HasSkill(), HasSkillTrainedToLevel(), InjectSkillIntoBrain(), LoadPausedSkillQueue(), and SkillQueueLoop().
PyRep * Character::GetSkillHistory | ( | ) |
Definition at line 542 of file Character.cpp.
References CharacterDB::GetSkillHistory(), m_db, and InventoryItem::m_itemID.
|
inline |
Definition at line 575 of file Character.cpp.
References AttrSkillLevel, RefPtr< X >::get(), and GetSkill().
Referenced by ActiveModule::ActiveModule(), CorporationDB::AddCorporation(), FleetService::AddMember(), SystemEntity::AwardSecurityStatus(), ReprocessingServiceBound::CalcReprocessingEfficiency(), RamMethods::Calculate(), Agent::CanUseAgent(), FleetService::CreateFleet(), CynoModule::CynoModule(), MarketMgr::ExecuteBuyOrder(), MarketMgr::ExecuteSellOrder(), Skill::FitModuleSkillCheck(), FleetService::GetBoosterData(), GetNPCCorpStanding(), GetRAMSkills(), ReprocessingServiceBound::GetStanding(), GetStandingModified(), RamMethods::JobsCheck(), ActiveModule::LaunchProbe(), RamMethods::MaterialSkillsCheck(), Missile::Missile(), ProbeSE::ProbeSE(), Client::ProcessClient(), Prospector::Prospector(), FleetService::SetSquadBoostData(), FleetService::SetWingBoostData(), Skill::SkillPrereqsComplete(), TargetManager::StartTargeting(), Prospector::Update(), ActiveModule::Update(), FleetService::UpdateBoost(), Agent::UpdateStandings(), and DestinyManager::WarpTo().
void Character::GetSkillsList | ( | std::vector< InventoryItemRef > & | skills | ) | const |
Definition at line 534 of file Character.cpp.
References flagSkill, Inventory::GetItemsByFlag(), and InventoryItem::pInventory.
Referenced by FxProc::ApplyEffects().
Definition at line 559 of file Character.cpp.
References AttrPrimaryAttribute, AttrSecondaryAttribute, EvilNumber::get_uint32(), InventoryItem::GetAttribute(), and EvEMath::Skill::PointsPerMinute().
Referenced by AddToSkillQueue(), Skill::GetCurrentSP(), Skill::GetRemainingSP(), Skill::GetTrainingTime(), and LoadPausedSkillQueue().
Definition at line 1363 of file Character.cpp.
References EvESkill::Connections, EvESkill::Diplomacy, GetSkillLevel(), StandingDB::GetStanding(), and InventoryItem::m_itemID.
Referenced by RamMethods::LinePermissionCheck().
uint32 Character::GetTotalSP | ( | ) |
Definition at line 677 of file Character.cpp.
References AttrSkillPoints, flagSkill, Inventory::GetItemsByFlag(), m_charData, InventoryItem::pInventory, and CharacterData::skillPoints.
Referenced by SaveCharacter().
|
inline |
void Character::GrantCertificate | ( | uint32 | certificateID | ) |
Definition at line 1327 of file Character.cpp.
References CertificateMgrDB::AddCertificate(), CharCerts::certificateID, GetFileTimeNow(), CharCerts::grantDate, m_cdb, m_certificates, InventoryItem::m_itemID, and CharCerts::visibilityFlags.
bool Character::HasCertificate | ( | uint32 | certificateID | ) | const |
bool Character::HasSkill | ( | uint16 | skillTypeID | ) | const |
Definition at line 538 of file Character.cpp.
References GetSkill().
Referenced by Command_giveallskills(), and Command_giveskill().
Definition at line 584 of file Character.cpp.
References AttrSkillLevel, RefPtr< X >::get(), and GetSkill().
Referenced by Command_giveallskills(), Command_giveskill(), FleetService::GetBoosterData(), ProbeSE::HasMaxSkill(), FleetService::SetSquadBoostData(), FleetService::SetWingBoostData(), FleetService::UpdateBoost(), and ShipItem::ValidateBoardShip().
Definition at line 700 of file Character.cpp.
References _log, AttrSkillLevel, AttrSkillPoints, EvilZero, flagSkill, RefPtr< X >::get(), EvilNumber::get_uint32(), GetFileTimeNow(), GetSkill(), InventoryItem::m_itemID, m_pClient, InventoryItem::name(), SaveSkillHistory(), Client::SendNotifyMsg(), EvESkill::Event::SkillInjected, and RefPtr< X >::StaticCast().
void Character::JoinCorporation | ( | const CorpData & | data | ) |
Definition at line 426 of file Character.cpp.
References CharacterDB::AddEmployment(), CorpData::corporationID, m_corpData, m_db, InventoryItem::m_itemID, m_pClient, CharacterDB::SaveCorpData(), and Client::UpdateCorpSession().
|
static |
Definition at line 265 of file Character.cpp.
Referenced by Spawn().
|
protected |
Definition at line 1348 of file Character.cpp.
Referenced by _Load().
void Character::LoadPausedSkillQueue | ( | uint16 | typeID | ) |
Definition at line 758 of file Character.cpp.
References _log, AttrSkillLevel, EvEMath::Skill::EndTime(), flagSkillInTraining, RefPtr< X >::get(), EvilNumber::get_uint32(), InventoryItem::GetAttribute(), Skill::GetCurrentSP(), GetFileTimeNow(), GetSkill(), Skill::GetSPForLevel(), GetSPPerMin(), InventoryItem::itemID(), CharacterDB::LoadPausedSkillQueue(), m_db, InventoryItem::m_itemID, m_pClient, m_skillQueue, EvESkill::MAXSKILLLEVEL, InventoryItem::name(), Client::QueueDestinyEvent(), InventoryItem::SaveItem(), SaveSkillHistory(), InventoryItem::SetFlag(), EvESkill::Event::TrainingStarted, and UpdateSkillQueueEndTime().
|
inline |
|
inline |
Definition at line 349 of file Character.h.
References m_db, and ServiceDB::SaveKillOrLoss().
|
inline |
void Character::LogOut | ( | ) |
Definition at line 336 of file Character.cpp.
References CharFleetData::fleetID, Client::IsCharCreation(), IsFleetID, CharacterData::locationID, m_charData, m_db, m_fleetData, InventoryItem::m_itemID, m_pClient, InventoryItem::pInventory, SaveFullCharacter(), sConsole, sDataMgr, CharacterDB::SetLogOffTime(), sFltSvc, sItemFactory, and Inventory::Unload().
Referenced by Client::~Client().
uint16 Character::OnlineTime | ( | ) |
Definition at line 1296 of file Character.cpp.
References GetFileTimeNow(), CharacterData::loginTime, and m_charData.
void Character::PauseSkillQueue | ( | ) |
Definition at line 748 of file Character.cpp.
References _log, CancelSkillInTraining(), m_db, InventoryItem::m_itemID, m_skillQueue, InventoryItem::name(), CharacterDB::SavePausedSkillQueue(), and UpdateSkillQueueEndTime().
void Character::PayBounty | ( | CharacterRef | cRef | ) |
Definition at line 1281 of file Character.cpp.
References Journal::EntryType::Bounty, bounty(), corpCONCORD, InventoryItem::itemID(), InventoryItem::itemName(), InventoryItem::m_itemID, Stat::pcBounties, sStatMgr, and AccountService::TranserFunds().
Referenced by ShipSE::Killed().
Definition at line 457 of file Character.cpp.
References m_db, InventoryItem::m_itemID, and CharacterDB::PickAlternateShip().
Referenced by Client::PickAlternateShip().
void Character::ProcessEffects | ( | ShipItem * | pShip | ) |
Definition at line 498 of file Character.cpp.
References _log, fxData::action, flagSkill, Inventory::GetItemsByFlag(), FX::Action::Invalid, InventoryItem::pInventory, Effect::preExpression, sFxDataMgr, sFxProc, and fxData::srcRef.
Referenced by ShipItem::ProcessEffects().
|
inline |
Definition at line 278 of file Character.h.
References ItemType::race(), and type().
Referenced by CorporationDB::AddCorporation(), and Client::SpawnNewRookieShip().
|
inline |
Definition at line 329 of file Character.h.
References m_charData, and CharacterData::regionID.
Referenced by Client::UpdateSession().
void Character::RemoveFromQueue | ( | SkillRef | sRef | ) |
Definition at line 642 of file Character.cpp.
References AttrSkillLevel, m_skillQueue, and SkillQueueLoop().
Referenced by Command_giveskill().
void Character::ResetClone | ( | ) |
Definition at line 1252 of file Character.cpp.
References CharacterDB::ChangeCloneType(), itemCloneAlpha, m_db, and InventoryItem::m_itemID.
Referenced by Client::ResetAfterPodded().
void Character::ResetModifiers | ( | ) |
Definition at line 485 of file Character.cpp.
References _log, InventoryItem::ClearModifiers(), flagSkill, Inventory::GetItemsByFlag(), InventoryItem::pInventory, and InventoryItem::ResetAttributes().
Referenced by ShipItem::ProcessEffects(), and ShipItem::ResetEffects().
|
inline |
|
inline |
|
inline |
|
inline |
void Character::SaveBookMarks | ( | ) |
Definition at line 1353 of file Character.cpp.
Referenced by ~Character().
void Character::SaveCertificates | ( | ) |
Definition at line 1341 of file Character.cpp.
References _log, m_cdb, m_certificates, InventoryItem::m_itemID, and CertificateMgrDB::SaveCertificates().
Referenced by ~Character().
void Character::SaveCharacter | ( | ) |
Definition at line 1257 of file Character.cpp.
References _log, GetTotalSP(), m_charData, m_db, InventoryItem::m_itemID, CharacterDB::SaveCharacter(), and SetLogonMinutes().
Referenced by AlterBalance(), Client::ResetAfterPodded(), SaveFullCharacter(), SetDescription(), SetLocation(), and SkillQueueLoop().
void Character::SaveFullCharacter | ( | ) |
Definition at line 1266 of file Character.cpp.
References _log, AttrSkillPoints, Skill::GetCurrentSP(), m_corpData, m_db, m_inTraining, InventoryItem::m_itemID, m_skillQueue, InventoryItem::SaveAttributes(), SaveCharacter(), CharacterDB::SaveCorpData(), InventoryItem::SaveItem(), SaveSkillQueue(), and InventoryItem::SetAttribute().
Referenced by LogOut(), and ~Character().
void Character::SaveSkillHistory | ( | uint16 | eventID, |
double | logDate, | ||
uint32 | characterID, | ||
uint16 | skillTypeID, | ||
uint8 | skillLevel, | ||
uint32 | absolutePoints | ||
) |
Definition at line 689 of file Character.cpp.
References m_db, CharacterDB::SaveSkillHistory(), and sDataMgr.
Referenced by AddToSkillQueue(), CancelSkillInTraining(), Command_giveskill(), InjectSkillIntoBrain(), LoadPausedSkillQueue(), and SkillQueueLoop().
void Character::SaveSkillQueue | ( | ) |
Definition at line 546 of file Character.cpp.
References _log, m_db, InventoryItem::m_itemID, m_skillQueue, InventoryItem::name(), and CharacterDB::SaveSkillQueue().
Referenced by SaveFullCharacter(), and UpdateSkillQueueEndTime().
|
inline |
|
inline |
Definition at line 294 of file Character.h.
References m_charData, and CharacterData::securityRating.
Referenced by SystemEntity::AwardSecurityStatus(), and ShipSE::Killed().
PyTuple * Character::SendSkillQueue | ( | ) |
Definition at line 660 of file Character.cpp.
References PyList::AddItem(), m_freePoints, m_skillQueue, and PyTuple::SetItem().
void Character::SetAccountKey | ( | int32 | accountKey | ) |
Definition at line 435 of file Character.cpp.
References CorpData::corpAccountKey, m_corpData, m_db, InventoryItem::m_itemID, m_pClient, CharacterDB::SaveCorpData(), and Client::UpdateCorpSession().
void Character::SetActivePod | ( | uint32 | podID | ) |
Definition at line 1246 of file Character.cpp.
References CharacterData::capsuleID, m_charData, m_db, InventoryItem::m_itemID, and CharacterDB::SetCurrentPod().
Referenced by Client::CreateNewPod().
void Character::SetActiveShip | ( | uint32 | shipID | ) |
Definition at line 1240 of file Character.cpp.
References m_charData, m_db, InventoryItem::m_itemID, CharacterDB::SetCurrentShip(), CharacterData::shipID, and shipID().
Referenced by Client::SetShip().
void Character::SetBaseID | ( | uint32 | baseID | ) |
Definition at line 443 of file Character.cpp.
References CorpData::baseID, baseID, m_corpData, m_db, InventoryItem::m_itemID, m_pClient, CharacterDB::SaveCorpData(), and Client::UpdateCorpSession().
|
inline |
Definition at line 231 of file Character.h.
References m_pClient.
Referenced by Client::SelectCharacter().
|
inline |
Definition at line 307 of file Character.h.
References CorpData::corpHQ, m_corpData, stationID(), and UpdateCorpData().
void Character::SetDescription | ( | const char * | newDescription | ) |
Definition at line 421 of file Character.cpp.
References CharacterData::description, m_charData, and SaveCharacter().
void Character::SetFleetData | ( | CharFleetData & | fleet | ) |
Definition at line 462 of file Character.cpp.
References LSC::fleet, m_fleetData, m_pClient, and Client::UpdateFleetSession().
Referenced by FleetService::AddMember(), FleetService::CreateFleet(), FleetService::LeaveFleet(), and FleetService::UpdateMember().
|
inline |
void Character::SetLocation | ( | uint32 | stationID, |
SystemData & | data | ||
) |
Definition at line 412 of file Character.cpp.
References CharacterData::constellationID, SystemData::constellationID, CharacterData::locationID, m_charData, CharacterData::regionID, SystemData::regionID, SaveCharacter(), CharacterData::solarSystemID, CharacterData::stationID, stationID(), and SystemData::systemID.
Referenced by Client::MoveToLocation().
void Character::SetLoginTime | ( | ) |
Definition at line 1290 of file Character.cpp.
References m_db, InventoryItem::m_itemID, m_loginTime, sEntityList, and CharacterDB::SetLogInTime().
Referenced by Client::SelectCharacter().
void Character::SetLogonMinutes | ( | ) |
Definition at line 1306 of file Character.cpp.
References CharacterData::logonMinutes, m_charData, m_loginTime, and sEntityList.
Referenced by Client::ProcessClient(), and SaveCharacter().
Definition at line 1388 of file Character.cpp.
References m_pClient, Client::SendNotification(), and StandingDB::SetStanding().
|
inline |
Definition at line 341 of file Character.h.
References m_charData, and CharacterData::shipID.
Referenced by SetActiveShip().
void Character::SkillQueueLoop | ( | bool | update = true | ) |
Definition at line 998 of file Character.cpp.
References _log, PyList::AddItemInt(), AttrSkillLevel, AttrSkillPoints, CancelSkillInTraining(), EVEDB::invGroups::Corporation_Management, PyList::empty(), QueuedSkill::endTime, flagSkill, flagSkillInTraining, EvE::FormatTime(), RefPtr< X >::get(), Skill::GetCurrentSP(), GetFileTimeNow(), GetSkill(), Skill::GetSPForLevel(), GetTimeMSeconds(), InventoryItem::groupID(), is_log_enabled, Client::IsInSpace(), Client::IsLogin(), InventoryItem::itemID(), QueuedSkill::level, m_inTraining, InventoryItem::m_itemID, m_pClient, m_skillQueue, InventoryItem::name(), EVEDB::invGroups::Planet_Management, Client::QueueDestinyEvent(), EvESkill::Event::QueueTrainingCompleted, SaveCharacter(), InventoryItem::SaveItem(), SaveSkillHistory(), EvE::Time::Second, Client::SendInfoModalMsg(), InventoryItem::SetAttribute(), InventoryItem::SetFlag(), PyList::size(), EVEDB::invGroups::Social, QueuedSkill::startTime, EVEDB::invGroups::Trade, EvESkill::Event::TrainingStarted, QueuedSkill::typeID, InventoryItem::typeID(), and UpdateSkillQueueEndTime().
Referenced by Client::ProcessClient(), RemoveFromQueue(), and Client::SelectCharacter().
|
inline |
Definition at line 327 of file Character.h.
References m_charData, and CharacterData::solarSystemID.
Referenced by Client::CreateNewPod(), and Client::UpdateSession().
|
static |
Definition at line 321 of file Character.cpp.
References _log, IsCharacterID, Load(), CharacterDB::NewCharacter(), sItemFactory, and CharacterData::typeID.
Referenced by ItemFactory::SpawnCharacter().
|
inline |
Definition at line 320 of file Character.h.
References m_fleetData, and CharFleetData::squadID.
Referenced by FleetService::AddMember(), Command_showsession(), FleetService::FleetBroadcast(), FleetService::RemoveMember(), and FleetService::UpdateMember().
|
inline |
|
inline |
Definition at line 326 of file Character.h.
References m_charData, and CharacterData::stationID.
Referenced by Client::SendSessionChange(), SetCorpHQ(), SetLocation(), and Client::UpdateSession().
|
inline |
|
inline |
Definition at line 276 of file Character.h.
References InventoryItem::type().
Referenced by _LoadItem(), bloodlineID(), and race().
void Character::UpdateCertificate | ( | uint32 | certificateID, |
bool | pub | ||
) |
Definition at line 1337 of file Character.cpp.
References m_cdb, InventoryItem::m_itemID, and CertificateMgrDB::UpdateCertificate().
void Character::UpdateCorpData | ( | CorpData & | data | ) |
Definition at line 451 of file Character.cpp.
References m_corpData, m_pClient, and Client::UpdateCorpSession().
Referenced by SetCorpHQ().
void Character::UpdateSkillQueue | ( | ) |
Definition at line 991 of file Character.cpp.
void Character::UpdateSkillQueueEndTime | ( | ) |
Definition at line 1166 of file Character.cpp.
References _log, is_log_enabled, m_db, InventoryItem::m_itemID, m_pClient, m_skillQueue, InventoryItem::name(), SaveSkillQueue(), Client::SetTrainingEndTime(), and CharacterDB::UpdateSkillQueueEndTime().
Referenced by LoadPausedSkillQueue(), PauseSkillQueue(), and SkillQueueLoop().
void Character::VerifySP | ( | ) |
Definition at line 311 of file Character.cpp.
References flagSkill, Inventory::GetItemsByFlag(), InventoryItem::pInventory, and RefPtr< X >::StaticCast().
Referenced by Client::SelectCharacter().
void Character::VisitSystem | ( | uint32 | solarSystemID | ) |
Definition at line 1395 of file Character.cpp.
References m_db, InventoryItem::m_itemID, and CharacterDB::VisitSystem().
Referenced by Client::CynoJump(), and Client::StargateJump().
|
inline |
Definition at line 303 of file Character.h.
References m_corpData, and CorpData::warFactionID.
Referenced by ShipSE::LaunchDrone().
|
inline |
Definition at line 319 of file Character.h.
References m_fleetData, and CharFleetData::wingID.
Referenced by FleetService::AddMember(), Command_showsession(), FleetService::FleetBroadcast(), FleetService::RemoveMember(), and FleetService::UpdateMember().
|
friend |
Definition at line 214 of file Character.h.
|
private |
Definition at line 433 of file Character.h.
Referenced by _Load(), GrantCertificate(), SaveCertificates(), and UpdateCertificate().
|
private |
Definition at line 448 of file Character.h.
Referenced by _Load(), GetCertificates(), GrantCertificate(), HasCertificate(), and SaveCertificates().
|
private |
Definition at line 440 of file Character.h.
Referenced by _Load(), accountID(), AlterBalance(), ancestryID(), balance(), bounty(), capsuleID(), careerID(), careerSpecialityID(), constellationID(), createDateTime(), description(), gender(), GetSecurityRating(), GetTotalSP(), GetTotalSPTrained(), logonMinutes(), LogOut(), OnlineTime(), regionID(), SaveCharacter(), schoolID(), secStatusChange(), SetActivePod(), SetActiveShip(), SetDescription(), SetLocation(), SetLogonMinutes(), shipID(), solarSystemID(), stationID(), and title().
|
private |
Definition at line 439 of file Character.h.
Referenced by allianceID(), corpAccountKey(), corporationHQ(), corporationID(), corpRole(), corpSecRating(), corpTaxRate(), corpTicker(), GetCorpData(), JoinCorporation(), rolesAtAll(), rolesAtBase(), rolesAtHQ(), rolesAtOther(), SaveFullCharacter(), SetAccountKey(), SetBaseID(), SetCorpHQ(), startDateTime(), UpdateCorpData(), and warFactionID().
|
private |
Definition at line 434 of file Character.h.
Referenced by _Load(), Delete(), GetSkillHistory(), JoinCorporation(), LoadPausedSkillQueue(), LogKill(), LogOut(), PauseSkillQueue(), PickAlternateShip(), ResetClone(), SaveCharacter(), SaveFullCharacter(), SaveSkillHistory(), SaveSkillQueue(), SetAccountKey(), SetActivePod(), SetActiveShip(), SetBaseID(), SetLoginTime(), UpdateSkillQueueEndTime(), and VisitSystem().
|
private |
Definition at line 441 of file Character.h.
Referenced by fleetBooster(), fleetID(), fleetJob(), fleetJoinTime(), fleetRole(), FleetShareMissionStandings(), LogOut(), SetFleetData(), squadID(), and wingID().
|
private |
Definition at line 446 of file Character.h.
Referenced by SendSkillQueue().
|
private |
Definition at line 454 of file Character.h.
|
private |
Definition at line 444 of file Character.h.
Referenced by _Load(), AddToSkillQueue(), CancelSkillInTraining(), GetEndOfTraining(), GetSkillInTraining(), SaveFullCharacter(), and SkillQueueLoop().
|
private |
Definition at line 450 of file Character.h.
Referenced by _Load(), and SetLoaded().
|
private |
Definition at line 452 of file Character.h.
Referenced by Character(), loginTime(), SetLoginTime(), and SetLogonMinutes().
|
private |
Definition at line 437 of file Character.h.
Referenced by AddToSkillQueue(), AlterBalance(), CancelSkillInTraining(), GetClient(), GetEndOfTraining(), InjectSkillIntoBrain(), JoinCorporation(), LoadPausedSkillQueue(), LogOut(), SetAccountKey(), SetBaseID(), SetClient(), SetFleetData(), SetStanding(), SkillQueueLoop(), UpdateCorpData(), and UpdateSkillQueueEndTime().
|
private |
Definition at line 445 of file Character.h.
Referenced by _Load(), AddToSkillQueue(), CancelSkillInTraining(), ClearSkillQueue(), GetEndOfTraining(), LoadPausedSkillQueue(), PauseSkillQueue(), RemoveFromQueue(), SaveFullCharacter(), SaveSkillQueue(), SendSkillQueue(), SkillQueueLoop(), and UpdateSkillQueueEndTime().
|
private |
Definition at line 435 of file Character.h.