X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Floader%2FCaster.h;fp=src%2Floader%2FCaster.h;h=2718fc08f8327bcf7c9966ae145e0acefdc8a6b1;hb=f6085f8568f2c754ed2eac294171e542139581f4;hp=0000000000000000000000000000000000000000;hpb=b841b91bb2381c7553863d165ebfc5b6a323b9d2;p=l2e.git diff --git a/src/loader/Caster.h b/src/loader/Caster.h new file mode 100644 index 0000000..2718fc0 --- /dev/null +++ b/src/loader/Caster.h @@ -0,0 +1,60 @@ +/* + * Caster.h + * + * Created on: Sep 19, 2012 + * Author: holy + */ + +#ifndef LOADER_CASTER_H_ +#define LOADER_CASTER_H_ + +#include "Interpreter.h" + +#include + +namespace battle { + class Hero; + class Monster; + class PartyLayout; + class Resources; +} + +namespace common { + class Item; + class Spell; +} + +namespace loader { + +class Caster { + +public: + Caster(Interpreter &intp); + ~Caster() { } +private: + Caster(const Caster &); + Caster &operator =(const Caster &); + +public: + battle::Resources *GetBattleResources(const std::string &identifier); + battle::Hero *GetHero(const std::string &identifier); + common::Item *GetItem(const std::string &identifier); + battle::Monster *GetMonster(const std::string &identifier); + battle::PartyLayout *GetPartyLayout(const std::string &identifier); + common::Spell *GetSpell(const std::string &identifier); + +private: + Interpreter &intp; + + int battleResourcesId; + int heroId; + int itemId; + int monsterId; + int partyLayoutId; + int spellId; + +}; + +} + +#endif /* LOADER_CASTER_H_ */