mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
20 lines
387 B
C++
20 lines
387 B
C++
#include "actorutil.hpp"
|
|
|
|
#include "../mwbase/world.hpp"
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwworld/player.hpp"
|
|
|
|
namespace MWMechanics
|
|
{
|
|
MWWorld::Ptr getPlayer()
|
|
{
|
|
return MWBase::Environment::get().getWorld()->getPlayerPtr();
|
|
}
|
|
|
|
bool isPlayerInCombat()
|
|
{
|
|
return MWBase::Environment::get().getWorld()->getPlayer().isInCombat();
|
|
}
|
|
}
|