metaforce/Runtime/Character/CAnimTreeTweenBase.hpp

46 lines
1.4 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CANIMTREETWEENBASE_HPP__
#define __URDE_CANIMTREETWEENBASE_HPP__
2016-04-10 21:22:59 +00:00
2016-04-11 03:59:54 +00:00
#include "CAnimTreeDoubleChild.hpp"
2016-04-10 21:22:59 +00:00
namespace urde
{
2016-04-11 03:59:54 +00:00
class CAnimTreeTweenBase : public CAnimTreeDoubleChild
2016-04-10 21:22:59 +00:00
{
2016-09-11 18:40:33 +00:00
static s32 sAdvancementDepth;
2016-09-10 04:50:00 +00:00
protected:
2016-09-04 02:27:35 +00:00
int x1c_flags;
bool x20_31_b1;
bool x20_30_b2 = false;
public:
CAnimTreeTweenBase(bool,
2016-09-10 04:50:00 +00:00
const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
2017-11-13 06:19:18 +00:00
int, std::string_view name);
2016-09-04 02:27:35 +00:00
virtual void SetBlendingWeight(float w)=0;
virtual float VGetBlendingWeight() const=0;
float GetBlendingWeight() const { return VGetBlendingWeight(); }
2016-09-14 05:45:46 +00:00
//void VGetTotalChildWeight(float) const;
2016-09-04 02:27:35 +00:00
float VGetRightChildWeight() const { return GetBlendingWeight(); }
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const;
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut, const CCharAnimTime& time) const;
bool VHasOffset(const CSegId& seg) const;
zeus::CVector3f VGetOffset(const CSegId& seg) const;
zeus::CQuaternion VGetRotation(const CSegId& seg) const;
2017-03-01 06:02:54 +00:00
std::pair<std::unique_ptr<IAnimReader>, bool> VSimplified();
2016-09-04 02:27:35 +00:00
bool ShouldCullTree() const { return false; }
2016-09-11 18:40:33 +00:00
static void IncAdvancementDepth() { sAdvancementDepth++; }
static void DecAdvancementDepth() { sAdvancementDepth--; }
2016-04-10 21:22:59 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CANIMTREETWEENBASE_HPP__