EvEmu
0.8.4
11 September 2021
|
#include "AnomalyMgr.h"
Protected Attributes | |
ManagerDB | m_mdb |
ServiceDB | m_sdb |
SystemGPoint | m_gp |
Private Attributes | |
BeltMgr * | m_beltMgr |
DungeonMgr * | m_dungMgr |
SpawnMgr * | m_spawnMgr |
SystemManager * | m_system |
PyServiceMgr & | m_services |
Timer | m_spawnTimer |
Timer | m_procTimer |
bool | m_initalized |
uint8 | m_maxSigs |
uint8 | m_Sigs |
int8 | m_WH |
int8 | m_Grav |
int8 | m_Mag |
int8 | m_Ladar |
int8 | m_Radar |
int8 | m_Unrated |
int8 | m_Complex |
uint16 | m_Anoms |
std::map< uint32, CosmicSignature > | m_sigByItemID |
std::map< uint32, CosmicSignature > | m_anomByItemID |
std::map< std::string, CosmicSignature > | m_sigBySigID |
AnomalyMgr.cpp | |
Anomaly management system for EVEmu : Allan
| |
AnomalyMgr (SystemManager *mgr, PyServiceMgr &svc) | |
~AnomalyMgr () | |
bool | Init (BeltMgr *beltMgr, DungeonMgr *dungMgr, SpawnMgr *spawnMgr) |
void | Close () |
void | Process () |
void | SaveAnomaly () |
void | CreateAnomaly (int8 typeID=0) |
void | LoadAnomalies () |
void | AddSignal (SystemEntity *pSE, uint32 id=0) |
void | RemoveSignal (uint32 itemID) |
void | GetAnomalyList (std::vector< CosmicSignature > &sig) |
void | GetSignatureList (std::vector< CosmicSignature > &sig) |
uint32 | GetAnomalyID (std::string &sigID) |
GPoint | GetAnomalyPos (std::string &sigID) |
const char * | GetScanGroupName (uint8 groupID=0) |
uint8 | GetDungeonType () |
Definition at line 29 of file AnomalyMgr.h.
AnomalyMgr::AnomalyMgr | ( | SystemManager * | mgr, |
PyServiceMgr & | svc | ||
) |
Definition at line 49 of file AnomalyMgr.cpp.
References m_initalized, m_sigByItemID, and m_sigBySigID.
AnomalyMgr::~AnomalyMgr | ( | ) |
Definition at line 64 of file AnomalyMgr.cpp.
void AnomalyMgr::AddSignal | ( | SystemEntity * | pSE, |
uint32 | id = 0 |
||
) |
Definition at line 422 of file AnomalyMgr.cpp.
References _log, Dungeon::Type::Anomaly, Scanning::Group::Anomaly, EVEDB::invCategories::Asteroid, AttrScanAllStrength, AttrScanStrengthDronesProbes, AttrScanStrengthShips, AttrScanStrengthStructures, AttrSignatureRadius, CosmicSignature::bubbleID, InventoryItem::categoryID(), EVEDB::invCategories::Celestial, EVEDB::invCategories::Charge, EVEDB::invGroups::Cosmic_Anomaly, EVEDB::invTypes::CosmicAnomaly, EVEDB::invTypes::CosmicSignature, EVEDB::invCategories::Deployable, EVEDB::invCategories::Drone, Scanning::Group::DroneOrProbe, CosmicSignature::dungeonType, EVEDB::invCategories::Entity, RefPtr< X >::get(), EvilNumber::get_float(), InventoryItem::GetAttribute(), SystemManager::GetID(), SystemBubble::GetID(), GetScanGroupName(), SystemEntity::GetSelf(), InventoryItem::groupID(), InventoryItem::itemID(), InventoryItem::itemName(), m_anomByItemID, m_initalized, m_sigByItemID, m_sigBySigID, m_system, InventoryItem::name(), EVEDB::invCategories::Orbitals, InventoryItem::ownerID(), CosmicSignature::ownerID, InventoryItem::position(), CosmicSignature::position, CosmicSignature::scanAttributeID, CosmicSignature::scanGroupID, sEntityList, EVEDB::invCategories::Ship, Scanning::Group::Ship, CosmicSignature::sigGroupID, CosmicSignature::sigID, CosmicSignature::sigItemID, CosmicSignature::sigName, CosmicSignature::sigStrength, CosmicSignature::sigTypeID, EVEDB::invCategories::SovereigntyStructure, Scanning::Group::Structure, EVEDB::invCategories::Structure, EVEDB::invCategories::StructureUpgrade, SystemEntity::SysBubble(), CosmicSignature::systemID, and InventoryItem::typeID().
Referenced by SystemManager::AddEntity(), and SystemManager::AddMarker().
void AnomalyMgr::Close | ( | ) |
Definition at line 171 of file AnomalyMgr.cpp.
References _log, SystemManager::GetID(), SystemManager::GetName(), and m_system.
Referenced by SystemManager::UnloadSystem().
void AnomalyMgr::CreateAnomaly | ( | int8 | typeID = 0 | ) |
Definition at line 207 of file AnomalyMgr.cpp.
References _log, Dungeon::Type::Anomaly, Scanning::Group::Anomaly, AttrScanAllStrength, AttrScanGravimetricStrength, AttrScanLadarStrength, AttrScanMagnetometricStrength, AttrScanRadarStrength, CosmicSignature::bubbleID, EVEDB::invGroups::Cosmic_Anomaly, EVEDB::invGroups::Cosmic_Signature, EVEDB::invTypes::CosmicAnomaly, EVEDB::invTypes::CosmicSignature, EVEDB::invTypes::DeadspaceSignature, CosmicSignature::dungeonType, Dungeon::Type::Escalation, factionRogueDrones, SystemGPoint::GetAnomalyPoint(), GetDungeonType(), SystemManager::GetID(), SystemManager::GetName(), SystemManager::GetRegionID(), Dungeon::Type::Gravimetric, Dungeon::Type::Ladar, m_anomByItemID, m_Anoms, m_dungMgr, m_gp, m_sigByItemID, m_sigBySigID, m_Sigs, m_system, Dungeon::Type::Magnetometric, DungeonMgr::MakeDungeon(), MakeRandomFloat(), CosmicSignature::ownerID, CosmicSignature::position, Dungeon::Type::Radar, Dungeon::Type::Rated, CosmicSignature::scanAttributeID, CosmicSignature::scanGroupID, sConfig, sDataMgr, sDunDataMgr, sEntityList, CosmicSignature::sigGroupID, CosmicSignature::sigID, CosmicSignature::sigItemID, CosmicSignature::sigName, Scanning::Group::Signature, CosmicSignature::sigStrength, CosmicSignature::sigTypeID, sWHMgr, CosmicSignature::systemID, Dungeon::Type::Unrated, and Dungeon::Type::Wormhole.
Referenced by Process().
uint32 AnomalyMgr::GetAnomalyID | ( | std::string & | sigID | ) |
Definition at line 403 of file AnomalyMgr.cpp.
References m_sigBySigID.
void AnomalyMgr::GetAnomalyList | ( | std::vector< CosmicSignature > & | sig | ) |
Definition at line 200 of file AnomalyMgr.cpp.
References m_anomByItemID.
Referenced by Command_siglist(), Scan::ProbeScanResult(), and Scan::ShipScanResult().
GPoint AnomalyMgr::GetAnomalyPos | ( | std::string & | sigID | ) |
Definition at line 411 of file AnomalyMgr.cpp.
References m_sigBySigID, and NULL_ORIGIN().
|
protected |
Definition at line 339 of file AnomalyMgr.cpp.
References _log, Dungeon::Type::Anomaly, Dungeon::Type::Escalation, Dungeon::Type::Gravimetric, Dungeon::Type::Ladar, m_Anoms, m_Complex, m_Grav, m_Ladar, m_Mag, m_maxSigs, m_Radar, m_Unrated, m_WH, Dungeon::Type::Magnetometric, MakeRandomInt(), Dungeon::Type::Radar, Dungeon::Type::Rated, sDunDataMgr, Dungeon::Type::Unrated, and Dungeon::Type::Wormhole.
Referenced by CreateAnomaly().
const char * AnomalyMgr::GetScanGroupName | ( | uint8 | groupID = 0 | ) |
Definition at line 539 of file AnomalyMgr.cpp.
References Dungeon::Type::Anomaly, Scanning::Group::Celestial, Scanning::Group::DroneOrProbe, Scanning::Group::Scrap, Scanning::Group::Ship, Scanning::Group::Signature, and Scanning::Group::Structure.
Referenced by AddSignal(), Command_siglist(), and Scan::GetProbeDataForSig().
void AnomalyMgr::GetSignatureList | ( | std::vector< CosmicSignature > & | sig | ) |
Definition at line 192 of file AnomalyMgr.cpp.
References m_sigByItemID.
Referenced by Command_siglist(), and Scan::ProbeScanResult().
bool AnomalyMgr::Init | ( | BeltMgr * | beltMgr, |
DungeonMgr * | dungMgr, | ||
SpawnMgr * | spawnMgr | ||
) |
Definition at line 78 of file AnomalyMgr.cpp.
References _log, SystemManager::GetID(), SystemManager::GetName(), SystemManager::GetSecValue(), m_Anoms, m_beltMgr, m_Complex, m_dungMgr, m_Grav, m_initalized, m_Ladar, m_Mag, m_maxSigs, m_procTimer, m_Radar, m_Sigs, m_spawnMgr, m_system, m_Unrated, m_WH, sConfig, and Timer::Start().
Referenced by SystemManager::LoadCosmicMgrs().
void AnomalyMgr::LoadAnomalies | ( | ) |
Definition at line 176 of file AnomalyMgr.cpp.
void AnomalyMgr::Process | ( | ) |
sConfig.debug.IsTestServer
Definition at line 156 of file AnomalyMgr.cpp.
References Dungeon::Type::Anomaly, Timer::Check(), CreateAnomaly(), m_Anoms, m_initalized, m_maxSigs, m_procTimer, and m_Sigs.
Referenced by SystemManager::ProcessTic().
void AnomalyMgr::RemoveSignal | ( | uint32 | itemID | ) |
Definition at line 518 of file AnomalyMgr.cpp.
References _log, m_anomByItemID, m_sigByItemID, and m_sigBySigID.
Referenced by SystemManager::RemoveEntity().
void AnomalyMgr::SaveAnomaly | ( | ) |
Definition at line 184 of file AnomalyMgr.cpp.
References m_mdb, m_sigByItemID, and ManagerDB::SaveAnomaly().
|
private |
Definition at line 94 of file AnomalyMgr.h.
Referenced by AddSignal(), CreateAnomaly(), GetAnomalyList(), and RemoveSignal().
|
private |
Definition at line 90 of file AnomalyMgr.h.
Referenced by CreateAnomaly(), GetDungeonType(), Init(), and Process().
|
private |
Definition at line 65 of file AnomalyMgr.h.
Referenced by Init().
|
private |
Definition at line 88 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
private |
Definition at line 66 of file AnomalyMgr.h.
Referenced by CreateAnomaly(), and Init().
|
protected |
Definition at line 59 of file AnomalyMgr.h.
Referenced by CreateAnomaly().
|
private |
Definition at line 81 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
private |
Definition at line 74 of file AnomalyMgr.h.
Referenced by AddSignal(), AnomalyMgr(), Init(), and Process().
|
private |
Definition at line 83 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
private |
Definition at line 82 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
private |
Definition at line 77 of file AnomalyMgr.h.
Referenced by GetDungeonType(), Init(), and Process().
|
protected |
Definition at line 57 of file AnomalyMgr.h.
Referenced by SaveAnomaly().
|
private |
Definition at line 72 of file AnomalyMgr.h.
|
private |
Definition at line 84 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
protected |
Definition at line 58 of file AnomalyMgr.h.
|
private |
Definition at line 69 of file AnomalyMgr.h.
|
private |
Definition at line 93 of file AnomalyMgr.h.
Referenced by AddSignal(), AnomalyMgr(), CreateAnomaly(), GetSignatureList(), RemoveSignal(), and SaveAnomaly().
|
private |
Definition at line 95 of file AnomalyMgr.h.
Referenced by AddSignal(), AnomalyMgr(), CreateAnomaly(), GetAnomalyID(), GetAnomalyPos(), and RemoveSignal().
|
private |
Definition at line 78 of file AnomalyMgr.h.
Referenced by CreateAnomaly(), Init(), and Process().
|
private |
Definition at line 67 of file AnomalyMgr.h.
Referenced by Init().
|
private |
Definition at line 71 of file AnomalyMgr.h.
|
private |
Definition at line 68 of file AnomalyMgr.h.
Referenced by AddSignal(), Close(), CreateAnomaly(), and Init().
|
private |
Definition at line 86 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().
|
private |
Definition at line 80 of file AnomalyMgr.h.
Referenced by GetDungeonType(), and Init().