1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00
OpenMW/apps/openmw/mwmechanics/actorutil.cpp

20 lines
387 B
C++
Raw Normal View History

2015-08-21 09:12:39 +00:00
#include "actorutil.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
2015-09-10 06:48:34 +00:00
#include "../mwworld/player.hpp"
2015-08-21 09:12:39 +00:00
namespace MWMechanics
{
MWWorld::Ptr getPlayer()
{
return MWBase::Environment::get().getWorld()->getPlayerPtr();
}
2015-09-10 06:48:34 +00:00
bool isPlayerInCombat()
{
return MWBase::Environment::get().getWorld()->getPlayer().isInCombat();
}
2015-08-21 09:12:39 +00:00
}