2016-04-11 03:59:54 +00:00
|
|
|
#include "CAnimTreeSingleChild.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2017-11-13 06:19:18 +00:00
|
|
|
CAnimTreeSingleChild::CAnimTreeSingleChild(const std::weak_ptr<CAnimTreeNode>& node, std::string_view name)
|
2016-04-11 03:59:54 +00:00
|
|
|
: CAnimTreeNode(name)
|
2016-09-14 05:45:46 +00:00
|
|
|
, x14_child(node.lock())
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-01-30 01:04:01 +00:00
|
|
|
SAdvancementResults CAnimTreeSingleChild::VAdvanceView(const CCharAnimTime& dt)
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VAdvanceView(dt);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 07:47:21 +00:00
|
|
|
CCharAnimTime CAnimTreeSingleChild::VGetTimeRemaining() const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetTimeRemaining();
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CAnimTreeSingleChild::VHasOffset(const CSegId& seg) const
|
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VHasOffset(seg);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 06:15:32 +00:00
|
|
|
zeus::CVector3f CAnimTreeSingleChild::VGetOffset(const CSegId& seg) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetOffset(seg);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 06:15:32 +00:00
|
|
|
zeus::CQuaternion CAnimTreeSingleChild::VGetRotation(const CSegId& seg) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetRotation(seg);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 CAnimTreeSingleChild::VGetBoolPOIList(const CCharAnimTime& time,
|
|
|
|
CBoolPOINode* listOut,
|
2018-01-30 01:04:01 +00:00
|
|
|
u32 capacity, u32 iterator, u32 unk) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->GetBoolPOIList(time, listOut, capacity, iterator, unk);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 CAnimTreeSingleChild::VGetInt32POIList(const CCharAnimTime& time,
|
|
|
|
CInt32POINode* listOut,
|
2018-01-30 01:04:01 +00:00
|
|
|
u32 capacity, u32 iterator, u32 unk) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->GetInt32POIList(time, listOut, capacity, iterator, unk);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 CAnimTreeSingleChild::VGetParticlePOIList(const CCharAnimTime& time,
|
|
|
|
CParticlePOINode* listOut,
|
2018-01-30 01:04:01 +00:00
|
|
|
u32 capacity, u32 iterator, u32 unk) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->GetParticlePOIList(time, listOut, capacity, iterator, unk);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 07:47:21 +00:00
|
|
|
u32 CAnimTreeSingleChild::VGetSoundPOIList(const CCharAnimTime& time,
|
|
|
|
CSoundPOINode* listOut,
|
2018-01-30 01:04:01 +00:00
|
|
|
u32 capacity, u32 iterator, u32 unk) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->GetSoundPOIList(time, listOut, capacity, iterator, unk);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 06:15:32 +00:00
|
|
|
bool CAnimTreeSingleChild::VGetBoolPOIState(const char* name) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetBoolPOIState(name);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 06:15:32 +00:00
|
|
|
s32 CAnimTreeSingleChild::VGetInt32POIState(const char* name) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetInt32POIState(name);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 06:15:32 +00:00
|
|
|
CParticleData::EParentedMode CAnimTreeSingleChild::VGetParticlePOIState(const char* name) const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetParticlePOIState(name);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAnimTreeSingleChild::VGetSegStatementSet(const CSegIdList& list,
|
|
|
|
CSegStatementSet& setOut) const
|
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
x14_child->VGetSegStatementSet(list, setOut);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAnimTreeSingleChild::VGetSegStatementSet(const CSegIdList& list,
|
|
|
|
CSegStatementSet& setOut,
|
|
|
|
const CCharAnimTime& time) const
|
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
x14_child->VGetSegStatementSet(list, setOut, time);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2018-01-30 01:04:01 +00:00
|
|
|
void CAnimTreeSingleChild::VSetPhase(float phase)
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
x14_child->VSetPhase(phase);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SAdvancementResults
|
|
|
|
CAnimTreeSingleChild::VGetAdvancementResults(const CCharAnimTime& a,
|
|
|
|
const CCharAnimTime& b) const
|
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetAdvancementResults(a, b);
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-08-27 04:54:53 +00:00
|
|
|
u32 CAnimTreeSingleChild::Depth() const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->Depth() + 1;
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 23:35:37 +00:00
|
|
|
u32 CAnimTreeSingleChild::VGetNumChildren() const
|
2016-04-11 03:59:54 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
return x14_child->VGetNumChildren() + 1;
|
2016-04-11 03:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|