2012-09-29 08:02:46 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_ALCHEMY_H
|
|
|
|
#define GAME_MWMECHANICS_ALCHEMY_H
|
|
|
|
|
2012-09-30 16:54:20 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2012-09-29 08:02:46 +00:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
/// \brief Potion creatin via alchemy skill
|
|
|
|
class Alchemy
|
|
|
|
{
|
2012-09-30 16:54:20 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
typedef std::vector<MWWorld::Ptr> TToolsContainer;
|
|
|
|
typedef TToolsContainer::const_iterator TToolsIterator;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2012-09-29 08:02:46 +00:00
|
|
|
MWWorld::Ptr mNpc;
|
2012-09-30 16:54:20 +00:00
|
|
|
TToolsContainer mTools;
|
2012-09-29 08:02:46 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void setAlchemist (const MWWorld::Ptr& npc);
|
|
|
|
///< Set alchemist and configure alchemy setup accordingly. \a npc may be empty to indicate that
|
|
|
|
/// there is no alchemist (alchemy session has ended).
|
2012-09-30 16:54:20 +00:00
|
|
|
|
|
|
|
TToolsIterator beginTools() const;
|
|
|
|
|
|
|
|
TToolsIterator endTools() const;
|
2012-09-29 08:02:46 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|