2013-01-29 07:39:11 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_ACTIVATORS_H
|
|
|
|
#define GAME_MWMECHANICS_ACTOVATRS_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "character.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
class CellStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
class Activators
|
|
|
|
{
|
|
|
|
typedef std::map<MWWorld::Ptr,CharacterController> PtrControllerMap;
|
|
|
|
PtrControllerMap mActivators;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Activators();
|
|
|
|
|
|
|
|
void addActivator (const MWWorld::Ptr& ptr);
|
2013-01-29 09:08:52 +00:00
|
|
|
///< Register an animated activator
|
2013-01-29 07:39:11 +00:00
|
|
|
|
|
|
|
void removeActivator (const MWWorld::Ptr& ptr);
|
|
|
|
///< Deregister an activator
|
|
|
|
|
2013-02-25 17:57:34 +00:00
|
|
|
void updateActivator(const MWWorld::Ptr &old, const MWWorld::Ptr& ptr);
|
|
|
|
///< Updates an activator with a new Ptr
|
2013-01-29 08:19:24 +00:00
|
|
|
|
2013-01-29 07:39:11 +00:00
|
|
|
void dropActivators (const MWWorld::CellStore *cellStore);
|
|
|
|
///< Deregister all activators in the given cell.
|
|
|
|
|
|
|
|
void update (float duration, bool paused);
|
|
|
|
///< Update activator animations
|
|
|
|
|
|
|
|
void playAnimationGroup(const MWWorld::Ptr& ptr, const std::string& groupName, int mode, int number);
|
|
|
|
void skipAnimation(const MWWorld::Ptr& ptr);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|