OpenMW
|
Sequence of AI-packages for a single actor. More...
#include <aisequence.hpp>
Public Member Functions | |
AiSequence () | |
AiSequence (const AiSequence &sequence) | |
AiSequence & | operator= (const AiSequence &sequence) |
virtual | ~AiSequence () |
int | getTypeId () const |
bool | isPackageDone () const |
Has a package been completed during the last update? | |
void | execute (const MWWorld::Ptr &actor, float duration) |
Execute package. | |
void | clear () |
Remove all packages. | |
void | stack (const AiPackage &package) |
Add package to the front of the sequence (suspends current package) | |
void | queue (const AiPackage &package) |
void | fill (const ESM::AIPackageList &list) |
Private Member Functions | |
void | copy (const AiSequence &sequence) |
Private Attributes | |
std::list< AiPackage * > | mPackages |
bool | mDone |
Sequence of AI-packages for a single actor.
MWMechanics::AiSequence::AiSequence | ( | const AiSequence & | sequence | ) |
MWMechanics::AiSequence::~AiSequence | ( | ) | [virtual] |
void MWMechanics::AiSequence::clear | ( | ) |
Remove all packages.
void MWMechanics::AiSequence::copy | ( | const AiSequence & | sequence | ) | [private] |
void MWMechanics::AiSequence::execute | ( | const MWWorld::Ptr & | actor, |
float | duration | ||
) |
Execute package.
void MWMechanics::AiSequence::fill | ( | const ESM::AIPackageList & | list | ) |
int MWMechanics::AiSequence::getTypeId | ( | ) | const |
-1: None, 0: Wanter, 1 Travel, 2 Escort, 3 Follow, 4 Activate, 5 Combat
bool MWMechanics::AiSequence::isPackageDone | ( | ) | const |
Has a package been completed during the last update?
MWMechanics::AiSequence & MWMechanics::AiSequence::operator= | ( | const AiSequence & | sequence | ) |
void MWMechanics::AiSequence::queue | ( | const AiPackage & | package | ) |
Add package to the end of the sequence (executed after all other packages have been completed)
void MWMechanics::AiSequence::stack | ( | const AiPackage & | package | ) |
Add package to the front of the sequence (suspends current package)
bool MWMechanics::AiSequence::mDone [private] |
std::list<AiPackage *> MWMechanics::AiSequence::mPackages [private] |