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-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-04-12 06:15:32 +00:00
|
|
|
virtual void Depth() const=0;
|
|
|
|
virtual void VGetContributionOfHighestInfluence() const=0;
|
|
|
|
virtual u32 VGetNumChildren() const=0;
|
|
|
|
virtual std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const=0;
|
|
|
|
|
2016-04-11 23:35:37 +00:00
|
|
|
void GetContributionOfHighestInfluence() const;
|
|
|
|
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__
|