You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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();
|
|
}
|
|
}
|