mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:53:53 +00:00
Issue #61: Forgot to add some files
This commit is contained in:
parent
cd343c4fbd
commit
c6fd864a76
2 changed files with 29 additions and 0 deletions
7
apps/openmw/mwmechanics/alchemy.cpp
Normal file
7
apps/openmw/mwmechanics/alchemy.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
#include "alchemy.hpp"
|
||||
|
||||
void MWMechanics::Alchemy::setAlchemist (const MWWorld::Ptr& npc)
|
||||
{
|
||||
mNpc = npc;
|
||||
}
|
22
apps/openmw/mwmechanics/alchemy.hpp
Normal file
22
apps/openmw/mwmechanics/alchemy.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef GAME_MWMECHANICS_ALCHEMY_H
|
||||
#define GAME_MWMECHANICS_ALCHEMY_H
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
/// \brief Potion creatin via alchemy skill
|
||||
class Alchemy
|
||||
{
|
||||
MWWorld::Ptr mNpc;
|
||||
|
||||
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).
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue