]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Caster.cpp
extracted common capsule base
[l2e.git] / src / loader / Caster.cpp
index 78a31b548db4737e0cd4cba08ee104fd73a9313f..050ac930e9ef956d90bb16763fd94a47e02697b5 100644 (file)
@@ -4,6 +4,7 @@
 #include "../battle/Resources.h"
 #include "../battle/Monster.h"
 #include "../battle/PartyLayout.h"
+#include "../common/Capsule.h"
 #include "../common/Hero.h"
 #include "../common/Item.h"
 #include "../common/Spell.h"
@@ -12,6 +13,7 @@
 
 using battle::Monster;
 using battle::PartyLayout;
+using common::Capsule;
 using common::Hero;
 using common::Item;
 using common::Spell;
@@ -32,6 +34,10 @@ battle::Resources *Caster::GetBattleResources(const string &ident) {
                        intp.GetObject(battle::Resources::TYPE_ID, ident));
 }
 
+Capsule *Caster::GetCapsule(const string &ident) {
+       return reinterpret_cast<Capsule *>(intp.GetObject(Capsule::TYPE_ID, ident));
+}
+
 Hero *Caster::GetHero(const string &ident) {
        return reinterpret_cast<Hero *>(intp.GetObject(Hero::TYPE_ID, ident));
 }