1 #ifndef GAME_MWMECHANICS_ALCHEMY_H
2 #define GAME_MWMECHANICS_ALCHEMY_H
9 #include "../mwworld/ptr.hpp"
55 void applyTools (
int flags,
float& value)
const;
void setAlchemist(const MWWorld::Ptr &npc)
Definition: alchemy.cpp:345
Definition: alchemy.hpp:41
TToolsIterator endTools() const
Definition: alchemy.cpp:384
std::vector< MWWorld::Ptr > TToolsContainer
Definition: alchemy.hpp:27
std::vector< ESM::ENAMstruct > TEffectsContainer
Definition: alchemy.hpp:33
std::set< EffectKey > listEffects() const
List all effects shared by at least two ingredients.
Definition: alchemy.cpp:36
void increaseSkill()
Increase alchemist's skill.
Definition: alchemy.cpp:318
TToolsIterator beginTools() const
Definition: alchemy.cpp:379
int mValue
Definition: alchemy.hpp:53
Result create(const std::string &name)
Definition: alchemy.cpp:463
TEffectsIterator beginEffects() const
Definition: alchemy.cpp:443
TEffectsContainer::const_iterator TEffectsIterator
Definition: alchemy.hpp:34
int countIngredients() const
Definition: alchemy.cpp:334
Definition: alchemy.hpp:42
Definition: alchemy.hpp:38
void updateEffects()
Definition: alchemy.cpp:128
void clear()
Remove alchemist, tools and ingredients.
Definition: alchemy.cpp:399
TIngredientsContainer::const_iterator TIngredientsIterator
Definition: alchemy.hpp:31
TEffectsContainer mEffects
Definition: alchemy.hpp:52
std::vector< MWWorld::Ptr > TIngredientsContainer
Definition: alchemy.hpp:30
Definition: alchemy.hpp:40
Definition: alchemy.hpp:43
const ESM::Potion * getRecord(const ESM::Potion &toFind) const
Definition: alchemy.cpp:212
int addIngredient(const MWWorld::Ptr &ingredient)
Definition: alchemy.cpp:407
Result
Definition: alchemy.hpp:36
TToolsContainer mTools
Definition: alchemy.hpp:50
TIngredientsIterator endIngredients() const
Definition: alchemy.cpp:394
MWWorld::Ptr mAlchemist
Definition: alchemy.hpp:49
static bool knownEffect(unsigned int potionEffectIndex, const MWWorld::Ptr &npc)
Does npc have sufficient alchemy skill to know about this potion effect?
Definition: alchemy.cpp:453
Alchemy()
Definition: alchemy.cpp:31
TToolsContainer::const_iterator TToolsIterator
Definition: alchemy.hpp:28
void removeIngredients()
Definition: alchemy.cpp:263
void addPotion(const std::string &name)
Add a potion to the alchemist's inventory.
Definition: alchemy.cpp:283
TIngredientsIterator beginIngredients() const
Definition: alchemy.cpp:389
Potion creation via alchemy skill.
Definition: alchemy.hpp:21
float getAlchemyFactor() const
Definition: alchemy.cpp:323
std::string suggestPotionName()
Suggest a name for the potion, based on the current effects.
Definition: alchemy.cpp:502
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void applyTools(int flags, float &value) const
Definition: alchemy.cpp:70
TIngredientsContainer mIngredients
Definition: alchemy.hpp:51
Definition: loadalch.hpp:18
TEffectsIterator endEffects() const
Definition: alchemy.cpp:448
Definition: alchemy.hpp:44
void removeIngredient(int index)
Remove ingredient from slot (calling this function on an empty slot is a no-op).
Definition: alchemy.cpp:434
const char * name
Definition: crashcatcher.cpp:59