32#ifdef TRINITY_API_USE_DYNAMIC_LINKING
38 ASSERT(!scriptname.empty());
41 module_reference =
sScriptMgr->AcquireModuleReferenceOfScriptName(scriptname);
79 if (!rotation0 && !rotation1 && !rotation2 && !rotation3)
81 TC_LOG_DEBUG(
"bg.battleground",
"Battleground::AddObject: gameoobject [entry: {}] for BG (map: {}) has zeroed rotation fields, "
93 TC_LOG_ERROR(
"bg.battleground",
"Battleground::AddObject: cannot create gameobject (entry: {}) for BG (map: {}, instance id: {})!",
111 TC_LOG_ERROR(
"bg.battleground",
"Battleground::AddCreature: creature template (entry: {}) does not exist for BG (map: {}, instance id: {})!",
121 TC_LOG_ERROR(
"bg.battleground",
"Battleground::AddCreature: cannot create creature (entry: {}) for BG (map: {}, instance id: {})!",
#define TC_LOG_DEBUG(filterType__, message__,...)
#define TC_LOG_ERROR(filterType__, message__,...)
GameObject * CreateObject(uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, GOState goState=GO_STATE_READY) const
ArenaScript(BattlegroundMap *map)
Creature * CreateCreature(uint32 entry, float x, float y, float z, float o) const
Battleground * battleground
void TriggerGameEvent(uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
BattlegroundMap * battlegroundMap
BattlegroundScript(BattlegroundMap *map) noexcept
virtual Team GetPrematureWinner()
void UpdateWorldState(int32 worldStateId, int32 value, bool hidden=false) const
uint32 GetMinPlayersPerTeam() const
uint32 GetInstanceID() const
BattlegroundPlayerMap const & GetPlayers() const
uint32 GetPlayersCountByTeam(Team team) const
void SetHomePosition(float x, float y, float z, float o)
static Creature * CreateCreature(uint32 entry, Map *map, Position const &pos, uint32 vehId=0)
static GameObject * CreateGameObject(uint32 entry, Map *map, Position const &pos, QuaternionData const &rotation, uint32 animProgress, GOState goState, uint32 artKit=0)
virtual void ProcessEvent(WorldObject *obj, uint32 eventId, WorldObject *invoker)
TC_GAME_API void TriggerForMap(uint32 gameEventId, Map *map, WorldObject *source=nullptr, WorldObject *target=nullptr)
TC_GAME_API void TriggerForPlayer(uint32 gameEventId, Player *source)
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
TC_GAME_API void SetValue(int32 worldStateId, int32 value, bool hidden, Map *map)
static QuaternionData fromEulerAnglesZYX(float Z, float Y, float X)