2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CANIMTREEDOUBLECHILD_HPP__
|
|
|
|
#define __URDE_CANIMTREEDOUBLECHILD_HPP__
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
#include "CAnimTreeNode.hpp"
|
|
|
|
|
2016-04-10 21:22:59 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
class CAnimTreeDoubleChild : public CAnimTreeNode
|
2016-04-10 21:22:59 +00:00
|
|
|
{
|
2016-09-14 05:45:46 +00:00
|
|
|
public:
|
|
|
|
class CDoubleChildAdvancementResult
|
|
|
|
{
|
|
|
|
CCharAnimTime x0_;
|
|
|
|
SAdvancementDeltas x8_;
|
|
|
|
SAdvancementDeltas x24_;
|
|
|
|
public:
|
|
|
|
CDoubleChildAdvancementResult(const CCharAnimTime&, const SAdvancementDeltas&, const SAdvancementDeltas);
|
|
|
|
void GetLeftAdvancementDeltas() const;
|
|
|
|
void GetRightAdvancementDeltas() const;
|
|
|
|
void GetTrueAdvancement() const;
|
|
|
|
};
|
2016-09-10 04:50:00 +00:00
|
|
|
protected:
|
2016-09-04 02:27:35 +00:00
|
|
|
std::shared_ptr<CAnimTreeNode> x14_a;
|
|
|
|
std::shared_ptr<CAnimTreeNode> x18_b;
|
2016-09-11 18:40:33 +00:00
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
public:
|
2016-09-11 18:40:33 +00:00
|
|
|
CAnimTreeDoubleChild(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
|
2017-11-13 06:19:18 +00:00
|
|
|
std::string_view name);
|
2016-04-11 07:10:28 +00:00
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& a);
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, u32 capacity, u32 iterator, u32) const;
|
|
|
|
u32 VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, u32 capacity, u32 iterator, u32) const;
|
2016-09-11 18:40:33 +00:00
|
|
|
u32 VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, u32 capacity, u32 iterator,
|
|
|
|
u32) const;
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, u32 capacity, u32 iterator, u32) const;
|
2016-04-12 06:15:32 +00:00
|
|
|
bool VGetBoolPOIState(const char* name) const;
|
|
|
|
s32 VGetInt32POIState(const char* name) const;
|
|
|
|
CParticleData::EParentedMode VGetParticlePOIState(const char* name) const;
|
2016-04-11 03:59:54 +00:00
|
|
|
void VSetPhase(float);
|
|
|
|
SAdvancementResults VGetAdvancementResults(const CCharAnimTime& a, const CCharAnimTime& b) const;
|
2016-08-27 04:54:53 +00:00
|
|
|
u32 Depth() const;
|
|
|
|
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const;
|
2016-04-11 23:35:37 +00:00
|
|
|
u32 VGetNumChildren() const;
|
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const;
|
2016-09-04 02:27:35 +00:00
|
|
|
void VGetWeightedReaders(std::vector<std::pair<float, std::weak_ptr<IAnimReader>>>& out, float w) const;
|
|
|
|
|
2016-09-14 05:45:46 +00:00
|
|
|
//virtual float VGetTotalChildWeight(float) const = 0;
|
|
|
|
//float GetTotalChildWeight(float f) const { return VGetTotalChildWeight(f); }
|
2016-09-11 18:40:33 +00:00
|
|
|
virtual float VGetRightChildWeight() const = 0;
|
2016-09-04 02:27:35 +00:00
|
|
|
float GetRightChildWeight() const { return VGetRightChildWeight(); }
|
|
|
|
|
|
|
|
const std::shared_ptr<CAnimTreeNode>& GetLeftChild() const { return x14_a; }
|
|
|
|
const std::shared_ptr<CAnimTreeNode>& GetRightChild() const { return x18_b; }
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CANIMTREEDOUBLECHILD_HPP__
|