|
OpenMW
|
#include <aiwander.hpp>
Public Member Functions | |
| AiWander (int distance, int duration, int timeOfDay, const std::vector< int > &idle, bool repeat) | |
| virtual AiPackage * | clone () const |
| virtual bool | execute (const MWWorld::Ptr &actor, float duration) |
| virtual int | getTypeId () const |
| 0: Wander | |
Private Member Functions | |
| void | stopWalking (const MWWorld::Ptr &actor) |
| void | playIdle (const MWWorld::Ptr &actor, unsigned short idleSelect) |
| bool | checkIdle (const MWWorld::Ptr &actor, unsigned short idleSelect) |
Private Attributes | |
| int | mDistance |
| int | mDuration |
| int | mTimeOfDay |
| std::vector< int > | mIdle |
| bool | mRepeat |
| float | mX |
| float | mY |
| float | mZ |
| int | mCellX |
| int | mCellY |
| float | mXCell |
| float | mYCell |
| bool | mStoredAvailableNodes |
| bool | mChooseAction |
| bool | mIdleNow |
| bool | mMoveNow |
| bool | mWalking |
| float | mIdleChanceMultiplier |
| unsigned short | mPlayedIdle |
| MWWorld::TimeStamp | mStartTime |
| std::vector< ESM::Pathgrid::Point > | mAllowedNodes |
| ESM::Pathgrid::Point | mCurrentNode |
| PathFinder | mPathFinder |
| const ESM::Pathgrid * | mPathgrid |
| MWMechanics::AiWander::AiWander | ( | int | distance, |
| int | duration, | ||
| int | timeOfDay, | ||
| const std::vector< int > & | idle, | ||
| bool | repeat | ||
| ) |
| bool MWMechanics::AiWander::checkIdle | ( | const MWWorld::Ptr & | actor, |
| unsigned short | idleSelect | ||
| ) | [private] |
| AiPackage * MWMechanics::AiWander::clone | ( | ) | const [virtual] |
Implements MWMechanics::AiPackage.
| bool MWMechanics::AiWander::execute | ( | const MWWorld::Ptr & | actor, |
| float | duration | ||
| ) | [virtual] |
Implements MWMechanics::AiPackage.
| int MWMechanics::AiWander::getTypeId | ( | ) | const [virtual] |
0: Wander
Implements MWMechanics::AiPackage.
| void MWMechanics::AiWander::playIdle | ( | const MWWorld::Ptr & | actor, |
| unsigned short | idleSelect | ||
| ) | [private] |
| void MWMechanics::AiWander::stopWalking | ( | const MWWorld::Ptr & | actor | ) | [private] |
std::vector<ESM::Pathgrid::Point> MWMechanics::AiWander::mAllowedNodes [private] |
int MWMechanics::AiWander::mCellX [private] |
int MWMechanics::AiWander::mCellY [private] |
bool MWMechanics::AiWander::mChooseAction [private] |
int MWMechanics::AiWander::mDistance [private] |
int MWMechanics::AiWander::mDuration [private] |
std::vector<int> MWMechanics::AiWander::mIdle [private] |
float MWMechanics::AiWander::mIdleChanceMultiplier [private] |
bool MWMechanics::AiWander::mIdleNow [private] |
bool MWMechanics::AiWander::mMoveNow [private] |
PathFinder MWMechanics::AiWander::mPathFinder [private] |
const ESM::Pathgrid* MWMechanics::AiWander::mPathgrid [private] |
unsigned short MWMechanics::AiWander::mPlayedIdle [private] |
bool MWMechanics::AiWander::mRepeat [private] |
bool MWMechanics::AiWander::mStoredAvailableNodes [private] |
int MWMechanics::AiWander::mTimeOfDay [private] |
bool MWMechanics::AiWander::mWalking [private] |
float MWMechanics::AiWander::mX [private] |
float MWMechanics::AiWander::mXCell [private] |
float MWMechanics::AiWander::mY [private] |
float MWMechanics::AiWander::mYCell [private] |
float MWMechanics::AiWander::mZ [private] |
1.7.6.1