TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
go_loosely_turned_soil Class Reference

Public Member Functions

 go_loosely_turned_soil ()
 
bool OnGossipHello (Player *player, GameObject *) override
 
bool OnQuestReward (Player *player, GameObject *go, Quest const *, uint32) override
 
- Public Member Functions inherited from GameObjectScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, 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 uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- 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)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

go_loosely_turned_soil::go_loosely_turned_soil ( )
inline
884 : GameObjectScript("go_loosely_turned_soil") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

bool go_loosely_turned_soil::OnGossipHello ( Player player,
GameObject  
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

887  {
888  if (InstanceScript* instance = player->GetInstanceScript())
889  if (instance->GetBossState(DATA_HORSEMAN_EVENT) == IN_PROGRESS || player->GetQuestStatus(QUEST_CALL_THE_HEADLESS_HORSEMAN) != QUEST_STATUS_COMPLETE)
890  return true;
891 
892  return false;
893  }
Definition: QuestDef.h:111
Definition: scarlet_monastery.h:32
Definition: InstanceScript.h:59
Definition: InstanceScript.h:141
Definition: boss_headless_horseman.cpp:878
bool go_loosely_turned_soil::OnQuestReward ( Player player,
GameObject go,
Quest const ,
uint32   
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

896  {
897  if (InstanceScript* instance = go->GetInstanceScript())
898  if (instance->GetBossState(DATA_HORSEMAN_EVENT) == IN_PROGRESS)
899  return false;
900 
901  player->AreaExploredOrEventHappens(11405);
903  {
904  ENSURE_AI(boss_headless_horseman::boss_headless_horsemanAI, horseman->AI())->PlayerGUID = player->GetGUID();
906  }
907  return true;
908  }
Definition: boss_headless_horseman.cpp:382
float x
Definition: Vector3.h:62
Definition: Object.h:61
Definition: scarlet_monastery.h:32
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: boss_headless_horseman.cpp:52
Definition: Creature.h:467
float y
Definition: Vector3.h:62
#define ENSURE_AI(a, b)
Definition: ScriptedCreature.h:29
Definition: InstanceScript.h:59
G3D::Vector3 const FlightPoint[]
Definition: boss_headless_horseman.cpp:98
float z
Definition: Vector3.h:62
Definition: InstanceScript.h:141
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: