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

Sequence of AI-packages for a single actor. More...

#include <aisequence.hpp>

List of all members.

Public Member Functions

 AiSequence ()
 AiSequence (const AiSequence &sequence)
AiSequenceoperator= (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

Detailed Description

Sequence of AI-packages for a single actor.


Constructor & Destructor Documentation


Member Function Documentation

Remove all packages.

void MWMechanics::AiSequence::copy ( const AiSequence sequence) [private]
void MWMechanics::AiSequence::execute ( const MWWorld::Ptr actor,
float  duration 
)

Execute package.

-1: None, 0: Wanter, 1 Travel, 2 Escort, 3 Follow, 4 Activate, 5 Combat

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)


Member Data Documentation


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