OpenMW
|
NPC object representing the player and additional player data. More...
#include <player.hpp>
Public Member Functions | |
Player (const ESM::NPC *player) | |
void | saveSkillsAttributes () |
void | restoreSkillsAttributes () |
void | setWerewolfSkillsAttributes () |
void | markPosition (CellStore *markedCell, ESM::Position markedPosition) |
void | getMarkedPosition (CellStore *&markedCell, ESM::Position &markedPosition) const |
void | setLastKnownExteriorPosition (const osg::Vec3f &position) |
osg::Vec3f | getLastKnownExteriorPosition () const |
void | set (const ESM::NPC *player) |
void | setCell (MWWorld::CellStore *cellStore) |
MWWorld::Ptr | getPlayer () |
void | setBirthSign (const std::string &sign) |
const std::string & | getBirthSign () const |
void | setDrawState (MWMechanics::DrawState_ state) |
MWMechanics::DrawState_ | getDrawState () |
void | activate () |
Activate the object under the crosshair, if any. More... | |
bool | getAutoMove () const |
void | setAutoMove (bool enable) |
void | setLeftRight (int value) |
void | setForwardBackward (int value) |
void | setUpDown (int value) |
void | setRunState (bool run) |
void | setSneak (bool sneak) |
void | yaw (float yaw) |
void | pitch (float pitch) |
void | roll (float roll) |
bool | wasTeleported () const |
void | setTeleported (bool teleported) |
void | setAttackingOrSpell (bool attackingOrSpell) |
bool | getAttackingOrSpell () const |
bool | isInCombat () |
Checks all nearby actors to see if anyone has an aipackage against you. More... | |
bool | enemiesNearby () |
void | clear () |
void | write (ESM::ESMWriter &writer, Loading::Listener &progress) const |
bool | readRecord (ESM::ESMReader &reader, uint32_t type) |
int | getNewCrimeId () |
void | recordCrimeId () |
int | getCrimeId () const |
NPC object representing the player and additional player data.
MWWorld::Player::Player | ( | const ESM::NPC * | player | ) |
void MWWorld::Player::activate | ( | ) |
Activate the object under the crosshair, if any.
void MWWorld::Player::clear | ( | ) |
bool MWWorld::Player::enemiesNearby | ( | ) |
bool MWWorld::Player::getAttackingOrSpell | ( | ) | const |
bool MWWorld::Player::getAutoMove | ( | ) | const |
const std::string & MWWorld::Player::getBirthSign | ( | ) | const |
int MWWorld::Player::getCrimeId | ( | ) | const |
MWMechanics::DrawState_ MWWorld::Player::getDrawState | ( | ) |
|
inline |
void MWWorld::Player::getMarkedPosition | ( | CellStore *& | markedCell, |
ESM::Position & | markedPosition | ||
) | const |
int MWWorld::Player::getNewCrimeId | ( | ) |
MWWorld::Ptr MWWorld::Player::getPlayer | ( | ) |
bool MWWorld::Player::isInCombat | ( | ) |
Checks all nearby actors to see if anyone has an aipackage against you.
void MWWorld::Player::markPosition | ( | CellStore * | markedCell, |
ESM::Position | markedPosition | ||
) |
void MWWorld::Player::pitch | ( | float | pitch | ) |
bool MWWorld::Player::readRecord | ( | ESM::ESMReader & | reader, |
uint32_t | type | ||
) |
void MWWorld::Player::recordCrimeId | ( | ) |
void MWWorld::Player::restoreSkillsAttributes | ( | ) |
void MWWorld::Player::roll | ( | float | roll | ) |
void MWWorld::Player::saveSkillsAttributes | ( | ) |
void MWWorld::Player::set | ( | const ESM::NPC * | player | ) |
void MWWorld::Player::setAttackingOrSpell | ( | bool | attackingOrSpell | ) |
void MWWorld::Player::setAutoMove | ( | bool | enable | ) |
void MWWorld::Player::setBirthSign | ( | const std::string & | sign | ) |
void MWWorld::Player::setCell | ( | MWWorld::CellStore * | cellStore | ) |
void MWWorld::Player::setDrawState | ( | MWMechanics::DrawState_ | state | ) |
void MWWorld::Player::setForwardBackward | ( | int | value | ) |
|
inline |
Interiors can not always be mapped to a world position. However world position is still required for divine / almsivi magic effects and the player arrow on the global map.
void MWWorld::Player::setLeftRight | ( | int | value | ) |
void MWWorld::Player::setRunState | ( | bool | run | ) |
void MWWorld::Player::setSneak | ( | bool | sneak | ) |
void MWWorld::Player::setTeleported | ( | bool | teleported | ) |
void MWWorld::Player::setUpDown | ( | int | value | ) |
void MWWorld::Player::setWerewolfSkillsAttributes | ( | ) |
bool MWWorld::Player::wasTeleported | ( | ) | const |
void MWWorld::Player::write | ( | ESM::ESMWriter & | writer, |
Loading::Listener & | progress | ||
) | const |
void MWWorld::Player::yaw | ( | float | yaw | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |