OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWMechanics::AiWander Class Reference

#include <aiwander.hpp>

List of all members.

Public Member Functions

 AiWander (int distance, int duration, int timeOfDay, const std::vector< int > &idle, bool repeat)
virtual AiPackageclone () 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::PointmAllowedNodes
ESM::Pathgrid::Point mCurrentNode
PathFinder mPathFinder
const ESM::PathgridmPathgrid

Constructor & Destructor Documentation

MWMechanics::AiWander::AiWander ( int  distance,
int  duration,
int  timeOfDay,
const std::vector< int > &  idle,
bool  repeat 
)

Member Function Documentation

bool MWMechanics::AiWander::checkIdle ( const MWWorld::Ptr actor,
unsigned short  idleSelect 
) [private]
AiPackage * MWMechanics::AiWander::clone ( ) const [virtual]
bool MWMechanics::AiWander::execute ( const MWWorld::Ptr actor,
float  duration 
) [virtual]
Returns:
Package completed?

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]

Member Data Documentation

std::vector<int> MWMechanics::AiWander::mIdle [private]
unsigned short MWMechanics::AiWander::mPlayedIdle [private]
float MWMechanics::AiWander::mX [private]
float MWMechanics::AiWander::mY [private]
float MWMechanics::AiWander::mZ [private]

The documentation for this class was generated from the following files: