AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_loosely_turned_soil Class Reference
Inheritance diagram for go_loosely_turned_soil:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Classes

struct  go_loosely_turned_soilAI
 

Public Member Functions

 go_loosely_turned_soil ()
 
bool OnQuestReward (Player *player, GameObject *go, Quest const *, uint32) override
 
GameObjectAIGetAI (GameObject *go) const override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_loosely_turned_soil()

go_loosely_turned_soil::go_loosely_turned_soil ( )
inline
1433: GameObjectScript("go_loosely_turned_soil") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ GetAI()

GameObjectAI * go_loosely_turned_soil::GetAI ( GameObject go) const
inlineoverridevirtual

Reimplemented from GameObjectScript.

1463 {
1464 return new go_loosely_turned_soilAI(go);
1465 }

◆ OnQuestReward()

bool go_loosely_turned_soil::OnQuestReward ( Player player,
GameObject go,
Quest const *  ,
uint32   
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

1436 {
1438 return true;
1439
1440 if (Creature* horseman = go->SummonCreature(NPC_HEADLESS_HORSEMAN_MOUNTED, 1754.00f, 1346.00f, 17.50f, 0.0f, TEMPSUMMON_MANUAL_DESPAWN, 0))
1441 horseman->CastSpell(player, SPELL_SUMMONING_RHYME_TARGET, true);
1442
1443 return true;
1444 }
@ TEMPSUMMON_MANUAL_DESPAWN
Definition: Object.h:52
@ NPC_HEADLESS_HORSEMAN_MOUNTED
Definition: hallows_end.cpp:944
@ SPELL_SUMMONING_RHYME_TARGET
Definition: hallows_end.cpp:953
Definition: Creature.h:46
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2355
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446

References WorldObject::FindNearestCreature(), NPC_HEADLESS_HORSEMAN_MOUNTED, SPELL_SUMMONING_RHYME_TARGET, WorldObject::SummonCreature(), and TEMPSUMMON_MANUAL_DESPAWN.