|
OpenMW
|
NPC object representing the player and additional player data. More...
#include <player.hpp>
Public Member Functions | |
| Player (const ESM::NPC *player) | |
| void | saveStats () |
| void | restoreStats () |
| void | setWerewolfStats () |
| void | markPosition (CellStore *markedCell, const 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 |
| void | setJumping (bool jumping) |
| bool | getJumping () 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 |
| void | setPreviousItem (const std::string &boundItemId, const std::string &previousItemId) |
| std::string | getPreviousItem (const std::string &boundItemId) |
| void | erasePreviousItem (const std::string &boundItemId) |
Private Types | |
| typedef std::map< std::string, std::string > | PreviousItems |
NPC object representing the player and additional player data.
|
private |
| 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 | ( | ) |
| void MWWorld::Player::erasePreviousItem | ( | const std::string & | boundItemId | ) |
| 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 | ( | ) |
| bool MWWorld::Player::getJumping | ( | ) | const |
|
inline |
| void MWWorld::Player::getMarkedPosition | ( | CellStore *& | markedCell, |
| ESM::Position & | markedPosition | ||
| ) | const |
| int MWWorld::Player::getNewCrimeId | ( | ) |
| MWWorld::Ptr MWWorld::Player::getPlayer | ( | ) |
| std::string MWWorld::Player::getPreviousItem | ( | const std::string & | boundItemId | ) |
| bool MWWorld::Player::isInCombat | ( | ) |
Checks all nearby actors to see if anyone has an aipackage against you.
| void MWWorld::Player::markPosition | ( | CellStore * | markedCell, |
| const 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::restoreStats | ( | ) |
| void MWWorld::Player::roll | ( | float | roll | ) |
| void MWWorld::Player::saveStats | ( | ) |
| 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 | ) |
| void MWWorld::Player::setJumping | ( | bool | jumping | ) |
|
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::setPreviousItem | ( | const std::string & | boundItemId, |
| const std::string & | previousItemId | ||
| ) |
| 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::setWerewolfStats | ( | ) |
| 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 |
|
private |
|
private |
1.8.6