1 #ifndef OPENMW_MWRENDER_WEAPONANIMATION_H
2 #define OPENMW_MWRENDER_WEAPONANIMATION_H
6 #include "../mwworld/ptr.hpp"
12 class RotateController;
22 void setGroup(
const std::string& group);
25 virtual float getValue(osg::NodeVisitor* nv);
42 void addControllers(
const std::map<std::string, osg::ref_ptr<osg::MatrixTransform> >& nodes,
43 std::multimap<osg::ref_ptr<osg::Node>, osg::ref_ptr<osg::NodeCallback> >& map, osg::Node* objectRoot);
float mStartTime
Definition: weaponanimation.hpp:19
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
void configureControllers(float characterPitchRadians)
Configure controllers, should be called every animation frame.
Definition: weaponanimation.cpp:183
PartHolderPtr mAmmunition
Definition: weaponanimation.hpp:51
virtual Resource::ResourceSystem * getResourceSystem()=0
Definition: animation.hpp:77
void setGroup(const std::string &group)
Definition: weaponanimation.cpp:36
osg::ref_ptr< RotateController > mSpineControllers[2]
Definition: weaponanimation.hpp:53
void setControllerEnabled(bool enabled)
Definition: weaponanimation.cpp:204
virtual float getValue(osg::NodeVisitor *nv)
Definition: weaponanimation.cpp:25
Handles attach & release of projectiles for ranged weapons.
Definition: weaponanimation.hpp:29
virtual ~WeaponAnimation()
Definition: weaponanimation.cpp:52
void attachArrow(MWWorld::Ptr actor)
Definition: weaponanimation.cpp:57
void deleteControllers()
Definition: weaponanimation.cpp:177
virtual osg::Group * getArrowBone()=0
float mPitchFactor
Definition: weaponanimation.hpp:66
Definition: weaponanimation.hpp:14
WeaponAnimationTime(Animation *animation)
Definition: weaponanimation.hpp:21
void releaseArrow(MWWorld::Ptr actor, float attackStrength)
Definition: weaponanimation.cpp:93
std::string mWeaponGroup
Definition: weaponanimation.hpp:18
void updateStartTime()
Definition: weaponanimation.cpp:42
Animation * mAnimation
Definition: weaponanimation.hpp:17
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: controller.hpp:11
void addControllers(const std::map< std::string, osg::ref_ptr< osg::MatrixTransform > > &nodes, std::multimap< osg::ref_ptr< osg::Node >, osg::ref_ptr< osg::NodeCallback > > &map, osg::Node *objectRoot)
Add WeaponAnimation-related controllers to nodes and store the added controllers in map...
Definition: weaponanimation.cpp:159
void setControllerRotate(const osg::Quat &rotate)
Definition: weaponanimation.cpp:197
virtual void showWeapon(bool show)=0
WeaponAnimation()
Definition: weaponanimation.cpp:47
boost::shared_ptr< PartHolder > PartHolderPtr
Definition: animation.hpp:75
virtual osg::Node * getWeaponNode()=0