AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_loosely_turned_soil::go_loosely_turned_soilAI Struct Reference
Inheritance diagram for go_loosely_turned_soil::go_loosely_turned_soilAI:
GameObjectAI

Public Member Functions

 go_loosely_turned_soilAI (GameObject *gameObject)
 
bool CanBeSeen (Player const *player) override
 
- Public Member Functions inherited from GameObjectAI
 GameObjectAI (GameObject *go)
 
virtual ~GameObjectAI ()
 
virtual void UpdateAI (uint32)
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (ObjectGuid, int32)
 
virtual ObjectGuid GetGUID (int32) const
 
virtual bool GossipHello (Player *, bool)
 
virtual bool GossipSelect (Player *, uint32, uint32)
 
virtual bool GossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual bool QuestAccept (Player *, Quest const *)
 
virtual bool QuestReward (Player *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *)
 
virtual void Destroyed (Player *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnStateChanged (uint32, Unit *)
 
virtual void EventInform (uint32)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 

Additional Inherited Members

- Static Public Member Functions inherited from GameObjectAI
static int32 Permissible (GameObject const *go)
 
- Protected Attributes inherited from GameObjectAI
GameObject *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ go_loosely_turned_soilAI()

go_loosely_turned_soil::go_loosely_turned_soilAI::go_loosely_turned_soilAI ( GameObject gameObject)
inline
1448: GameObjectAI(gameObject) { }
Definition: GameObjectAI.h:34

Member Function Documentation

◆ CanBeSeen()

bool go_loosely_turned_soil::go_loosely_turned_soilAI::CanBeSeen ( Player const *  player)
inlineoverridevirtual

Reimplemented from GameObjectAI.

1451 {
1452 if (player->IsGameMaster())
1453 {
1454 return true;
1455 }
1456
1457 Group const* group = player->GetGroup();
1458 return group && sLFGMgr->GetDungeon(group->GetGUID()) == lfg::LFG_DUNGEON_HEADLESS_HORSEMAN;
1459 }
#define sLFGMgr
Definition: LFGMgr.h:641
@ LFG_DUNGEON_HEADLESS_HORSEMAN
Definition: LFGMgr.h:148
Definition: Group.h:169
ObjectGuid GetGUID() const
Definition: Group.cpp:2306

References Player::GetGroup(), Group::GetGUID(), Player::IsGameMaster(), lfg::LFG_DUNGEON_HEADLESS_HORSEMAN, and sLFGMgr.