2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CANIMTREENODE_HPP__
|
|
|
|
#define __URDE_CANIMTREENODE_HPP__
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
#include "IAnimReader.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CAnimTreeNode : public IAnimReader
|
|
|
|
{
|
2016-08-27 04:54:53 +00:00
|
|
|
protected:
|
2016-04-11 03:59:54 +00:00
|
|
|
std::string x4_name;
|
|
|
|
public:
|
|
|
|
CAnimTreeNode(const std::string& name) : x4_name(name) {}
|
|
|
|
bool IsCAnimTreeNode() const {return true;}
|
2016-04-11 23:35:37 +00:00
|
|
|
|
2016-08-27 04:54:53 +00:00
|
|
|
virtual u32 Depth() const=0;
|
|
|
|
virtual CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const=0;
|
2016-04-12 06:15:32 +00:00
|
|
|
virtual u32 VGetNumChildren() const=0;
|
|
|
|
virtual std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const=0;
|
2016-08-27 21:16:44 +00:00
|
|
|
virtual void VGetWeightedReaders(std::vector<std::pair<float, std::weak_ptr<IAnimReader>>>& out, float w) const=0;
|
2016-04-12 06:15:32 +00:00
|
|
|
|
2016-08-27 21:16:44 +00:00
|
|
|
CAnimTreeEffectiveContribution GetContributionOfHighestInfluence() const;
|
2016-04-11 23:35:37 +00:00
|
|
|
u32 GetNumChildren() const;
|
|
|
|
std::shared_ptr<IAnimReader> GetBestUnblendedChild() const;
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CANIMTREENODE_HPP__
|