EvEmu
0.8.4
11 September 2021
|
#include "DungeonMgr.h"
Protected Attributes | |
ManagerDB | m_db |
SystemGPoint | m_gp |
Private Attributes | |
bool | m_initalized |
AnomalyMgr * | m_anomMgr |
SpawnMgr * | m_spawnMgr |
SystemManager * | m_system |
PyServiceMgr & | m_services |
std::vector< Dungeon::GroupData > | m_anomalyItems |
std::map< uint32, std::vector < uint32 > > | m_dungeonList |
DungeonMgr.cpp | |
Dungeon management system for EVEmu : Allan
| |
DungeonMgr (SystemManager *system, PyServiceMgr &svc) | |
~DungeonMgr () | |
bool | Init (AnomalyMgr *anomMgr, SpawnMgr *spawnMgr) |
void | Process () |
void | Load () |
bool | MakeDungeon (CosmicSignature &sig) |
bool | Create (uint32 templateID, CosmicSignature &sig) |
void | CreateDeco (uint32 templateID, CosmicSignature &sig) |
int8 | GetFaction (uint32 factionID) |
int8 | GetRandLevel () |
void | AddDecoToVector (uint8 dunType, uint32 templateID, std::vector< uint16 > &groupVec) |
Definition at line 91 of file DungeonMgr.h.
DungeonMgr::DungeonMgr | ( | SystemManager * | system, |
PyServiceMgr & | svc | ||
) |
Definition at line 161 of file DungeonMgr.cpp.
References m_anomalyItems, and m_initalized.
DungeonMgr::~DungeonMgr | ( | ) |
Definition at line 171 of file DungeonMgr.cpp.
|
private |
Definition at line 782 of file DungeonMgr.cpp.
References _log, EvE::Trig::Deg2Rad(), SystemManager::GetSecValue(), IsEven(), m_anomalyItems, m_system, MakeRandomInt(), sDunDataMgr, Dungeon::GroupData::typeCatID, Dungeon::GroupData::typeGrpID, Dungeon::GroupData::typeID, Dungeon::GroupData::typeName, Dungeon::GroupData::x, Dungeon::GroupData::y, and Dungeon::GroupData::z.
Referenced by CreateDeco().
bool DungeonMgr::Create | ( | uint32 | templateID, |
CosmicSignature & | sig | ||
) |
Definition at line 257 of file DungeonMgr.cpp.
References _log, SystemManager::AddEntity(), CosmicSignature::bubbleID, BeltMgr::Create(), CreateDeco(), SpawnMgr::DoSpawnForAnomaly(), CosmicSignature::dungeonType, Dungeon::Template::dunName, Dungeon::Template::dunRoomID, Dungeon::Template::dunSpawnClass, factionRogueDrones, flagNone, SystemManager::GetBeltMgr(), SystemManager::GetID(), SystemBubble::GetID(), SystemManager::GetServiceMgr(), Dungeon::Type::Gravimetric, items, m_anomalyItems, m_dungeonList, m_spawnMgr, m_system, NULL_ORIGIN(), CosmicSignature::ownerID, CosmicSignature::position, sBubbleMgr, sDataMgr, sDunDataMgr, CosmicSignature::sigItemID, CosmicSignature::sigName, CosmicSignature::sigTypeID, sItemFactory, InventoryItem::SpawnItem(), SystemEntity::SysBubble(), CosmicSignature::systemID, Dungeon::GroupData::typeCatID, Dungeon::GroupData::typeGrpID, Dungeon::GroupData::typeID, Dungeon::GroupData::typeName, Dungeon::Type::Wormhole, Dungeon::GroupData::x, Ga::GaVec3::x, y(), Dungeon::GroupData::y, Ga::GaVec3::y, Dungeon::GroupData::z, and Ga::GaVec3::z.
Referenced by MakeDungeon().
|
protected |
Definition at line 651 of file DungeonMgr.cpp.
References AddDecoToVector(), Dungeon::Type::Anomaly, CosmicSignature::dungeonType, Dungeon::Type::Escalation, Dungeon::Type::Gravimetric, Dungeon::Type::Ladar, Dungeon::Type::Magnetometric, Dungeon::Type::Radar, Dungeon::Type::Rated, and Dungeon::Type::Unrated.
Referenced by Create().
Definition at line 599 of file DungeonMgr.cpp.
References factionAmarr, factionAmmatar, factionAngel, factionBloodRaider, factionCaldari, factionGallente, factionGuristas, factionMinmatar, factionRogueDrones, factionSanshas, factionSerpentis, SystemManager::GetRegionID(), m_system, and sDataMgr.
Referenced by MakeDungeon().
|
private |
Definition at line 620 of file DungeonMgr.cpp.
References _log, and MakeRandomFloat().
Referenced by MakeDungeon().
bool DungeonMgr::Init | ( | AnomalyMgr * | anomMgr, |
SpawnMgr * | spawnMgr | ||
) |
Definition at line 182 of file DungeonMgr.cpp.
References _log, SystemManager::GetID(), SystemManager::GetName(), Load(), m_anomMgr, m_initalized, m_spawnMgr, m_system, sConfig, and SpawnMgr::SetDungMgr().
Referenced by SystemManager::LoadCosmicMgrs().
void DungeonMgr::Load | ( | ) |
Definition at line 235 of file DungeonMgr.cpp.
References SystemManager::GetID(), ManagerDB::GetSavedDungeons(), and m_system.
Referenced by Init().
bool DungeonMgr::MakeDungeon | ( | CosmicSignature & | sig | ) |
Definition at line 417 of file DungeonMgr.cpp.
References _log, Dungeon::Type::Anomaly, Create(), CosmicSignature::dungeonType, Dungeon::Type::Escalation, GetFaction(), GetRandLevel(), SystemManager::GetRegionID(), SystemManager::GetSystemSecurityRating(), Dungeon::Type::Gravimetric, Dungeon::Type::Ladar, m_system, Dungeon::Type::Magnetometric, MakeRandomFloat(), MakeRandomInt(), CosmicSignature::ownerID, Dungeon::Type::Radar, Dungeon::Type::Rated, sDataMgr, sDunDataMgr, CosmicSignature::sigStrength, and Dungeon::Type::Unrated.
Referenced by AnomalyMgr::CreateAnomaly().
void DungeonMgr::Process | ( | ) |
Definition at line 228 of file DungeonMgr.cpp.
References m_initalized.
Referenced by SystemManager::ProcessTic().
|
private |
Definition at line 126 of file DungeonMgr.h.
Referenced by AddDecoToVector(), Create(), and DungeonMgr().
|
private |
Definition at line 115 of file DungeonMgr.h.
Referenced by Init().
|
protected |
Definition at line 106 of file DungeonMgr.h.
Definition at line 128 of file DungeonMgr.h.
Referenced by Create().
|
protected |
Definition at line 107 of file DungeonMgr.h.
|
private |
Definition at line 113 of file DungeonMgr.h.
Referenced by DungeonMgr(), Init(), and Process().
|
private |
Definition at line 118 of file DungeonMgr.h.
|
private |
Definition at line 116 of file DungeonMgr.h.
|
private |
Definition at line 117 of file DungeonMgr.h.
Referenced by AddDecoToVector(), Create(), GetFaction(), Init(), Load(), and MakeDungeon().