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

#include <ScriptMgr.h>

Public Member Functions

virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, Item *)
 
virtual bool OnQuestAccept (Player *, Item *, Quest const *)
 
virtual bool OnUse (Player *, Item *, SpellCastTargets const &)
 
virtual bool OnExpire (Player *, ItemTemplate const *)
 
virtual bool OnRemove (Player *, Item *)
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Protected Member Functions

 ItemScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

ItemScript::ItemScript ( const char *  name)
protected
1581  : ScriptObject(name)
1582 {
1584 }
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
ScriptObject(const char *name)
Definition: ScriptMgr.h:159

+ Here is the call graph for this function:

Member Function Documentation

virtual bool ItemScript::OnDummyEffect ( Unit ,
uint32  ,
SpellEffIndex  ,
Item  
)
inlinevirtual
368 { return false; }
virtual bool ItemScript::OnExpire ( Player ,
ItemTemplate const  
)
inlinevirtual

Reimplemented in item_disgusting_jar, and item_mysterious_egg.

377 { return false; }
virtual bool ItemScript::OnQuestAccept ( Player ,
Item ,
Quest const  
)
inlinevirtual
371 { return false; }
virtual bool ItemScript::OnRemove ( Player ,
Item  
)
inlinevirtual
380 { return false; }

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