![]() |
TrinityCore
|
#include <Garrison.h>
Public Member Functions | |
| GameObject * | CreateGameObject (Map *map, GarrisonFactionIndex faction) |
| void | DeleteGameObject (Map *map) |
| void | ClearBuildingInfo (GarrisonType garrisonType, Player *owner) |
| void | SetBuildingInfo (WorldPackets::Garrison::GarrisonBuildingInfo const &buildingInfo, Player *owner) |
Public Attributes | |
| WorldPackets::Garrison::GarrisonPlotInfo | PacketInfo |
| QuaternionData | Rotation |
| uint32 | EmptyGameObjectId = 0 |
| uint32 | GarrSiteLevelPlotInstId = 0 |
| Building | BuildingInfo |
Definition at line 196 of file Garrison.h.
| void Garrison::Plot::ClearBuildingInfo | ( | GarrisonType | garrisonType, |
| Player * | owner | ||
| ) |
Definition at line 791 of file Garrison.cpp.
References WorldPackets::Garrison::GarrisonPlotPlaced::GarrTypeID, WorldPackets::Garrison::GarrisonPlotPlaced::PlotInfo, Player::SendDirectMessage(), and WorldPackets::Garrison::GarrisonPlotPlaced::Write().
Referenced by Garrison::CancelBuildingConstruction(), and Garrison::PlaceBuilding().
| GameObject * Garrison::Plot::CreateGameObject | ( | Map * | map, |
| GarrisonFactionIndex | faction | ||
| ) |
Definition at line 696 of file Garrison.cpp.
References Map::AddToMap(), GarrPlotEntry::AllianceConstructObjID, GarrBuildingEntry::AllianceGameObjectID, BuildingInfo, Garrison::Building::CanActivate(), GameObject::CreateGameObject(), EmptyGameObjectId, QuaternionData::fromOrientation(), GAMEOBJECT_TYPE_GARRISON_BUILDING, GARRISON_FACTION_INDEX_HORDE, GameObjectTemplate::garrisonBuilding, GarrPlotInstanceEntry::GarrPlotID, WorldPackets::Garrison::GarrisonPlotInfo::GarrPlotInstanceID, Map::GetDifficultyID(), GameObject::GetGOInfo(), GameObject::GetGoType(), BaseEntity::GetGUID(), Position::GetOrientation(), GO_STATE_READY, Garrison::Building::Guid, GarrPlotEntry::HordeConstructObjID, GarrBuildingEntry::HordeGameObjectID, Garrison::Building::PacketInfo, PacketInfo, WorldPackets::Garrison::GarrisonPlotInfo::PlotPos, TaggedPosition< Tag >::Pos, Rotation, sGarrBuildingStore, sGarrisonMgr, sGarrPlotInstanceStore, sGarrPlotStore, sObjectMgr, GameObjectTemplate::SpawnMap, Garrison::Building::Spawns, and TC_LOG_ERROR.
Referenced by Garrison::CancelBuildingConstruction(), and Garrison::PlaceBuilding().
| void Garrison::Plot::DeleteGameObject | ( | Map * | map | ) |
Definition at line 759 of file Garrison.cpp.
References WorldObject::AddObjectToRemoveList(), Creature, GameObject, Map::GetCreature(), and Map::GetGameObject().
Referenced by Garrison::CancelBuildingConstruction(), and Garrison::PlaceBuilding().
| void Garrison::Plot::SetBuildingInfo | ( | WorldPackets::Garrison::GarrisonBuildingInfo const & | buildingInfo, |
| Player * | owner | ||
| ) |
Definition at line 801 of file Garrison.cpp.
References WorldPackets::Garrison::GarrisonPlotRemoved::GarrPlotInstanceID, Player::SendDirectMessage(), and WorldPackets::Garrison::GarrisonPlotRemoved::Write().
Referenced by Garrison::CancelBuildingConstruction(), and Garrison::PlaceBuilding().
| Building Garrison::Plot::BuildingInfo |
Definition at line 207 of file Garrison.h.
Referenced by Garrison::BuildInfoPacket(), Garrison::CancelBuildingConstruction(), Garrison::CheckBuildingPlacement(), Garrison::CheckBuildingRemoval(), CreateGameObject(), Garrison::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), Garrison::PlaceBuilding(), Garrison::SaveToDB(), and Garrison::SendMapData().
| uint32 Garrison::Plot::EmptyGameObjectId = 0 |
Definition at line 205 of file Garrison.h.
Referenced by CreateGameObject(), and Garrison::InitializePlots().
| uint32 Garrison::Plot::GarrSiteLevelPlotInstId = 0 |
Definition at line 206 of file Garrison.h.
Referenced by Garrison::InitializePlots(), and Garrison::SendMapData().
| WorldPackets::Garrison::GarrisonPlotInfo Garrison::Plot::PacketInfo |
Definition at line 203 of file Garrison.h.
Referenced by Garrison::BuildInfoPacket(), CreateGameObject(), Garrison::InitializePlots(), and Garrison::SendMapData().
| QuaternionData Garrison::Plot::Rotation |
Definition at line 204 of file Garrison.h.
Referenced by CreateGameObject(), and Garrison::InitializePlots().