OpenMW
|
#include <objects.hpp>
Public Member Functions | |
Objects () | |
~Objects () | |
void | addObject (const MWWorld::Ptr &ptr) |
Register an animated object. More... | |
void | removeObject (const MWWorld::Ptr &ptr) |
Deregister an object. More... | |
void | updateObject (const MWWorld::Ptr &old, const MWWorld::Ptr &ptr) |
Updates an object with a new Ptr. More... | |
void | dropObjects (const MWWorld::CellStore *cellStore) |
Deregister all objects in the given cell. More... | |
void | update (float duration, bool paused) |
Update object animations. More... | |
bool | playAnimationGroup (const MWWorld::Ptr &ptr, const std::string &groupName, int mode, int number, bool persist=false) |
void | skipAnimation (const MWWorld::Ptr &ptr) |
void | persistAnimationStates () |
void | getObjectsInRange (const osg::Vec3f &position, float radius, std::vector< MWWorld::Ptr > &out) |
Private Types | |
typedef std::map< MWWorld::Ptr, CharacterController * > | PtrControllerMap |
Private Attributes | |
PtrControllerMap | mObjects |
|
private |
MWMechanics::Objects::Objects | ( | ) |
MWMechanics::Objects::~Objects | ( | ) |
void MWMechanics::Objects::addObject | ( | const MWWorld::Ptr & | ptr | ) |
Register an animated object.
void MWMechanics::Objects::dropObjects | ( | const MWWorld::CellStore * | cellStore | ) |
Deregister all objects in the given cell.
void MWMechanics::Objects::getObjectsInRange | ( | const osg::Vec3f & | position, |
float | radius, | ||
std::vector< MWWorld::Ptr > & | out | ||
) |
void MWMechanics::Objects::persistAnimationStates | ( | ) |
bool MWMechanics::Objects::playAnimationGroup | ( | const MWWorld::Ptr & | ptr, |
const std::string & | groupName, | ||
int | mode, | ||
int | number, | ||
bool | persist = false |
||
) |
void MWMechanics::Objects::removeObject | ( | const MWWorld::Ptr & | ptr | ) |
Deregister an object.
void MWMechanics::Objects::skipAnimation | ( | const MWWorld::Ptr & | ptr | ) |
void MWMechanics::Objects::update | ( | float | duration, |
bool | paused | ||
) |
Update object animations.
void MWMechanics::Objects::updateObject | ( | const MWWorld::Ptr & | old, |
const MWWorld::Ptr & | ptr | ||
) |
Updates an object with a new Ptr.
|
private |