#ifndef _CSPELL_MGR_H_ #define _CSPELL_MGR_H_ #include "Casting.h" #include "Affected.h" // Àü¹æ ÂüÁ¶ class CSpell; class CAggresiveCreature; class CSpellMgr { public: CSpellMgr(); ~CSpellMgr(); inline void SetOwner(CAggresiveCreature* pOwner); // »ý¼º½Ã ¹Ýµå½Ã È£ÃâÇØ ÁÙ °Í. inline CAggresiveCreature* GetOwner() { return m_pOwner; } inline CCastingSpell& GetCastingInfo() { return m_CastingInfo; } inline CAffectedSpell& GetAffectedInfo() { return m_AffectedInfo; } void SetSpell(const SPELL spell); protected: CAggresiveCreature* m_pOwner; // ÇöÀç ¸Å´ÏÀú¸¦ ¼ÒÀ¯Çϰí ÀÖ´Â Creature.(¹Ù²îÁö ¾ÊÀ½) CCastingSpell m_CastingInfo; CAffectedSpell m_AffectedInfo; friend class CSpell; // Caster¿Í AffectedÀÇ »óÈ£ÂüÁ¶ °ü¸®¸¦ ¿ÜºÎ·Î ³ëÃâ½ÃŰÁö ¾Ê±â À§ÇÔ. }; inline void CSpellMgr::SetOwner(CAggresiveCreature* pOwner) { m_pOwner = pOwner; m_CastingInfo.SetOwner(pOwner); m_AffectedInfo.SetOwner(pOwner); } #endif