mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
Issue #61: Basic alchemy class (doesn't do anything yet)
This commit is contained in:
parent
bb6d9a329c
commit
cd343c4fbd
@ -61,7 +61,7 @@ add_openmw_dir (mwclass
|
||||
|
||||
add_openmw_dir (mwmechanics
|
||||
mechanicsmanagerimp stat creaturestats magiceffects movement actors drawstate spells
|
||||
activespells npcstats aipackage aisequence
|
||||
activespells npcstats aipackage aisequence alchemy
|
||||
)
|
||||
|
||||
add_openmw_dir (mwbase
|
||||
|
@ -253,8 +253,10 @@ namespace MWGui
|
||||
|
||||
void AlchemyWindow::open()
|
||||
{
|
||||
openContainer(MWBase::Environment::get().getWorld()->getPlayer().getPlayer());
|
||||
openContainer(MWBase::Environment::get().getWorld()->getPlayer().getPlayer()); // this sets mPtr
|
||||
setFilter(ContainerBase::Filter_Ingredients);
|
||||
|
||||
mAlchemy.setAlchemist (mPtr);
|
||||
|
||||
// pick the best available apparatus
|
||||
MWWorld::ContainerStore& store = MWWorld::Class::get(mPtr).getContainerStore(mPtr);
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef MWGUI_ALCHEMY_H
|
||||
#define MWGUI_ALCHEMY_H
|
||||
|
||||
#include "../mwmechanics/alchemy.hpp"
|
||||
|
||||
#include "window_base.hpp"
|
||||
#include "container.hpp"
|
||||
#include "widgets.hpp"
|
||||
@ -46,6 +48,10 @@ namespace MWGui
|
||||
virtual void onReferenceUnavailable() { ; }
|
||||
|
||||
void update();
|
||||
|
||||
private:
|
||||
|
||||
MWMechanics::Alchemy mAlchemy;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user