metaforce/Runtime/Character/CAnimTreeTransition.hpp

37 lines
1.5 KiB
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-10 14:22:59 -07:00
2016-04-10 20:59:54 -07:00
#include "RetroTypes.hpp"
#include "CAnimTreeTweenBase.hpp"
2018-12-07 21:30:43 -08:00
namespace urde {
2016-04-10 14:22:59 -07:00
2018-12-07 21:30:43 -08:00
class CAnimTreeTransition : public CAnimTreeTweenBase {
2016-09-09 21:50:00 -07:00
protected:
2018-12-07 21:30:43 -08:00
CCharAnimTime x24_transDur;
CCharAnimTime x2c_timeInTrans;
bool x34_runA;
bool x35_loopA;
bool x36_initialized = false;
SAdvancementResults AdvanceViewForTransitionalPeriod(const CCharAnimTime& time);
2016-04-10 20:59:54 -07:00
public:
2018-12-07 21:30:43 -08:00
static std::string CreatePrimitiveName(const std::weak_ptr<CAnimTreeNode>&, const std::weak_ptr<CAnimTreeNode>&,
float);
2016-04-10 14:22:59 -07:00
2018-12-07 21:30:43 -08:00
CAnimTreeTransition(bool b1, const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
const CCharAnimTime& transDur, const CCharAnimTime& timeInTrans, bool runA, bool loopA, int flags,
std::string_view name, bool initialized);
CAnimTreeTransition(bool b1, const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
const CCharAnimTime& transDur, bool runA, int flags, std::string_view name);
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const;
CCharAnimTime VGetTimeRemaining() const;
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const;
std::unique_ptr<IAnimReader> VClone() const;
std::optional<std::unique_ptr<IAnimReader>> VSimplified();
std::optional<std::unique_ptr<IAnimReader>> VReverseSimplified();
2018-12-07 21:30:43 -08:00
SAdvancementResults VAdvanceView(const CCharAnimTime& a);
void SetBlendingWeight(float w);
float VGetBlendingWeight() const;
2016-09-09 21:50:00 -07:00
};
2018-12-07 21:30:43 -08:00
} // namespace urde